Topic: rewriting Pasmo to SDCC equilivant
I've been playing around with the sound engines a bit and there are a number of them that I have not been able to convert to use with SDCC.
I am specifically working on Nanobeep, but I see this little line of code in many of the sound engines.
I have yet to find a way after much googling to find the SDCC equivalent of the command combo
oldSP equ $+1
ld sp,0
Which according to what I understand oldSP will read the value of sp prior to being changed back to 0.
The problems is that I am using SDCC assembly and me not knowing assembly very well I am having trouble converting this to some equivalent in SDCC.
Any help with this would be appreciated.
Thanks