Changeset 1464 in vbox for trunk/src/VBox/Disassembler
- Timestamp:
- Mar 14, 2007 10:05:10 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmCore.cpp
r1155 r1464 399 399 } 400 400 } 401 //***************************************************************************** 402 //***************************************************************************** 403 DISDECL(uint8_t) DISQuerySegPrefixByte(PDISCPUSTATE pCpu) 404 { 405 Assert(pCpu->prefix & PREFIX_SEG); 406 switch(pCpu->prefix_seg) 407 { 408 case USE_REG_ES: 409 return 0x26; 410 case USE_REG_CS: 411 return 0x2E; 412 case USE_REG_SS: 413 return 0x36; 414 case USE_REG_DS: 415 return 0x3E; 416 case USE_REG_FS: 417 return 0x64; 418 case USE_REG_GS: 419 return 0x65; 420 default: 421 AssertFailed(); 422 return 0; 423 } 424 } 425 401 426 /** 402 427 * Returns the value of the specified 8 bits general purpose register
Note:
See TracChangeset
for help on using the changeset viewer.