M2-Planet/test/common_amd64/amd64_defs.M1

92 lines
2.7 KiB
Plaintext
Raw Normal View History

2019-04-18 01:19:17 +01:00
## Copyright (C) 2017 Jeremiah Orians
## This file is part of M2-Planet.
##
## M2-Planet is free software: you can 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.
##
## M2-Planet 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 M2-Planet. If not, see <http://www.gnu.org/licenses/>.
DEFINE ADD_IMMEDIATE_to_rax 4805
DEFINE ADD_IMMEDIATE_to_rbp 4881C5
2019-04-19 22:43:59 +01:00
DEFINE ADD_rax_to_rbx 4801C3
2019-04-18 01:19:17 +01:00
DEFINE ADD_rbp_to_rax 4801E8
2019-04-19 22:43:59 +01:00
DEFINE ADD_rbx_to_rax 4801D8
DEFINE AND_rax_rbx 4821D8
2019-04-18 01:19:17 +01:00
DEFINE CALL_IMMEDIATE E8
2019-04-23 00:30:08 +01:00
DEFINE CALL_rax FFD0
2019-04-19 22:43:59 +01:00
DEFINE CMP 4839C3
DEFINE COPY_rax_to_rcx 4889C1
2019-04-18 01:19:17 +01:00
DEFINE COPY_rax_to_rdi 4889C7
2019-04-19 22:43:59 +01:00
DEFINE COPY_rbx_to_rax 4889D8
2019-04-18 01:19:17 +01:00
DEFINE COPY_rbp_to_rax 4889E8
2019-04-19 22:43:59 +01:00
DEFINE COPY_rbx_to_rdi 4889DF
2019-04-18 01:19:17 +01:00
DEFINE COPY_rdi_to_rbp 4889FD
DEFINE COPY_rsp_to_rbp 4889E5
DEFINE COPY_RSP_to_RDI 4889E7
2019-04-23 00:30:08 +01:00
DEFINE DIVIDE_rax_by_rbx_into_rax 48F7FB
DEFINE DIVIDES_rax_by_rbx_into_rax 48F7F3
2019-04-18 01:19:17 +01:00
DEFINE JUMP E9
DEFINE JUMP_EQ 0F84
2019-04-19 22:43:59 +01:00
DEFINE JUMP_NE 0F85
2019-04-18 01:19:17 +01:00
DEFINE LOAD_BASE_ADDRESS_rax 488D85
2019-04-23 00:30:08 +01:00
DEFINE LOAD_BYTE 0FBE00
2019-06-20 02:43:34 +01:00
DEFINE LOAD_EFFECTIVE_ADDRESS_rax 488D8424
2019-04-23 00:30:08 +01:00
DEFINE LOAD_EFFECTIVE_ADDRESS_rdi 488DBC24
DEFINE LOAD_EFFECTIVE_ADDRESS_rdx 488D9424
2019-04-18 01:19:17 +01:00
DEFINE LOAD_EFFECTIVE_ADDRESS_rsi 488DB424
2019-04-23 00:30:08 +01:00
DEFINE LOAD_IMMEDIATE_r10 48C7C2
2019-04-18 01:19:17 +01:00
DEFINE LOAD_IMMEDIATE_rax 48C7C0
2019-04-19 22:43:59 +01:00
DEFINE LOAD_IMMEDIATE_rbx 48C7C3
2019-04-18 01:19:17 +01:00
DEFINE LOAD_IMMEDIATE_rdi 48C7C7
DEFINE LOAD_IMMEDIATE_rdx 48C7C2
DEFINE LOAD_INTEGER 488B00
2019-04-23 00:30:08 +01:00
DEFINE LOAD_INTEGER_rdi 488B3F
DEFINE LOAD_INTEGER_rdx 488B12
DEFINE LOAD_INTEGER_rsi 488B36
2019-04-19 22:43:59 +01:00
DEFINE LOAD_RSP_IMMEDIATE_into_rax 488B8424
2019-04-23 00:30:08 +01:00
DEFINE MODULUS_rax_from_rbx_into_rbx 48F7FB
DEFINE MODULUSS_rax_from_rbx_into_rbx 48F7F3
2019-04-19 22:43:59 +01:00
DEFINE MOVE_rbx_to_rax 4889D8
2019-04-23 00:30:08 +01:00
DEFINE MOVE_rdx_to_rax 4889D0
2019-04-18 01:19:17 +01:00
DEFINE MOVEZX 480FB6C0
2019-06-20 02:43:34 +01:00
DEFINE MOVESX 4863C0
DEFINE MULTIPLY_rax_by_rbx_into_rax 48F7EB
DEFINE MULTIPLYS_rax_by_rbx_into_rax 48F7E3
2019-04-23 00:30:08 +01:00
DEFINE NOP 0000000000000000
DEFINE NOT_rax 48F7D0
DEFINE OR_rax_rbx 4809D8
2019-04-19 22:43:59 +01:00
DEFINE POP_RAX 58
2019-04-18 01:19:17 +01:00
DEFINE POP_RBP 5D
DEFINE POP_RBX 5B
DEFINE POP_RDI 5F
DEFINE PUSH_RAX 50
DEFINE PUSH_RBP 55
2019-04-19 22:43:59 +01:00
DEFINE PUSH_RBX 53
2019-04-18 01:19:17 +01:00
DEFINE PUSH_RDI 57
DEFINE RETURN C3
DEFINE SAL_rax_Immediate8 48C1E0
2019-04-19 22:43:59 +01:00
DEFINE SAL_rax_cl 48D3E0
DEFINE SAR_rax_cl 48D3E8
2019-04-18 01:19:17 +01:00
DEFINE SETE 0F94C0
DEFINE SETG 0F9FC0
DEFINE SETGE 0F9DC0
DEFINE SETL 0F9CC0
DEFINE SETLE 0F9EC0
2019-04-19 22:43:59 +01:00
DEFINE SETNE 0F95C0
2019-04-23 00:30:08 +01:00
DEFINE STORE_CHAR 8803
2019-04-19 22:43:59 +01:00
DEFINE STORE_INTEGER 488903
DEFINE SUBTRACT_rax_from_rbx_into_rbx 4829C3
2019-04-18 01:19:17 +01:00
DEFINE SYSCALL 0F05
DEFINE TEST 4885C0
DEFINE XCHG_rax_rbx 4893
2019-04-19 22:43:59 +01:00
DEFINE XOR_rbx_rax_into_rax 4831D8