DisasmTest.cpp revision 878e217bf452f6c70ef9800daa219f2656a71051
77b1a2d8b5dbe2c0b5200794914239fee3c8ee5dvboxsync * VBox disassembler - Test application
be41e59f051a3abb5cd05e7fe270ab2fea791f5avboxsync * Copyright (C) 2006-2012 Oracle Corporation
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync * available from http://www.virtualbox.org. This file is free software;
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync/*******************************************************************************
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync* Header Files *
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync*******************************************************************************/
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync//uint8_t aCode16[] = { 0x66, 0x67, 0x89, 0x07 };
b0b15690f00527424b2d5fb88456d747252322f7vboxsync //printf("DisasmBlock on printf:\n");
47579c4cc64e7dff9b4de48841a2c4df3b96ab38vboxsync //DisasmBlock((uint8_t *)printf, 256);
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync uint8_t const *pbInstr = (uint8_t const *)(uintptr_t)TestProc;
51fe8789a74f6c118894aaa12eb69ec155386dbdvboxsync for (int i=0;i<50;i++)
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync if (RT_SUCCESS(DISInstrToStr(pbInstr, DISCPUMODE_32BIT, &cpu, &cb, szOutput, sizeof(szOutput))))
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync////__debugbreak();
a0240ff4f7663045c848fdbc192ea3d4d9f70a11vboxsync for (int i=0;i<50;i++)
d80c85a1bc7317da7d0cd1254fae6a20db039c8cvboxsync if (RT_SUCCESS(DISInstrToStr(pbInstr, DISCPUMODE_64BIT, &cpu, &cb, szOutput, sizeof(szOutput))))