source: dev/trunk/abdev/BasicCompiler32/MachineFixed.h@ 433

Last change on this file since 433 was 237, checked in by dai_9181, 17 years ago
File size: 857 bytes
RevLine 
[226]1#pragma once
2
3
4//未定義の定数情報
5#define IMAGE_FILE_MACHINE_AMD64 0x8664
6
7
8//レジスタを示す定数
9#define REG_NON -1
10#define REG_EAX 0x00 //reg:000
11#define REG_ECX 0x01 //reg:001
12#define REG_EDX 0x02 //reg:010
13#define REG_EBX 0x03 //reg:011
14#define REG_ESP 0x04 //reg:100
15#define REG_EBP 0x05 //reg:101
16#define REG_ESI 0x06 //reg:110
17#define REG_EDI 0x07 //reg:111
18
19#define REG_RAX REG_EAX
20#define REG_RCX REG_ECX
21#define REG_RDX REG_EDX
22#define REG_RBX REG_EBX
23#define REG_RSP REG_ESP
24#define REG_RBP REG_EBP
25#define REG_RSI REG_ESI
26#define REG_RDI REG_EDI
27
28#define REGISTER_OPERAND(reg) (reg&0x07)
29
30
31//Mod(モード)
32#define MOD_BASE (char)0x00
33#define MOD_DISP32 (char)0xFF
34#define MOD_BASE_DISP8 (char)0x40
35#define MOD_BASE_DISP32 (char)0x80
[237]36#define MOD_REG (char)0xC0
[226]37
38#define USE_OFFSET 1
39#define NON_OFFSET 0
Note: See TracBrowser for help on using the repository browser.