Chuck(G)
25k Member
It's better to go into BASIC than to get the computer halted. There may even be a way to return to the operating system...
<clip>
This should theoretically work, as long as no other interrupts goes off durning step 1, 2 and 5. It also relays on that C-BASIC doesn't wipe out the interrupt vector table, and that interrupts are enabled durning runtime. Running BASIC programs that pokes above the first 64Kb should also be avoided.
But what's the point? And even more importantly, what commercial application does this?
I have never seen an application that went to ROM BASIC rather than halt the system (or even give the user an option to reboot).