[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can Ctrl-C interrupt be removed from ProDOS BASIC?
swh54716@uxa.cso.uiuc.edu (Scott W. Henson) writes:
>Can the Ctrl-C interrupt be removed from ProDOS and/or Basic.System so
>that programs that run from self-booting disks cannot be terminated during
>the boot sequence (i.e. before they have been loaded and execution has
>started)? If so, how would one go about patching things to remove the
>interrupt handler?
The problem is that Ctrl-C is neither in ProDOS nor in BASIC.System. It's
in ROM. No matter how you patch BASIC.System, there's always going to be a
short amount of time after BASIC.System has told the ROM to run the program
and before a possible ONERR GOTO executes on the first line.
The nly thing I can tink of, (it would be much more than a simple patch
however) is for BASIC.System to intercept and eat Ctrl-C's before calling
any Applesot code in ROM. And even that may not work because Applesoft
grabs I/O vectors during initialization (probably)
______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Suicide (n.): What to do if Macs |
|________________|________________|_______________take over the world__|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~