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

Re: AppleMouse firmware easter egg



Michael J. Mahon wrote:
> <aiiadict@gmail.com> wrote:
>> On Saturday, August 11, 2012 11:39:47 AM UTC-7, TomCh wrote:
>>> btw, I had to look up the ctrl-e monitor cmd. For those that don't know
>>> it (to set A,X,Y):
>>> 
>>> CTRL-E
>>> 
>>> :FF C4 40<CR>
>> 
>> 
>> That is a good command to know!  How would you be able to preserve the
>> Accumulator with the value you put in it?  The monitor has to use AXY for
>> cursor position, etc..
>> 
>> control-E
>> :AA XX YY
>> <return>
>> 
>> right back to the monitor, which will be using AXY for its own code... 
>> Typing JMP XXXX or C400G would destroy the contents of the register???
>> 
>> 
>> Rich
> 
> I imagine that it updates the save locations from which the registers are
> restored prior to a Go. 

As Jerry said, this is documented in the Red Book, the white manual, and my
New Apple II User's Guide (as well as other books, no doubt).

These register values are what is initially used when the G, T, or S
commands are used to execute, trace, or single-step (respectively) a program
from the Monitor.

In the IIgs Monitor, it is possible to directly apply a value to a register
by using its short label, like so:

*A=FFDD

This will assign the 2-byte value $FFDD to the A register.

A full list of all 65C816 registers and flags is found on page 35 of the
Apple IIgs Firmware Reference Manual, or page 467 of The New Apple II User's
Guide.


-- 
]DF$
Apple II Book: http://macgui.com/newa2guide/
Mac GUI Vault: http://macgui.com/vault/
Usenet Archive: http://macgui.com/usenet/