VirtualBox

Changeset 10393 in vbox for trunk/src


Ignore:
Timestamp:
Jul 9, 2008 7:43:59 AM (17 years ago)
Author:
vboxsync
Message:

Corrected 16 bits index handling.

File:
1 edited

Legend:

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

    r10378 r10393  
    563563        if (pParam->flags & USE_INDEX)
    564564        {
     565            if (pParam->flags & USE_REG_GEN16)
     566            {
     567                uint16_t val16;
     568
     569                pParamVal->flags |= PARAM_VAL16;
     570                if (VBOX_FAILURE(DISFetchReg16(pCtx, pParam->index.reg_gen, &val16))) return VERR_INVALID_PARAMETER;
     571               
     572                Assert(!(pParam->flags & USE_SCALE));   /* shouldn't be possible in 16 bits mode */
     573               
     574                pParamVal->val.val16 += val16;
     575            }
     576            else
    565577            if (pParam->flags & USE_REG_GEN32)
    566578            {
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