From: Steve Chamberlain Date: Thu, 21 Jan 1993 01:33:20 +0000 (+0000) Subject: fix endian problem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c320e35984957fbca00f3bad8cea39bc75f4c49;p=binutils-gdb.git fix endian problem --- diff --git a/sim/h8300/writecode.c b/sim/h8300/writecode.c index 45570dca440..93b7568a106 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