59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
## Copyright (C) 2016 Jeremiah Orians
|
|
## This file is part of stage0.
|
|
##
|
|
## stage0 is free software: you an redistribute it and/or modify
|
|
## it under the terms of the GNU General Public License as published by
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
## (at your option) any later version.
|
|
##
|
|
## stage0 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 received a copy of the GNU General Public License
|
|
## along with stage0. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
DEFINE ADD_ebx_to_eax 01D8
|
|
DEFINE ADD_eax_to_ebx 01C3
|
|
DEFINE AND_eax_ebx 21D8
|
|
DEFINE CALL_IMMEDIATE E8
|
|
DEFINE CALL_eax FFD0
|
|
DEFINE CMP 39C3
|
|
DEFINE COPY_eax_to_ebx 89C3
|
|
DEFINE COPY_eax_to_ecx 89C1
|
|
DEFINE COPY_ebx_to_edx 89DA
|
|
DEFINE COPY_esp_to_ecx 89E1
|
|
DEFINE INT_80 CD80
|
|
DEFINE JUMP E9
|
|
DEFINE JUMP_EQ 0F84
|
|
DEFINE JUMP_EQ8 74
|
|
DEFINE JUMP_NE8 75
|
|
DEFINE LOAD_BYTE 0FBE00
|
|
DEFINE LOAD_EFFECTIVE_ADDRESS 8D8424
|
|
DEFINE LOAD_EFFECTIVE_ADDRESS_ecx 8D4C24
|
|
DEFINE LOAD_ESP_IMMEDIATE_into_eax 8B8424
|
|
DEFINE LOAD_IMMEDIATE_eax B8
|
|
DEFINE LOAD_IMMEDIATE_ebx BB
|
|
DEFINE LOAD_IMMEDIATE_edx BA
|
|
DEFINE LOAD_INTEGER 8B00
|
|
DEFINE MOVEZBL 0FB6C0
|
|
DEFINE MOVE_ebx_to_eax 89D8
|
|
DEFINE NOP 00000000
|
|
DEFINE OR_eax_ebx 09D8
|
|
DEFINE POP_eax 58
|
|
DEFINE POP_ebx 5B
|
|
DEFINE PUSH_eax 50
|
|
DEFINE PUSH_ebx 53
|
|
DEFINE RETURN C3
|
|
DEFINE SAL_eax_cl D3E0
|
|
DEFINE SAR_eax_cl D3F8
|
|
DEFINE SETE 0F94C0
|
|
DEFINE SETLE 0F9EC0
|
|
DEFINE SETNE 0F95C0
|
|
DEFINE STORE_CHAR 8803
|
|
DEFINE STORE_eax_into_ESP_IMMEDIATE8 8B4424
|
|
DEFINE STORE_INTEGER 8903
|
|
DEFINE SUBTRACT_eax_from_ebx_into_ebx 29C3
|
|
DEFINE TEST 85C0
|