Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!lll-winken!claris!wombat From: wombat@claris.com (Scott Lindsey) Newsgroups: comp.sys.apple Subject: Re: IIgs Software Reboot Keywords: landslide, duplicable, intricate, citron Message-ID: Date: 12 Dec 89 21:29:51 GMT References: <1949868@mtsg.ubc.ca> Sender: wombat@claris.com Organization: Claris Corporation, Santa Clara, CA Lines: 30 In-reply-to: Les_Ferch@MTSG.UBC.CA's message of 10 Dec 89 08:28:14 GMT Subversive: plutonium In article <1949868@mtsg.ubc.ca> Les_Ferch@MTSG.UBC.CA writes: > I need a routine that will reboot a IIgs in the same way that > pressing Control-Apple-Reset does. I already have the program > sreset.sys, but it's just a little too severe for my needs because > it clears the /RAM5 volume. I do it by faking the ADB sequence after munging the power-up byte. Note that this can do bad things if GS/OS is busy at the time, just like rebooting manually when the drive's spinning. LDA >$0003F4 ; Power-up byte EOR #$00FF ; muck it up. STA >$0003F4 PEA $0000 PEA $0000 PEA $0000 PEA $0010 LDX #$0909 JSL $E10000 ; Send the ADB message for Ctl-Apple-Reset ; Not reached: tool call doesn't return. Scott Lindsey |"Cold and misty morning. I heard a warning borne in the air Claris Corp. | About an age of power when no one had an hour to spare" ames!claris!wombat| DISCLAIMER: These are not the opinions of Claris, Apple, wombat@claris.com | StyleWare, the author, or anyone else living or Dead.