Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!uokmax!d.cs.okstate.edu!minich From: minich@d.cs.okstate.edu (Robert Minich) Newsgroups: comp.sys.mac.misc Subject: Re: interrupt key Message-ID: <1990Oct6.065711.14087@d.cs.okstate.edu> Date: 6 Oct 90 06:57:11 GMT References: Organization: Oklahoma State University Lines: 69 by wilmott@emerald.rutgers.edu (Ray Wilmott): | Does anyone have a list of valid commands that can be used after | hitting the interrupt button on a Mac IIci? Hitting the button dumps | you into some sort of simple debugger I know, but exactly what | commands are available to you, and what is the proper syntax? | Any help will be most appreciated. Straight from the horses mouth... Here's TechNote #38. I thought others might like to this so I posted. (If you can, get the TN stack from apple.com, from which this text is copied. It's worth the 2.5MB of disk space!) -----8<------8<------8<-----8<- clip and save -8<------8<------8<------8<----- #038: The ROM Debugger Written by: Louella Pizzuti June 20, 1986 Updated: March 1, 1988 _______________________________________________________________________________ The debugger in ROM (not present on the Macintosh 128, Macintosh 512, or Macintosh XL) recognizes the following commands: PC [expr] (program counter) Typing PC on a line by itself displays the program counter. Typing PC 50000 sets the program counter to $50000. SM [address [number(s)]] (set memory) Typing SM on a line by itself displays the next 96 bytes of memory. Typing SM 50000 will display memory starting at $50000. Typing SM 50000 4849 2054 6865 7265 2120 will set memory starting at $50000 to $4849... Subsequently hitting Return will increment the display a screen at a time. DM [address] (display memory) Typing DM on a line by itself displays the next 96 bytes of memory. Typing DM 50000 will display memory at $50000. Subsequently hitting Return will increment the display a screen at a time. SR [expr] (status register) Typing SR on a line by itself displays the status register. Typing SR 2004 sets the status register to $2004. TD (total display) Displays memory at the "magic" location $3FFC80, which contains the current values of the registers. The registers are displayed in the following order: D0-D7, A0-A7, PC, SR. G [address] (go) Executes instructions starting at address. If G is typed on a line by itself, execution begins at the address indicated by the program counter. NOTE: If you want to exit to the shell, you just need to type: SM 0 A9F4, then G 0 NOTE: If you crash into the debugger and the system hangs, try turning off your modem. -----8<------8<------8<-----8<- clip and save -8<------8<------8<------8<----- -- |_ /| | Robert Minich | |\'o.O' | Oklahoma State University| A fanatic is one who sticks to |=(___)= | minich@d.cs.okstate.edu | his guns -- whether they are | U | - Ackphtth | loaded or not.