Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ht_disasm_viewer Class Reference

#include <htdisasm.h>

Inheritance diagram for ht_disasm_viewer:

ht_uformat_viewer ht_format_viewer ht_viewer ht_view Object List of all members.

Public Member Functions

void init (bounds *b, char *desc, int caps, ht_streamfile *file, ht_format_group *format_group, Assembler *a, Disassembler *d, int t)
virtual void done ()
virtual char * func (UINT i, bool execute)
virtual void get_pindicator_str (char *buf)
virtual bool get_vscrollbar_pos (int *pstart, int *psize)
virtual void handlemsg (htmsg *msg)
virtual bool offset_to_pos (FILEOFS ofs, viewer_pos *addr)
virtual bool pos_to_offset (viewer_pos addr, FILEOFS *ofs)
virtual bool qword_to_pos (qword q, viewer_pos *pos)
virtual int ref_sel (LINE_ID *id)
virtual int symbol_handler (eval_scalar *result, char *name)

Protected Member Functions

virtual ht_disasm_subget_disasm_sub ()

Protected Attributes

Assemblerassem
Disassemblerdisasm
int op1632

Member Function Documentation

void ht_disasm_viewer::done  )  [virtual]
 

Reimplemented from ht_uformat_viewer.

Definition at line 186 of file htdisasm.cc.

References assem, disasm, and ht_uformat_viewer::done().

char * ht_disasm_viewer::func UINT  i,
bool  execute
[virtual]
 

Reimplemented from ht_uformat_viewer.

Definition at line 357 of file htdisasm.cc.

References cmd_disasm_toggle1632, ht_uformat_viewer::func(), op1632, ht_view::sendmsg(), and UINT.

ht_disasm_sub * ht_disasm_viewer::get_disasm_sub  )  [protected, virtual]
 

Definition at line 311 of file htdisasm.cc.

References uformat_viewer_pos::sub.

Referenced by offset_to_pos(), and qword_to_pos().

void ht_disasm_viewer::get_pindicator_str char *  buf  )  [virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 193 of file htdisasm.cc.

References buf, ht_uformat_viewer::edit(), FILEOFS, and ht_uformat_viewer::get_current_offset().

Referenced by handlemsg().

bool ht_disasm_viewer::get_vscrollbar_pos int *  pstart,
int *  psize
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 203 of file htdisasm.cc.

References ht_streamfile::get_size(), LINE_ID::id1, uformat_viewer_pos::line_id, MIN, and scrollbar_pos().

Referenced by handlemsg().

void ht_disasm_viewer::handlemsg htmsg *  msg  )  [virtual]
 

Reimplemented from ht_uformat_viewer.

Definition at line 213 of file htdisasm.cc.

References CPU_ADDR::addr32, assem, byte, clearmsg(), cmd_disasm_call_assembler, cmd_disasm_toggle1632, ht_uformat_viewer::complete_init(), Disassembler::decode(), dialog_assemble(), ht_view::dirtyview(), dis_insn, DIS_STYLE_HEX_ASMSTYLE, DIS_STYLE_HEX_NOZEROPAD, disasm, DISASM_STRF_SMALL_FORMAT, ht_uformat_viewer::get_current_pos(), ht_format_viewer::get_hscrollbar_pos(), get_pindicator_str(), get_vscrollbar_pos(), Disassembler::getSize(), gsi_hscrollbar, gsi_pindicator, gsi_vscrollbar, ht_uformat_viewer::handlemsg(), LINE_ID::id1, ht_static_context_menu::init(), ht_static_context_menu::insert_entry(), K_Control_A, uformat_viewer_pos::line_id, msg_contextmenuquery, msg_filesize_changed, msg_get_scrollinfo, msg_retval, mt_broadcast, NULL, op1632, gsi_scrollbar_t::psize, gsi_scrollbar_t::pstart, ht_uformat_viewer::sendsubmsg(), Assembler::set_imm_eval_proc(), Disassembler::strf(), viewer_pos::u, ht_format_viewer::vread(), X86_OPSIZE16, and X86_OPSIZE32.

void ht_disasm_viewer::init bounds *  b,
char *  desc,
int  caps,
ht_streamfile file,
ht_format_group format_group,
Assembler a,
Disassembler d,
int  t
 

Definition at line 178 of file htdisasm.cc.

References assem, disasm, file, Object::init(), and op1632.

Referenced by htdisasm_init().

bool ht_disasm_viewer::offset_to_pos FILEOFS  ofs,
viewer_pos addr
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 316 of file htdisasm.cc.

References FILEOFS, get_disasm_sub(), LINE_ID::id1, LINE_ID::id2, uformat_viewer_pos::line_id, uformat_viewer_pos::sub, uformat_viewer_pos::tag_idx, and viewer_pos::u.

bool ht_disasm_viewer::pos_to_offset viewer_pos  addr,
FILEOFS ofs
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 325 of file htdisasm.cc.

References FILEOFS, LINE_ID::id1, uformat_viewer_pos::line_id, and viewer_pos::u.

Referenced by symbol_handler().

bool ht_disasm_viewer::qword_to_pos qword  q,
viewer_pos pos
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 336 of file htdisasm.cc.

References ht_uformat_viewer::clear_viewer_pos(), ht_sub::convert_ofs_to_id(), FILEOFS, get_disasm_sub(), uformat_viewer_pos::line_id, QWORD_GET_INT, uformat_viewer_pos::sub, uformat_viewer_pos::tag_idx, and viewer_pos::u.

int ht_disasm_viewer::ref_sel LINE_ID id  )  [virtual]
 

Reimplemented from ht_uformat_viewer.

Definition at line 331 of file htdisasm.cc.

References ht_uformat_viewer::goto_offset(), and LINE_ID::id1.

int ht_disasm_viewer::symbol_handler eval_scalar result,
char *  name
[virtual]
 

Reimplemented from ht_format_viewer.

Definition at line 346 of file htdisasm.cc.

References FILEOFS, pos_to_offset(), scalar_create_int_c(), and ht_format_viewer::symbol_handler().


Member Data Documentation

Assembler* ht_disasm_viewer::assem [protected]
 

Definition at line 42 of file htdisasm.h.

Referenced by done(), handlemsg(), and init().

Disassembler* ht_disasm_viewer::disasm [protected]
 

Definition at line 43 of file htdisasm.h.

Referenced by done(), handlemsg(), and init().

int ht_disasm_viewer::op1632 [protected]
 

Definition at line 44 of file htdisasm.h.

Referenced by func(), handlemsg(), and init().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:15:57 2004 by doxygen 1.3.5