LZ: ROM Calls
[Prev][Next][Index][Thread]
LZ: ROM Calls
-
Subject: LZ: ROM Calls
-
From: SAM STAUFFER <sam.stauffer@aquila.com>
-
Date: Thu, 12 Sep 96 20:41:00 -0600
-
In-Reply-To: <>
-> I'm working on disassembling the ROM code and hopefully finding some
-> neat things. Does anyone know of the addresses of any ROM calls in
-> ROM 10.0?
These are some I figures out today.
----------------------
Some ROM routines have really no use (Mainly since they modify variables
in memory that I have no idea what they are), but I include them so that
if anyone else finds out what the memory is they can figure out what the
procedure is for.
================== RAM =====================
Table 0x7976: ??
Byte 81fe: ??
================== ROM 10.0 ================
-- 0x00ac --Decremets Busy Counter: if zero update BUSY and reset counter--
Input:
none
Output:
HL - 0xfc8f
DE - 0x0010
B - 0x00
A - Current BUSY bitmap
-- 0x015d --Multiple keys pressed--
Input:
none
Output:
KEY_2 - 0xFF
KEY_STAT - 0x05
A - 0x05
-- 0x419e --Adds A to HL--
Input:
A
HL
Output:
HL - HL+A
D - 0x00
E - A
-- 0x4246 --Sets Mem:(0x81d1) to 0x5a9d
Input:
None
Output:
Mem:(0x81d1):Word - 0x5a9d
( What is the word at 0x81d1 for? )
-- 0x4918 --Sets Mem:(0x81fe)=0 Mem:(0x81fc)=0x81f0
Input:
None
Output:
A - 0x00
DE - 0x81f0
Mem(0x81fe):Byte - 0x00
Mem(0x81fc):Word - 0x81f0
-- 0x6e52 --Returns value in table at 0x7976 with index in A--
uses Procedure at 0x71af
Input:
A - Index
Output:
A - Mem:(A*7+0x7976):Byte - Table entry at Index
-- 0x6e5b --Compares Cursor Row with Mem:(0x8b30)--
Input:
None
Output:
A - Cursor Row
Zero Flag
-- 0x71af --Calculates Address into table at 0x7976 with index in A--
Input:
A - Index
Output:
DE - 0x7976
HL - A*7+0x7976
----=====================================================================----