It's 40 years since I used to write this stuff commercially but pretty sure I still remember that to read the function parameter you just load the ix reg from the sp and then use this to reference the parameters instead of using the hl reg. Saves messing with the stack. Also the way you are doing it you can just inc/dec the sp rather than using pop repeatedly to avoid the memory writes. ASM is fun but I wouldn't swop c++ for it. :-) Nice video, thanks.
This is what I like about programming, there’s always another way to do something. Moving SP sounds like an easy way to do it, I’ll remember that for the future thanks! And yeah I wouldn’t want to write everything in asm, that’s why I’ve been figuring out how to use C.
That was really interesting. And your video had channel branding and infodrop graphics, which is new and makes it look very professional. One question that I had was why did the assembly have so many NOP instructions? Is this a timing or spacing issue you have with the code to ensure that it fits the requirements for the display?
It's 40 years since I used to write this stuff commercially but pretty sure I still remember that to read the function parameter you just load the ix reg from the sp and then use this to reference the parameters instead of using the hl reg. Saves messing with the stack. Also the way you are doing it you can just inc/dec the sp rather than using pop repeatedly to avoid the memory writes. ASM is fun but I wouldn't swop c++ for it. :-) Nice video, thanks.
This is what I like about programming, there’s always another way to do something. Moving SP sounds like an easy way to do it, I’ll remember that for the future thanks! And yeah I wouldn’t want to write everything in asm, that’s why I’ve been figuring out how to use C.
I now consider you primed and ready for 320x256x8bit graphics mode on the Next ;-)
-Dx
Funny you should say that. I’ve just made z88dk and DeZog work, so that’s what I’m doing...err... Next.
That was really interesting. And your video had channel branding and infodrop graphics, which is new and makes it look very professional. One question that I had was why did the assembly have so many NOP instructions? Is this a timing or spacing issue you have with the code to ensure that it fits the requirements for the display?
It’s a timing thing, the display needs a delay between the commands and the NOPs add just enough.