;; First test: no overflow
MOV TH0,#2
MOV TL0,#55h ; Set initial value of timer0 to $0255
- CALL DELAY
+ LCALL DELAY
MOV 00h, TH0 ; Save value of timer 0
MOV 01h, TL0
MOV TL0,#01h ; Set initial value of timer0 to $F001
MOV Th1,#0FFh
MOV TL1,#03h ; Set initial value of timer1 to $FF03
- CALL DELAY
+ LCALL DELAY
LJMP 0FFF0h
;; First test: no overflow
MOV TH0,#2
MOV TL0,#55h ; Set initial value of timer0 to $0255
- CALL DELAY
+ LCALL DELAY
MOV 00h, TH0 ; Save value of timer 0
MOV 01h, TL0
MOV TL0,#98h ; Set initial value of timer0 to $F098
MOV Th1,#0FFh
MOV TL1,#00h ; Set initial value of timer1 to $FF00
- CALL DELAY
+ LCALL DELAY
LJMP 0FFF0h
MOV TH1,#0F4h ; Reload value
MOV TL0,#00h ; Set initial value of timer0
MOV TL1,#28h ; Set initial value of timer1
- CALL DELAY
+ LCALL DELAY
MOV 00h, TH0 ; Save value of timer 0
MOV 01h, TL0
;; Second test: overflow
MOV TL0,#0F0h ; Set initial value of timer0
MOV TL1,#0EFh ; Set initial value of timer1
- CALL DELAY
+ LCALL DELAY
LJMP 0FFF0h