08-11-2022, 12:10 PM
(08-11-2022, 08:59 AM)boriel Wrote: Starting your code at, let's stay --org 26000 it's a safe value. From that point downwards to 0 it's used for the stack.I just noticed there are some tips there to include beepola's asm into zx basic, I had tried that but I see I need to change some code first. I only remembered the use of a separate tap file, which was not my intention. If I manage to include the asm, that would be the perfect solution for me (I may even manage to change some stuff in the background of the menu while the music is playing which was my intention).
Placing binaries at random locations will mostly not work and will overlap with your compiled code. Currently ZX Basic does not support that. It's a long road to implement that feature (I'm working on it)
Instead, you should use INCBIN with labels as you already did, and get their address with @label
There are several approaches to this in the thread I posted above. Hope this help.
Thank you ?