Hacker News new | ask | show | jobs
by wkjagt 987 days 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.
1 comments

however 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
There 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.