Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RANDOMIZE USR issue
#14
The END issue has been discussed in this forum already. The way you use the binaries (loading binaries from within an emulator?) is not related to ZX Basic. ZX Basic already provide same mechanisms to do that (explained before) :roll:
If you load them into an emulator as you said, I recommend you to first compile with --heap=1024 (for example) and see where ZX Basic heap ends (the heap is used as a temporary working memory for STRING variables and string related operations for example). Then load the binaries beyond that memory address or you'll be mostly like overwriting something.

Usually, if you don't reserve some memory to load binaries in advance, your program might randomly fail (despite it's apparently working for a while).
Also, ZX Basic already adds hidden END automatically at the end of your listing (it's called [i]code epilogue[/]).

I insist one last time: The safe way is to use INCBIN "filename.bin" within an ASM context.
Anyway, glad to hear it worked for you. :wink:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)