vbox的更動 41663 路徑 trunk/src/VBox/Disassembler/DisasmReg.cpp
- 時間撮記:
- 2012-6-12 上午08:40:22 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Disassembler/DisasmReg.cpp
r41662 r41663 260 260 261 261 default: 262 if (pParam-> size)263 return pParam-> size;262 if (pParam->cb) 263 return pParam->cb; 264 264 else //@todo dangerous!!! 265 265 return 4; … … 523 523 // Effective address 524 524 pParamVal->type = PARMTYPE_ADDRESS; 525 pParamVal->size = pParam-> size;525 pParamVal->size = pParam->cb; 526 526 527 527 if (pParam->flags & USE_BASE) … … 651 651 // Caller needs to interpret the register according to the instruction (source/target, special value etc) 652 652 pParamVal->type = PARMTYPE_REGISTER; 653 pParamVal->size = pParam-> size;653 pParamVal->size = pParam->cb; 654 654 return VINF_SUCCESS; 655 655 } … … 700 700 { 701 701 pParamVal->flags |= PARAM_VAL8; 702 if (pParam-> size== 2)702 if (pParam->cb == 2) 703 703 { 704 704 pParamVal->size = sizeof(uint16_t); … … 717 717 pParamVal->size = sizeof(uint16_t); 718 718 pParamVal->val.val16 = (uint16_t)pParam->parval; 719 AssertMsg(pParamVal->size == pParam-> size || ((pParam->size == 1) && (pParam->flags & USE_IMMEDIATE16_SX8)), ("pParamVal->size %d vs %d EIP=%RX32\n", pParamVal->size, pParam->size, pCtx->eip) );719 AssertMsg(pParamVal->size == pParam->cb || ((pParam->cb == 1) && (pParam->flags & USE_IMMEDIATE16_SX8)), ("pParamVal->size %d vs %d EIP=%RX32\n", pParamVal->size, pParam->cb, pCtx->eip) ); 720 720 } 721 721 else … … 725 725 pParamVal->size = sizeof(uint32_t); 726 726 pParamVal->val.val32 = (uint32_t)pParam->parval; 727 Assert(pParamVal->size == pParam-> size || ((pParam->size== 1) && (pParam->flags & USE_IMMEDIATE32_SX8)) );727 Assert(pParamVal->size == pParam->cb || ((pParam->cb == 1) && (pParam->flags & USE_IMMEDIATE32_SX8)) ); 728 728 } 729 729 else … … 733 733 pParamVal->size = sizeof(uint64_t); 734 734 pParamVal->val.val64 = pParam->parval; 735 Assert(pParamVal->size == pParam-> size || ((pParam->size== 1) && (pParam->flags & USE_IMMEDIATE64_SX8)) );735 Assert(pParamVal->size == pParam->cb || ((pParam->cb == 1) && (pParam->flags & USE_IMMEDIATE64_SX8)) ); 736 736 } 737 737 else … … 742 742 pParamVal->val.farptr.sel = (uint16_t)RT_LOWORD(pParam->parval >> 16); 743 743 pParamVal->val.farptr.offset = (uint32_t)RT_LOWORD(pParam->parval); 744 Assert(pParamVal->size == pParam-> size);744 Assert(pParamVal->size == pParam->cb); 745 745 } 746 746 else … … 751 751 pParamVal->val.farptr.sel = (uint16_t)RT_LOWORD(pParam->parval >> 32); 752 752 pParamVal->val.farptr.offset = (uint32_t)(pParam->parval & 0xFFFFFFFF); 753 Assert(pParam-> size== 8);753 Assert(pParam->cb == 8); 754 754 } 755 755 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器