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

Re: Monitoring Program



Ingo Soetebier wrote:
> 
> I remember that there is a monitoring program (I hope it's the right
> translation - a program which shows the content of the memory as hexdump
> or as assembler listing) built in the Apple //c.
> Can anybody tell me how to start this program and give me a list of all
> existing commands? I think it was a 'call' command for starting, but I
> don't know the right address. I can't find anything about it in my
> german documentation.
> 
This is reaching back several years, but I believe the address you want is
"-151". When you use this CALL, your prompt will change to an asterisk like this:

]CALL -151
*

Once you are in the monitor, you can examine and modify memory to your heart's
content, keeping in mind that it's very easy (too easy!) to mess things up so
much that the only recovery is a reboot.
Here are the commands that I can remember:
####L				List memory from hex address ####
This lists 23 lines of disassembly. Typing L again without an address
continues with the next 23 lines. Typing more than one L, with or without the
address, lists 23 lines for each L typed.
####G				Execute instructions starting at hex address ####
####<$$$$.%%%%M		Move (copy) memory from $$$$ through %%%% to start at ####
####.$$$$			Hex dump of memory from #### through $$$$
####				Hex dump of memory starting at #### through the next multiple of 8
Pressing RETURN after either of the Hex dumps above will dump the next 8 bytes.
####:$$ %% &&...	Change values starting at #### to $$ %% &&...
Typing this command without an address will start changing memory from the
current pointer, so after typing a line of values to put in memory you don't
need to know the address for the next line.

That's all I can remember right now. Some models have a built-in assembler
called Sweet-16 that was written by Steve Wozniak, but I'm not sure which
models have it. I think the command to enter it was simply an exclamation mark
(!). I think its prompt was also the "!". If you have it, this will allow you
to enter programs using 6502 assembly mneumonics instead of having to know the
hex values. When you're done with the monitor and want to return to AppleSoft,
there are three ways to do it:

If you're using DOS, execute its re-entry point at $3D0 with the command "3D0G".
If not using DOS, type ^C RETURN to Continue BASIC with any program intact.
If not using DOS, type ^B RETURN to Begin BASIC with any program cleared (same
as NEW command).

Hope this helps,
Dennis
--
+=================================+=========================================+
|    Dennis McCormick-Kovacich    | <mailto:dennis_mcc-k@longlivethemac.com>|
| Satisfied Apple user since 1980.| <http://hills.ccsf.cc.ca.us/~dmccor01/> |
+---------------------------------+-----------------------------------------+
|   Learn to program the MacOS for FREE -- see <http://www.themost.org/>    |
+---------------------------------------------------------------------------+
|  Get Mac news and help -- <mailto:evangelist-info@public.lists.apple.com> |
|    Join the EvangeList at <http://www.lists.apple.com/evangelist.html/>   |
+---------------------------------------------------------------------------+
|      Unsolicited bulk email will be proofread @ $500/K, 2K minimum!       |
+===========================================================================+