View Single Post
Old 19th Dec 2021, 3:42 pm   #27
coolsnaz2
Tetrode
 
Join Date: Aug 2020
Location: Wallington, Greater London, UK.
Posts: 87
Default Re: Yet another MK14 tape interface (ESP32).

Quote:
Originally Posted by Phil__G View Post
I'm puzzled by "RET 2" and RET 3", are these pre-defines in sbasm that I've missed? (I confess I havent studied the sbasm documentation, I just dived in...)
Cheers
Phil
sbasm has added two instructions.

JS Jump to Subroutine

JS pntr,destination

which translates to
Code:
        LDI     /destination-1
        XPAH    pntr
        LDI     #destination-1
        XPAL    pntr
        XPPC    pntr
and

RET Return from Subroutine

RET pntr
coolsnaz2 is offline