home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 275 / DPCS0111DVD.ISO / Toolkit / Audio-Visual / VirtualDub / Source / VirtualDub-1.9.10-src.7z / src / disasm / h / runtime_dasm.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-09-14  |  614 b   |  27 lines

  1. #ifndef f_VD2_DISASM_RUNTIME_DASM_H
  2. #define f_VD2_DISASM_RUNTIME_DASM_H
  3.  
  4. #include <vd2/system/vdtypes.h>
  5. #include <stddef.h>
  6.  
  7. struct VDDisassemblyContext {
  8.     const unsigned char **pRuleSystem;
  9.     long (*pSymLookup)(unsigned long virtAddr, char *buf, int buf_len);
  10.  
  11.     bool bSizeOverride;            // 66
  12.     bool bAddressOverride;        // 67
  13.     bool bRepnePrefix;            // F2
  14.     bool bRepePrefix;            // F3
  15.     unsigned char    rex;
  16.     const char *pszSegmentOverride;
  17.  
  18.     ptrdiff_t    physToVirtOffset;
  19.  
  20.     char    heap[2048];
  21.     int        stack[32];
  22. };
  23.  
  24. void VDDisassemble(VDDisassemblyContext *pvdc, const uint8 *source, int bytes);
  25.  
  26. #endif
  27.