diff options
author | Steve Chamberlain <sac@cygnus> | 1993-01-21 01:33:20 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1993-01-21 01:33:20 +0000 |
commit | 2c320e35984957fbca00f3bad8cea39bc75f4c49 (patch) | |
tree | e1bef6aff8f6935cec62521fcfd3997752d3cd99 /sim/h8300 | |
parent | 9f2cd205e86fb631343d9cdee3b7826610afa126 (diff) | |
download | fsf-binutils-gdb-2c320e35984957fbca00f3bad8cea39bc75f4c49.zip fsf-binutils-gdb-2c320e35984957fbca00f3bad8cea39bc75f4c49.tar.gz fsf-binutils-gdb-2c320e35984957fbca00f3bad8cea39bc75f4c49.tar.bz2 |
fix endian problem
Diffstat (limited to 'sim/h8300')
-rw-r--r-- | sim/h8300/writecode.c | 2 |
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 |