Changeset 41742 in vbox
- Timestamp:
- Jun 15, 2012 1:54:42 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dis.h
r41741 r41742 432 432 } index; 433 433 434 /** 2, 4 or 8 . */435 uint8_t scale;434 /** 2, 4 or 8, if DISUSE_SCALE is set in fUse. */ 435 uint8_t uScale; 436 436 /** Parameter size. */ 437 437 uint8_t cb; -
trunk/src/VBox/Disassembler/DisasmCore.cpp
r41741 r41742 592 592 void UseSIB(RTUINTPTR uCodePtr, PCDISOPCODE pOp, PDISOPPARAM pParam, PDISCPUSTATE pCpu) 593 593 { 594 unsigned scale, base, index,regtype;594 unsigned regtype; 595 595 const char **ppszSIBIndexReg; 596 596 const char **ppszSIBBaseReg; 597 597 NOREF(uCodePtr); NOREF(pOp); 598 598 599 scale = pCpu->SIB.Bits.Scale;600 base = pCpu->SIB.Bits.Base;601 index = pCpu->SIB.Bits.Index;599 unsigned scale = pCpu->SIB.Bits.Scale; 600 unsigned base = pCpu->SIB.Bits.Base; 601 unsigned index = pCpu->SIB.Bits.Index; 602 602 603 603 if (pCpu->uAddrMode == DISCPUMODE_32BIT) … … 621 621 if (scale != 0) 622 622 { 623 pParam->fUse |= DISUSE_SCALE;624 pParam-> scale= (1<<scale);623 pParam->fUse |= DISUSE_SCALE; 624 pParam->uScale = (1<<scale); 625 625 } 626 626 } -
trunk/src/VBox/Disassembler/DisasmFormatYasm.cpp
r41741 r41742 732 732 { 733 733 PUT_C('*'); 734 PUT_C('0' + pParam-> scale);734 PUT_C('0' + pParam->uScale); 735 735 } 736 736 } -
trunk/src/VBox/Disassembler/DisasmReg.cpp
r41741 r41742 564 564 565 565 if (pParam->fUse & DISUSE_SCALE) 566 val32 *= pParam-> scale;566 val32 *= pParam->uScale; 567 567 568 568 pParamVal->val.val32 += val32; … … 577 577 578 578 if (pParam->fUse & DISUSE_SCALE) 579 val64 *= pParam-> scale;579 val64 *= pParam->uScale; 580 580 581 581 pParamVal->val.val64 += val64;
Note:
See TracChangeset
for help on using the changeset viewer.