- Timestamp:
- Aug 18, 2008 1:19:26 PM (16 years ago)
- Location:
- trunk/src/VBox/Disassembler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmCore.cpp
r11462 r11464 1324 1324 else 1325 1325 { 1326 pParam->parval = DISReadDWord(pCpu, lpszCodeBlock); 1327 /* 64 bits op mode means zero extend to 64 bits. */ 1326 /* 64 bits op mode means *sign* extend to 64 bits. */ 1328 1327 if (pCpu->opmode == CPUMODE_64BIT) 1329 1328 { 1329 pParam->parval = (uint64_t)(int32_t)DISReadDWord(pCpu, lpszCodeBlock); 1330 1330 pParam->flags |= USE_IMMEDIATE64; 1331 1331 pParam->size = sizeof(uint64_t); 1332 disasmAddStringF(pParam->szParam, sizeof(pParam->szParam), "0%VX64h", pParam->parval); 1332 1333 } 1333 1334 else 1334 1335 { 1336 pParam->parval = DISReadDWord(pCpu, lpszCodeBlock); 1335 1337 pParam->flags |= USE_IMMEDIATE32; 1336 1338 pParam->size = sizeof(uint32_t); 1337 } 1338 1339 disasmAddStringF(pParam->szParam, sizeof(pParam->szParam), "0%08Xh", (uint32_t)pParam->parval); 1339 disasmAddStringF(pParam->szParam, sizeof(pParam->szParam), "0%08Xh", (uint32_t)pParam->parval); 1340 } 1340 1341 return sizeof(uint32_t); 1341 1342 } -
trunk/src/VBox/Disassembler/DisasmTestA.asm
r11462 r11464 71 71 align 16 72 72 BEGINPROC TestProc64 73 db 48h 74 db 0c7h 75 db 42h 76 db 18h 77 db 20h 78 db 3eh 79 db 23h 80 db 80h 73 81 call qword [r8+10h] 74 82 ; test
Note:
See TracChangeset
for help on using the changeset viewer.