08-16-2012, 04:34 PM
boriel Wrote:Hmmm. You're directly patching the .bin. This is the hardest way, IMHOhock:
but it works! \o/ - see <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/permalink/428984207153104/">https://www.facebook.com/groups/mc1000/ ... 207153104/</a><!-- m --> - it was successful, and consider that zxbasic-compiler can officially create mc1000/gem1000 stuff! \o/ - but, any help you know for improving it would be much better!

and the patching part can be considered and taken as "documentation" about how is this getting successfully done!

Quote:Anyway, the compiler generates a push/pop sequence for the ZX Spectrum (it's harmless on other architectures, but should be removed, I think).
well, i struggle on that a lot - btw, i see that push/pop is very used on 'sub fastcall' and 'function fastcall', and i have no idea how to be not using that so!...
but btw, the most important is that is working awesomelly fine! (and i have no beers in the freezer for commemorating, damn!....

