# HG changeset patch # User Shinji KONO # Date 1289535973 -32400 # Node ID 78f57ff5c86e80429265ccc67bfa323e7a28c2db # Parent bdae6a2211749b608e8912f371a8021a7c65152b i64 basic.c code generation (not yet compiled) diff -r bdae6a221174 -r 78f57ff5c86e mc-code-i64.c --- a/mc-code-i64.c Tue Nov 09 22:19:02 2010 +0900 +++ b/mc-code-i64.c Fri Nov 12 13:26:13 2010 +0900 @@ -362,14 +362,14 @@ #define FREG_OFFSET 18 -#define REG_ESP 1 -#define REG_EBP 2 -#define REG_EDI 3 // first argument register -#define REG_ESI 4 -#define REG_EDX 5 -#define REG_ECX 6 // for strange reason (code_assop) -#define REG_EAX 7 -#define REG_EBX 8 +#define REG_ESP 0 +#define REG_EBP 1 +#define REG_EDI 2 // first argument register +#define REG_ESI 3 +#define REG_EDX 4 +#define REG_ECX 5 // for strange reason (code_assop) +#define REG_EAX 6 +#define REG_EBX 7 #define is_int_reg(reg) (1<=reg&®