VirtualBox

Changeset 90466 in vbox for trunk/include


Ignore:
Timestamp:
Aug 2, 2021 10:56:08 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146070
Message:

iprt/asm-amd64-x86-watcom-16.h: Fix ASMOutStrU8/16/32 - cannot list DS as a modified register, so save it in AX.

File:
1 edited

Legend:

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

    r82968 r90466  
    730730#pragma aux ASMOutStrU8 = \
    731731    ".186" \
     732    "mov ax, ds" \
    732733    "mov ds, bx" \
    733734    "rep outsb" \
     735    "mov ds, ax" \
    734736    parm [dx] [bx si] [cx] nomemory \
    735     modify exact [si cx ds] nomemory;
     737    modify exact [si cx ax] nomemory;
    736738#endif
    737739
     
    749751#pragma aux ASMOutStrU16 = \
    750752    ".186" \
     753    "mov ax, ds" \
    751754    "mov ds, bx" \
    752755    "rep outsw" \
     756    "mov ds, ax" \
    753757    parm [dx] [bx si] [cx] nomemory \
    754     modify exact [si cx ds] nomemory;
     758    modify exact [si cx ax] nomemory;
    755759#endif
    756760
     
    768772#pragma aux ASMOutStrU32 = \
    769773    ".386" \
     774    "mov ax, ds" \
    770775    "mov ds, bx" \
    771776    "rep outsd" \
     777    "mov ds, ax" \
    772778    parm [dx] [bx si] [cx] nomemory \
    773     modify exact [si cx ds] nomemory;
     779    modify exact [si cx ax] nomemory;
    774780#endif
    775781
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