2 ms·
In Commodore BASIC there's already SYS, which lets you jump to an arbitrary address anywhere in the 64k address space, including ROM. You can even include raw b
by wkjagt 3y ago
In Commodore BASIC there's already SYS, which lets you jump to an arbitrary address anywhere in the 64k address space, including ROM. You can even include raw bytes in a BASIC program and have the CPU execute them as machine code.
- p0w3n3d 3y agohowever encoding such program in BASIC would take much more amount of commands/bytes than writing it in BASIC itself. You would need DATA statement and POKE FOR LOOP... In case of such a small scenario BASIC wins
- gabrielsroka 3y agoThere are ways around that too... store bytes in a string or a REM and then execute it directly. No DATA or FOR needed. There were some workarounds posted on of Robin's recent video.