78 lines
2.6 KiB
C++
78 lines
2.6 KiB
C++
![]() |
// ******************************************************************
|
||
|
// *
|
||
|
// * .,-::::: .,:: .::::::::. .,:: .:
|
||
|
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
|
||
|
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
|
||
|
// * $$$ Y$$$P $$""""Y$$ Y$$$P
|
||
|
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
|
||
|
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
|
||
|
// *
|
||
|
// * Cxbx->Win32->CxbxKrnl->OOVPA.cpp
|
||
|
// *
|
||
|
// * This file is part of the Cxbx project.
|
||
|
// *
|
||
|
// * Cxbx and Cxbe are free software; you can redistribute them
|
||
|
// * and/or modify them under the terms of the GNU General Public
|
||
|
// * License as published by the Free Software Foundation; either
|
||
|
// * version 2 of the license, or (at your option) any later version.
|
||
|
// *
|
||
|
// * This program is distributed in the hope that it will be useful,
|
||
|
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// * GNU General Public License for more details.
|
||
|
// *
|
||
|
// * You should have recieved a copy of the GNU General Public License
|
||
|
// * along with this program; see the file COPYING.
|
||
|
// * If not, write to the Free Software Foundation, Inc.,
|
||
|
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
|
||
|
// *
|
||
|
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
|
||
|
// *
|
||
|
// * All rights reserved
|
||
|
// *
|
||
|
// ******************************************************************
|
||
|
#include "Cxbx.h"
|
||
|
#include "EmuX.h"
|
||
|
|
||
|
// ******************************************************************
|
||
|
// * CreateThread (Size : 16 bytes)
|
||
|
// ******************************************************************
|
||
|
SOOVPA<8> CreateThread_1_0_4361 =
|
||
|
{
|
||
|
0, // Large == 0
|
||
|
8, // Count == 3
|
||
|
|
||
|
{
|
||
|
// CreateThread+0x0A : mov eax, ds:10130h
|
||
|
{ 0x0A, 0xA1 }, // (Offset,Value)-Pair #1
|
||
|
{ 0x0B, 0x30 }, // (Offset,Value)-Pair #2
|
||
|
{ 0x0C, 0x01 }, // (Offset,Value)-Pair #3
|
||
|
|
||
|
// CreateThread+0x1C : and ecx, 0xFFFFFF01
|
||
|
{ 0x1C, 0x81 }, // (Offset,Value)-Pair #4
|
||
|
{ 0x1D, 0xE1 }, // (Offset,Value)-Pair #5
|
||
|
{ 0x1E, 0x01 }, // (Offset,Value)-Pair #6
|
||
|
|
||
|
// CreateThread+0x6B : retn 4
|
||
|
{ 0x6B, 0xC2 }, // (Offset,Value)-Pair #7
|
||
|
{ 0x6C, 0x18 } // (Offset,Value)-Pair #8
|
||
|
}
|
||
|
};
|
||
|
|
||
|
// ******************************************************************
|
||
|
// * XAPI_1_0_4361
|
||
|
// ******************************************************************
|
||
|
OOVPATable XAPI_1_0_4361[] =
|
||
|
{
|
||
|
// CreateThread
|
||
|
{
|
||
|
(OOVPA*)&CreateThread_1_0_4361,
|
||
|
|
||
|
xboxkrnl::EmuXCreateThread,
|
||
|
|
||
|
#ifdef _DEBUG_TRACE
|
||
|
"EmuXCreateThread"
|
||
|
#endif
|
||
|
}
|
||
|
};
|