ROM code: fixup another call address
authorDan White <dan@whiteaudio.com>
Sun, 5 May 2013 02:21:04 +0000 (21:21 -0500)
committerDan White <dan@whiteaudio.com>
Sun, 5 May 2013 02:21:04 +0000 (21:21 -0500)
rom-bugfix.asm
rom-bugfix.rcf

index 9a56e7c81fe59adae0eceb114c7cce7430f4aec6..2acbcb34df1c12bcbd8badb52194666b32e3cafa 100644 (file)
@@ -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
index 74243c37f926469b4196c8ddb89d9aab85558a94..1fb5991e194ce208540ca900d9d11c25fd1211d3 100644 (file)
 0001001010110000
 0011001000100100
 0001001010110000
-0011000101110110
+0011000101110010
 0100001110010010
 0001110000000100
 0100001000011111