[net.micro.mac] Fixing games that reboot

oster@lapis.berkeley.edu (David Phillip Oster) (10/10/86)

Games reboot the machines in one of two ways on the Mac:
either by a Motorola 68000 
	RESET instruction ;the hex for this is 4E70
or via a 
	JMP.L $40000A .;this latter is what apple recommends programs do
Remember that you can jump to 40000A using many addressing modes.
You can fix the rebooting by searching for the offending bytes,
disassembling a little bit around them to make sure your right, and
replacing the RESET or the JMP opcode  by $A9F4, 
(The Mac instruction ExitToShell, the approved program _exit() routine.)
FEDIT is a good tool for finding and fixing the problem.  

	Always work on a copy, don't risk screwing up either your master
disk or your hard disk until you're sure the fix works.

	Note: Many games, among them GridWars, screw up the environment,
so that even if you quit, you can't safely do anything BUT reboot.