VirtualBox

Changeset 90469 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2021 11:21:08 AM (4 years ago)
Author:
vboxsync
Message:

iprt/asm-amd64-x86-watcom-16.h: Another fix for ASMOutStrU8/16/32 - Parameters passed in two (or more) register has fixed order, with BX:SI we'll always get the segment in SI and offset in BX. Switched to DI:SI so we get the segment in DI and offset in SI and don't have to resuffle things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-amd64-x86-watcom-16.h

    r90466 r90469  
    731731    ".186" \
    732732    "mov ax, ds" \
    733     "mov ds, bx" \
     733    "mov ds, di" \
    734734    "rep outsb" \
    735735    "mov ds, ax" \
    736     parm [dx] [bx si] [cx] nomemory \
     736    parm [dx] [si di] [cx] nomemory \
    737737    modify exact [si cx ax] nomemory;
    738738#endif
     
    743743    ".186" \
    744744    "rep insb" \
    745     parm [dx] [es di] [cx] \
     745    parm [dx] [di es] [cx] \
    746746    modify exact [di cx];
    747747#endif
     
    752752    ".186" \
    753753    "mov ax, ds" \
    754     "mov ds, bx" \
     754    "mov ds, di" \
    755755    "rep outsw" \
    756756    "mov ds, ax" \
    757     parm [dx] [bx si] [cx] nomemory \
     757    parm [dx] [si di] [cx] nomemory \
    758758    modify exact [si cx ax] nomemory;
    759759#endif
     
    764764    ".186" \
    765765    "rep insw" \
    766     parm [dx] [es di] [cx] \
     766    parm [dx] [di es] [cx] \
    767767    modify exact [di cx];
    768768#endif
     
    773773    ".386" \
    774774    "mov ax, ds" \
    775     "mov ds, bx" \
     775    "mov ds, di" \
    776776    "rep outsd" \
    777777    "mov ds, ax" \
    778     parm [dx] [bx si] [cx] nomemory \
     778    parm [dx] [si di] [cx] nomemory \
    779779    modify exact [si cx ax] nomemory;
    780780#endif
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