Changeset 10275 in vbox for trunk/src/VBox
- Timestamp:
- Jul 5, 2008 1:39:26 PM (17 years ago)
- Location:
- trunk/src/VBox/Disassembler
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmCore.cpp
r10272 r10275 1323 1323 { 1324 1324 pParam->parval = DISReadDWord(pCpu, lpszCodeBlock); 1325 pParam->flags |= USE_IMMEDIATE32; 1326 pParam->size = sizeof(uint32_t); 1325 /* 64 bits op mode means zero extend to 64 bits. */ 1326 if (pCpu->opmode == CPUMODE_64BIT) 1327 { 1328 pParam->flags |= USE_IMMEDIATE64; 1329 pParam->size = sizeof(uint64_t); 1330 } 1331 else 1332 { 1333 pParam->flags |= USE_IMMEDIATE32; 1334 pParam->size = sizeof(uint32_t); 1335 } 1327 1336 1328 1337 disasmAddStringF(pParam->szParam, sizeof(pParam->szParam), "0%08Xh", (uint32_t)pParam->parval); -
trunk/src/VBox/Disassembler/DisasmTest.cpp
r9761 r10275 78 78 char szOutput[256]; 79 79 80 //__debugbreak();80 __debugbreak(); 81 81 memset(&cpu, 0, sizeof(cpu)); 82 82 cpu.mode = CPUMODE_64BIT; -
trunk/src/VBox/Disassembler/DisasmTestA.asm
r10271 r10275 73 73 ;incorrectly assembled by yasm; REX.W should not be added! 74 74 ;test rax, dword 0cc90cc90h 75 mov qword [rcx+rdx], 0 76 mov dword [rcx+rdx], 0 75 77 and [r15], rax 76 78 movzx rcx, sil
Note:
See TracChangeset
for help on using the changeset viewer.