commit c46dede9b17af6465d19865743fd289c81147f54
parent 4f26471416516e201f2d0efdfb87f601a5682134
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 17 Sep 2014 09:39:45 +0200
Fix move() in 1 byte data
The indexed register IX was missed in the call to emit.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc2/cgen.c b/cc2/cgen.c
@@ -164,7 +164,7 @@ move(Node *np)
sym = np->u.sym;
switch (tp->size) {
case 1:
- emit(LDFX, reg, sym->u.v.off);
+ emit(LDFX, reg, IX, sym->u.v.off);
break;
case 2:
emit(LDFX, lower(reg), IX, sym->u.v.off);