VirtualBox

Changeset 8974 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 20, 2008 6:57:52 PM (17 years ago)
Author:
vboxsync
Message:

INC & DEC

Location:
trunk/src/VBox/Disassembler/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/tstAsmLock-1.asm

    r8972 r8974  
    321321%endif
    322322
     323    ;
    323324    ; DEC
     325    ;
     326        ; fe /1         DEC reg8/mem8 - sans reg dst
     327    lock dec byte [40cc0h]
     328    lock dec byte [xBX]
     329    lock dec byte [xSI]
     330        ; ff /1         DEC regX/memX - sans reg dst
     331    lock dec word [40cc0h]
     332    lock dec word [xBX]
     333    lock dec word [xSI]
     334    lock dec dword [40cc0h]
     335    lock dec dword [xBX]
     336    lock dec dword [xSI]
     337%ifdef WITH_64_BIT_TESTS
     338    lock dec qword [40cc0h]
     339    lock dec qword [xBX]
     340    lock dec qword [xSI]
     341    lock dec qword [r8]
     342    lock dec qword [r12]
     343%endif
     344
     345    ;
    324346    ; INC
     347    ;
     348        ; fe /0         INC reg8/mem8 - sans reg dst
     349    lock inc byte [40cc0h]
     350    lock inc byte [xBX]
     351    lock inc byte [xSI]
     352        ; ff /0         INC regX/memX - sans reg dst
     353    lock inc word [40cc0h]
     354    lock inc word [xBX]
     355    lock inc word [xSI]
     356    lock inc dword [40cc0h]
     357    lock inc dword [xBX]
     358    lock inc dword [xSI]
     359%ifdef WITH_64_BIT_TESTS
     360    lock inc qword [40cc0h]
     361    lock inc qword [xBX]
     362    lock inc qword [xSI]
     363    lock inc qword [r8]
     364    lock inc qword [r12]
     365%endif
     366
    325367    ; NEG
    326368    ; NOT
  • trunk/src/VBox/Disassembler/testcase/tstAsmLock-2.asm

    r8972 r8974  
    242242        ; all valid.
    243243
     244    ;
    244245    ; DEC
     246    ;
     247        ; fe /1         DEC reg8/mem8 - with reg dst
     248    lock dec bl
     249        ; ff /1         DEC regX/memX - with reg dst
     250
     251%if TEST_BITS != 64     ; cannot force these two in 32 and 16 bit mode.
     252    db 066h, 0f0h, 0ffh, 0cbh
     253    db 0f0h, 0ffh, 0cbh
     254%else
     255    lock dec bx
     256    lock dec ebx
     257 %ifdef WITH_64_BIT_TESTS
     258    lock dec rbx
     259    lock dec r8
     260    lock dec r14
     261 %endif
     262%endif
     263%if TEST_BITS != 64
     264        ; 48 +rw        DEC reg16
     265    lock dec dx
     266        ; 48 +rd        DEC reg32
     267    lock dec edx
     268%endif
     269
     270    ;
    245271    ; INC
     272    ;
     273        ; fe /1         INC reg8/mem8 - with reg dst
     274    lock inc bl
     275        ; ff /1         INC regX/memX - with reg dst
     276
     277%if TEST_BITS != 64     ; cannot force these two in 32 and 16 bit mode.
     278    db 066h, 0f0h, 0ffh, 0c3h
     279    db 0f0h, 0ffh, 0c3h
     280%else
     281    lock inc bx
     282    lock inc ebx
     283 %ifdef WITH_64_BIT_TESTS
     284    lock inc rbx
     285    lock inc r8
     286    lock inc r14
     287 %endif
     288%endif
     289%if TEST_BITS != 64
     290        ; 48 +rw        INC reg16
     291    lock inc dx
     292        ; 48 +rd        INC reg32
     293    lock inc edx
     294%endif
     295
    246296    ; NEG
    247297    ; NOT
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