projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
opcodes2c.pl: Add command line options
[emu8051.git]
/
tests
/
timer0.asm
diff --git
a/tests/timer0.asm
b/tests/timer0.asm
index
5935e24
..
d9328b0
100644
(file)
--- a/
tests/timer0.asm
+++ b/
tests/timer0.asm
@@
-15,8
+15,6
@@
TOS EQU 60h ; Adresse du dessus de la pile.
TOS EQU 60h ; Adresse du dessus de la pile.
- CSEG
-
ORG 0000h ; Reset vector
MOV SP,#TOS ; Init stack pointer
ORG 0000h ; Reset vector
MOV SP,#TOS ; Init stack pointer
@@
-27,7
+25,7
@@
TOS EQU 60h ; Adresse du dessus de la pile.
;; First test: no overflow
MOV TH0,#2
MOV TL0,#55h ; Set initial value of timer0 to $0255
;; 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 00h, TH0 ; Save value of timer 0
MOV 01h, TL0
@@
-40,7
+38,7
@@
TOS EQU 60h ; Adresse du dessus de la pile.
MOV TL0,#01h ; Set initial value of timer0 to $F001
MOV Th1,#0FFh
MOV TL1,#03h ; Set initial value of timer1 to $FF03
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
LJMP 0FFF0h