Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site terak.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!hao!noao!terak!doug From: doug@terak.UUCP (Doug Pardee) Newsgroups: net.micro.cbm Subject: Re: Changing warmstart vectors Message-ID: <447@terak.UUCP> Date: Fri, 15-Mar-85 12:21:13 EST Article-I.D.: terak.447 Posted: Fri Mar 15 12:21:13 1985 Date-Received: Tue, 19-Mar-85 04:59:47 EST References: <947@topaz.ARPA> Organization: Terak Corporation, Scottsdale, AZ, USA Lines: 19 > I want to modify the NMI vectors (?) so that a run-stop/restore will restart > my program. The program is a terminal program, so it needs the RS232 NMI > handling. How do I modify the vectors (and which ones) so that a run-sto/ > restore will do what I want without interfering with normal RS232 NMI stuff? I can't tell you offhand the exact info, but you don't want to play around with page zero, because there's another place just for what you want to do. I don't remember the address just now -- it's $A000 or something like that. It's used by BASIC and by cartridges for exactly the same purpose that you have. As I recall, you have to page out the BASIC ROM so that you have the RAM in its place, then you put a pointer in that location which points into your program. At that part of your program there has to be a 7-byte (is that right?) sequence, including "CBM" or something similar in PetAscii. Check in the Programmer's Reference, I'm pretty sure it's in there. -- Doug Pardee -- Terak Corp. -- !{hao,ihnp4,decvax}!noao!terak!doug