; 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
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