ASMAtomicXchgU8.asm revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
0N/A;; @file
2362N/A; InnoTek Portable Runtime - ASMAtomicXchgU8().
0N/A;
0N/A
0N/A;
0N/A; Copyright (C) 2006 InnoTek Systemberatung GmbH
2362N/A;
0N/A; This file is part of VirtualBox Open Source Edition (OSE), as
2362N/A; available from http://www.virtualbox.org. This file is free software;
0N/A; you can redistribute it and/or modify it under the terms of the GNU
0N/A; General Public License as published by the Free Software Foundation,
0N/A; in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
0N/A; distribution. VirtualBox OSE is distributed in the hope that it will
0N/A; be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A;
0N/A; If you received this file as part of a commercial VirtualBox
0N/A; distribution, then only the terms of your commercial VirtualBox
0N/A; license agreement apply instead of the previous paragraph.
0N/A;
0N/A
2362N/A;*******************************************************************************
2362N/A;* Header Files *
2362N/A;*******************************************************************************
0N/A%include "iprt/asmdefs.mac"
0N/A
0N/ABEGINCODE
0N/A
0N/A;;
0N/A; @returns al Current *pu8 value
0N/A; @param rcx pu8 Pointer to the 8-bit variable to update.
0N/A; @param dl u8 The 8-bit value to assign to *pu8.
0N/ABEGINPROC_EXPORTED ASMAtomicXchgU8
0N/A xchg [rcx], dl
0N/A movzx eax, dl
0N/A ret
0N/AENDPROC ASMAtomicXchgU8
0N/A
0N/A