ref: c46dede9b17af6465d19865743fd289c81147f54
parent: 4f26471416516e201f2d0efdfb87f601a5682134
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Sep 17 05:39:45 EDT 2014
Fix move() in 1 byte data The indexed register IX was missed in the call to emit.
--- a/cc2/cgen.c
+++ b/cc2/cgen.c
@@ -164,7 +164,7 @@
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);