VirtualBox

Changeset 5296 in vbox for trunk


Ignore:
Timestamp:
Oct 15, 2007 3:22:28 PM (17 years ago)
Author:
vboxsync
Message:

Corrected disasm test

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

Legend:

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

    r4071 r5296  
    2121*******************************************************************************/
    2222#include <VBox/dis.h>
     23#include <VBox/err.h>
    2324#include <stdio.h>
    2425
     
    4546
    4647            cpu.mode = CPUMODE_32BIT;
    47             if (DISInstr(&cpu, pInstr, 0, &cb, szOutput))
     48            if (VBOX_SUCCESS(DISInstr(&cpu, pInstr, 0, &cb, szOutput)))
    4849                printf(szOutput);
    4950            else
  • trunk/src/VBox/Disassembler/DisasmTestA.asm

    r4071 r5296  
    3939;      mov ax, cs:[1234h]
    4040;      mov eax, cs:[1234h]
     41      lock cmpxchg [ecx], eax
     42      lock cmpxchg [ecx], ax
     43      lock cmpxchg [ecx], dl
    4144      movzx ESI,word  [EAX]
    4245      in al, dx
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