VirtualBox

Changeset 9340 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 3, 2008 8:19:19 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31555
Message:

Only negate the displacement if it's an offset. A full address is encoded as a 32 bits displacment.

File:
1 edited

Legend:

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

    r9275 r9340  
    747747
    748748                            if (fBase || (pParam->flags & USE_INDEX))
     749                            {
    749750                                PUT_C(off >= 0 ? '+' : '-');
    750 
    751                             if (off < 0)
    752                                 off = -off;
     751                                if (off < 0)
     752                                    off = -off;
     753                            }
    753754                            if (pParam->flags & USE_DISPLACEMENT8)
    754755                                PUT_NUM_8( off);
Note: See TracChangeset for help on using the changeset viewer.

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