]> Untitled Git - emu8051.git/commitdiff
Replace CALL by LCALL for compatibility with AS31 and AS504 assemblers
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 2 Dec 2013 04:31:51 +0000 (23:31 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 2 Dec 2013 04:31:51 +0000 (23:31 -0500)
tests/timer0.asm
tests/timer1.asm
tests/timer2.asm

index 11a8227f33dfb4833a02a384bc8a75b08bf4a05c..d9328b065e919a5c1422684a6f3d5cbb1a334cec 100644 (file)
@@ -25,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
-        CALL    DELAY
+        LCALL   DELAY
 
         MOV     00h, TH0         ; Save value of timer 0
         MOV     01h, TL0
@@ -38,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
-        CALL    DELAY
+        LCALL   DELAY
 
         LJMP    0FFF0h
 
index 2efed1826a03ef55eb0757669cc1fb10a4d2a3f0..fda3a31e055012c5f81daef2a2046e7438ef1e6b 100644 (file)
@@ -24,7 +24,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
-        CALL    DELAY
+        LCALL   DELAY
 
         MOV     00h, TH0         ; Save value of timer 0
         MOV     01h, TL0
@@ -37,7 +37,7 @@ TOS     EQU     60h     ; Adresse du dessus de la pile.
        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
 
index ab47b263a250c820bd64315f6c8f02ed9abe7b87..2a8d579ed3a7539a3a8419f22191cfe14c3c4249 100644 (file)
@@ -26,7 +26,7 @@ TOS     EQU     60h     ; Adresse du dessus de la pile.
        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
@@ -37,7 +37,7 @@ TOS     EQU     60h     ; Adresse du dessus de la pile.
         ;;  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