I remember when Sir Morris asked me to beta test his MIDI jobbies for the 81 (This being my bag) after 10 minutes of techno spiel of what pours out of the spand all I could think to say was "do you know I keep thinking it's Tuesday"
![Embarrassed :oops:](./images/smilies/icon_redface.gif)
I love the monitor.mrtinb wrote: ↑Wed May 26, 2021 10:35 pm Had a little play with the UDG version tonight. The UDG4ZXpand is below the keyboard controller.
A little question though. If I want to add new words with machine code, could you describe how to pass arguments. Are you just using the stack, or is top of stack a register, and which registers should be preserved?
Code: Select all
ld hl,$6000
ld (hl),$77
Code: Select all
HEX
CREATE AAA HERE DUP 2- ! 21 C, 00 C, 60 C, 36 C, 77 C, NEXT
Code: Select all
AAA
6000 C@ .
I fear I may have misunderstood you on re-reading the question. Yes, function arguments are always passed on the computation stack. However, the FIF stack is implemented differently from some other Forths i.e. the computation stack is not the machine stack.