ZbyniuR_CPC_Basic_vc3-2023.zip
this ZIP file contain:
Code - how to measure program size AND listing.PNG
Result - effect of program 'stars.bas' from dsk.PNG
STARS.BAS - (with header)
ZbyniuR_CPC_Basic_vc3-2023.DSK - (for emulator)
and this FILE_ID.DIZ
Comment:
I hope we can use control codes in PRINT, which we have access for example by Ctrl+K. The regulations say nothing about this. It's hard to display as TXT on different system, because this codes are smaller than 32 in ASCII, but there is no POKE or assembly code, so it is still pure Basic. :)
On image I show how to measure the size of a Basic file in CPC. Just type twice:
?fre(0) <- this show free memory for Basic.
First time after a reset and the second time after LOAD, but before RUN, because after RUN some variables occupied several bytes.
My version took 100 bytes.
I believe DSK file is more comfy to use in emulator than BAS, so I add it. :)