From b405647892229bedf2d34faaa73258c8002be848 Mon Sep 17 00:00:00 2001 From: Dan White Date: Sat, 4 May 2013 21:21:04 -0500 Subject: [PATCH] ROM code: fixup another call address --- rom-bugfix.asm | 6 ++++-- rom-bugfix.rcf | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rom-bugfix.asm b/rom-bugfix.asm index 9a56e7c..2acbcb3 100644 --- a/rom-bugfix.asm +++ b/rom-bugfix.asm @@ -378,7 +378,7 @@ gotoMain: ; BUGFIX SOLUTION: ; leave sr unchanged, and not touch SCG[1:0] bits ; bis instruction is logical OR, just OR with zero and move on - 315e: 32 d0 00 00 bis #128,sr ;#0x0000 + 315e: 32 d0 00 00 bis #0,sr ;#0x0000 Assembly_Code: 3162: b2 40 8e 34 mov #UART_ISR, &0xffea ;#0x348e @@ -824,7 +824,9 @@ TMR0_INT: 3426: 3f 40 b8 33 mov #13240, r15 ;#0x33b8 342a: b0 12 ea 32 call #PrintString ;0x32ea 342e: b0 12 24 32 call #waitForUARTEmpty ;#0x3224 - 3432: b0 12 76 31 call #0x3176 +; BUGFIX SOLUTION +; the following call used to call to 0x3176 + 3432: b0 12 72 31 call #0x3172 3436: 92 43 04 1c mov #1, &TMR0_CNT ;r3 As==01 343a: 1f 42 02 1c mov &TMR0_SR,r15 343e: a2 d2 00 1c bis #4, &TMR0_CR ;r2 As==10 diff --git a/rom-bugfix.rcf b/rom-bugfix.rcf index 74243c3..1fb5991 100644 --- a/rom-bugfix.rcf +++ b/rom-bugfix.rcf @@ -536,7 +536,7 @@ 0001001010110000 0011001000100100 0001001010110000 -0011000101110110 +0011000101110010 0100001110010010 0001110000000100 0100001000011111 -- 2.25.1