DisasmTestA.asm revision de8e40551b020624bc0683e5905f06b51f3ceebe
af062818b47340eef15700d2f0211576ba3506eevboxsync;
af062818b47340eef15700d2f0211576ba3506eevboxsync; VBox disassembler:
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync; Assembler test routines
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync;
af062818b47340eef15700d2f0211576ba3506eevboxsync; Copyright (C) 2006-2007 innotek GmbH
af062818b47340eef15700d2f0211576ba3506eevboxsync;
af062818b47340eef15700d2f0211576ba3506eevboxsync; This file is part of VirtualBox Open Source Edition (OSE), as
af062818b47340eef15700d2f0211576ba3506eevboxsync; available from http://www.virtualbox.org. This file is free software;
af062818b47340eef15700d2f0211576ba3506eevboxsync; you can redistribute it and/or modify it under the terms of the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync; General Public License as published by the Free Software Foundation,
af062818b47340eef15700d2f0211576ba3506eevboxsync; in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
af062818b47340eef15700d2f0211576ba3506eevboxsync; distribution. VirtualBox OSE is distributed in the hope that it will
af062818b47340eef15700d2f0211576ba3506eevboxsync; be useful, but WITHOUT ANY WARRANTY of any kind.
af062818b47340eef15700d2f0211576ba3506eevboxsync;
af062818b47340eef15700d2f0211576ba3506eevboxsync; If you received this file as part of a commercial VirtualBox
af062818b47340eef15700d2f0211576ba3506eevboxsync; distribution, then only the terms of your commercial VirtualBox
af062818b47340eef15700d2f0211576ba3506eevboxsync; license agreement apply instead of the previous paragraph.
af062818b47340eef15700d2f0211576ba3506eevboxsync;
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync;*******************************************************************************
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync;* Header Files *
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync;*******************************************************************************
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync%include "VBox/nasm.mac"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync%include "VBox/vm.mac"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync%include "VBox/err.mac"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync%include "VBox/stam.mac"
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync%include "VBox/x86.mac"
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncBITS 32
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncBEGINCODE
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncalign 16
af062818b47340eef15700d2f0211576ba3506eevboxsyncBEGINPROC TestProc
af062818b47340eef15700d2f0211576ba3506eevboxsync movzx eax,byte [edx]
af062818b47340eef15700d2f0211576ba3506eevboxsync movzx eax,word [edx]
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov dword es:[ebx + 1234h], 0789h
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov word fs:[ebx + ecx], 0654h
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov byte [esi + eax*4], 0654h
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov bl, byte ds:[ebp + 1234h]
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov al, cs:[1234h + ecx*8]
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov al, cs:[1234h]
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov ax, cs:[1234h]
af062818b47340eef15700d2f0211576ba3506eevboxsync; mov eax, cs:[1234h]
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync movzx ESI,word [EAX]
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync in al, dx
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync in ax, dx
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync in eax, dx
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync mov ebx, [ecx + eax*4 + 17]
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync mov ebx, [ebp + eax*4 + 4]
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync mov ebx, [ebp + eax*4]
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync int 80h
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync in al, 60h
af062818b47340eef15700d2f0211576ba3506eevboxsync in ax, dx
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync out 64h, eax
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync movss xmm0, xmm1
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync movsd xmm6, xmm1
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync pause
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsyncENDPROC TestProc
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsync