From 2c320e35984957fbca00f3bad8cea39bc75f4c49 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 21 Jan 1993 01:33:20 +0000 Subject: fix endian problem --- sim/h8300/writecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/h8300') 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 -- cgit v1.1