aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-01-21 01:33:20 +0000
committerSteve Chamberlain <sac@cygnus>1993-01-21 01:33:20 +0000
commit2c320e35984957fbca00f3bad8cea39bc75f4c49 (patch)
treee1bef6aff8f6935cec62521fcfd3997752d3cd99 /sim/h8300
parent9f2cd205e86fb631343d9cdee3b7826610afa126 (diff)
downloadgdb-2c320e35984957fbca00f3bad8cea39bc75f4c49.zip
gdb-2c320e35984957fbca00f3bad8cea39bc75f4c49.tar.gz
gdb-2c320e35984957fbca00f3bad8cea39bc75f4c49.tar.bz2
fix endian problem
Diffstat (limited to 'sim/h8300')
-rw-r--r--sim/h8300/writecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/h8300/writecode.c b/sim/h8300/writecode.c
index 45570dc..93b7568 100644
--- a/sim/h8300/writecode.c
+++ b/sim/h8300/writecode.c
@@ -398,7 +398,7 @@ bsr (p, a)
printf ("reg[7]-=2;\n");
printf ("tmp = reg[7];\n");
printf ("SET_WORD_MEM(tmp, (npc-saved_state.mem)*2);\n");
- printf ("npc += (((char *)pc)[1])>>1;\n");
+ printf ("npc += ((char)b1)>>1;\n");
}
static void