# HG changeset patch # User kono # Date 1098055980 -32400 # Node ID dafb9110d70bba126242416a7ccefc1ea44fe1c0 # Parent 8528af42e7f7e06e39ebb0bff4853886cdbcdf2f ARM continue... emit_copy bug diff -r 8528af42e7f7 -r dafb9110d70b Makefile --- a/Makefile Mon Oct 18 00:17:09 2004 +0900 +++ b/Makefile Mon Oct 18 08:33:00 2004 +0900 @@ -1,6 +1,8 @@ CC = gcc # -O3 CFLAGS = -g -Wall -I. +# for Linux Zaurus +# CFLAGS = -fsigned-char -pipe -g -I. -I/home/zaurus/develop/include BASE=0 STAGE=1 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE) diff -r 8528af42e7f7 -r dafb9110d70b mc-code-arm.c --- a/mc-code-arm.c Mon Oct 18 00:17:09 2004 +0900 +++ b/mc-code-arm.c Mon Oct 18 08:33:00 2004 +0900 @@ -1891,17 +1891,17 @@ case 1: case -1: inc_inst(2); printf("\tldrb\t%s, [%s,#%d]\n",drn,frn,offset); - printf("\tstrb\t%s, [%s,#%d]\n",drn,frn,offset); + printf("\tstrb\t%s, [%s,#%d]\n",drn,trn,offset); break; case 2: case -2: inc_inst(2); printf("\tldrh\t%s, [%s,#%d]\n",drn,frn,offset); - printf("\tstrh\t%s, [%s,#%d]\n",drn,frn,offset); + printf("\tstrh\t%s, [%s,#%d]\n",drn,trn,offset); break; case 4: case -4: inc_inst(2); printf("\tldr\t%s, [%s,#%d]\n",drn,frn,offset); - printf("\tstr\t%s, [%s,#%d]\n",drn,frn,offset); + printf("\tstr\t%s, [%s,#%d]\n",drn,trn,offset); break; default: if (length <0) { @@ -1982,7 +1982,7 @@ for(count=0;count