Changeset 8377 in vbox for trunk/src/VBox/Disassembler/DisasmTest.cpp
- Timestamp:
- Apr 25, 2008 8:23:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmTest.cpp
r8155 r8377 30 30 31 31 DECLASM(int) TestProc(); 32 DECLASM(int) TestProc64(); 32 33 //uint8_t aCode16[] = { 0x66, 0x67, 0x89, 0x07 }; 33 34 … … 61 62 pInstr += cb; 62 63 } 64 65 printf("\n64 bits disassembly\n"); 66 pInstr = (RTUINTPTR)TestProc64; 67 68 for (int i=0;i<50;i++) 69 { 70 unsigned cb; 71 DISCPUSTATE cpu; 72 char szOutput[256]; 73 74 memset(&cpu, 0, sizeof(cpu)); 75 cpu.mode = CPUMODE_64BIT; 76 //__debugbreak(); 77 if (VBOX_SUCCESS(DISInstr(&cpu, pInstr, 0, &cb, szOutput))) 78 printf(szOutput); 79 else 80 { 81 printf("DISOne failed!\n"); 82 return 1; 83 } 84 pInstr += cb; 85 } 63 86 } 64 87 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.