sjasmplus icon indicating copy to clipboard operation
sjasmplus copied to clipboard

full clean ram without any FCKN basic shit request

Open NEO-SPECTRUMAN opened this issue 2 years ago • 2 comments

NEO-SPECTRUMAN avatar Sep 19 '22 13:09 NEO-SPECTRUMAN

yes i know that some n00bs want to use basic with asm

but this shit is interferes with coding on pure asm

I don't want to write dup $4000 on every fckn page everytime

sometimes i forgoting to do this (i totaly doesn't expect shit like this from compiller) and got some extra glitches

NEO-SPECTRUMAN avatar Sep 19 '22 13:09 NEO-SPECTRUMAN

All pages except default mapped ZX stuff are zeroed. So all you need is right after DEVICE ZXSPECTRUM... : DS $10000, 0 : ORG 0 (64ki fill)

like this:

ped@ped7g-sb:~$ sjasmplus - --msg=war
SjASMPlus Z80 Cross-Assembler v1.20.1 (https://github.com/z00m128/sjasmplus)
 DEVICE ZXSPECTRUM256 : DS $10000,0 : ORG 0                                              
 SAVEDEV "testdev.bin", 0, 0, 256*1024
ped@ped7g-sb:~$ hd testdev.bin 
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00040000

256kiB of zeroes.

I honestly would find it more difficult to remember some new command or switch, than to just clear the memory myself, so I'm not sure what you want to do about this one, it would be a major change of default behaviour, I don't feel brave enough to do that with 1.x branch, and the workaround is trivial.

ped7g avatar Sep 19 '22 19:09 ped7g