[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appl //c Basic



Mark Cummings <NOTfigjams@primus.com.au> wrote:

> > 1.  Is there a basic command that will disable the control-reset function
> > to get to the basic prompt?
> 
> I'm sure there is a way, but not directly in BASIC. I have seen some
> programs that won't RESET. I think the trick is to modify the RESET vector
> so that it does what you want it to do, even if that something is nothing.

You can't make the reset do nothing - it has to jump somewhere.

The closest you could get with a BASIC program would be to make it run
the program again, or force it to reboot.  You might be able to arrange
running from a particular line number with assistance from a machine
code program.  It may be possible to trigger an ONERR GOTO, but this
isn't as safe as a RUN, because the reset might have left some variables
corrupted.