VirtualBox

Changeset 9759 in vbox


Ignore:
Timestamp:
Jun 17, 2008 11:49:13 AM (16 years ago)
Author:
vboxsync
Message:

Displacement handling in 64 bits mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/DisasmReg.cpp

    r9675 r9759  
    529529                pParamVal->val.val32 += (int32_t)pParam->disp8;
    530530            else
     531            if (pCpu->mode == CPUMODE_64BIT)
     532                pParamVal->val.val64 += (int64_t)pParam->disp8;
     533            else
    531534                pParamVal->val.val16 += (int16_t)pParam->disp8;
    532535        }
     
    537540                pParamVal->val.val32 += (int32_t)pParam->disp16;
    538541            else
     542            if (pCpu->mode == CPUMODE_64BIT)
     543                pParamVal->val.val64 += (int64_t)pParam->disp16;
     544            else
    539545                pParamVal->val.val16 += pParam->disp16;
    540546        }
     
    544550            if (pCpu->mode == CPUMODE_32BIT)
    545551                pParamVal->val.val32 += pParam->disp32;
     552            else
     553            if (pCpu->mode == CPUMODE_64BIT)
     554                pParamVal->val.val64 += (int64_t)pParam->disp32;
    546555            else
    547556                AssertFailed();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette