I recently bought a c64 mini and been trying to code some assembly using Turbo Macro Pro v1.2.
While working on the hello world program I found a tutorial where an auto run BASIC header was used.
I tried to also include a PRINT CHR$(147) to clear the screen, but I get an OUT OF MEMORY ERROR.
the original BASIC header was:
*=$0801
.byte $0c, $08, $0a, $00, $9e, $20
.byte $34, $30, $39, $36, $00, $00
.byte $00
I modified it to:
*=$0801
.byte $0e, $08, $0a, $00, $99, $20
.byte $c7, $28, $31, $34, $37, $29
.byte $00,
.byte $19, $08, $14, $00, $9e, $20
.byte $34, $30, $39, $36, $00, $00
.byte $00
When I assemble and run from TMP and then type LIST i get,
10 PRINT CHR$(147)
20 SYS 4096
But when RUN I get the OUT OF MEMORY ERROR at line 10.
Am I doing something wrong? Or is it really out of memory for this instruction?
TMP is still loaded in memory in the background. I'm currently running this in VICE.
TMP
is. Is that your whole code? Do you have the load address set for yourPRG
? Sounds likeCHR$
is trying to allocate a new string and fails because it thinks there is no free memory left. – Nerin