summaryrefslogtreecommitdiff
path: root/cgaas.c
diff options
context:
space:
mode:
authorJohn van Groningen2006-09-18 10:55:18 +0000
committerJohn van Groningen2006-09-18 10:55:18 +0000
commit94d376f00b7232b35b1f8df257616fb8c3ac6812 (patch)
treeb23a984331d4d473ce5a606657ee3d898f3444ab /cgaas.c
parentcodegenerator makefile for 64 bit windows (diff)
fix error in rex prefix for move register to global variable and move global
variable to register, for registers r8-r15
Diffstat (limited to 'cgaas.c')
-rw-r--r--cgaas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgaas.c b/cgaas.c
index 91b5879..45e9d53 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -1373,8 +1373,8 @@ static void as_r_a (int code,int reg1,LABEL *label)
int reg1_n;
reg1_n=reg_num (reg1);
-
- store_c (0x48 | ((reg1_n & 8)>>3));
+
+ store_c (0x48 | ((reg1_n & 8)>>1));
store_c (code);
store_c (((reg1_n & 7)<<3) | 5);
store_l (0);