Re: A86: Menu text table, AHL


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

Re: A86: Menu text table, AHL




Grams Family wrote:

> >Also, could someone explain AHL to me. I half-worked it out on
> >my own, but I still end up with 2 or 3 possible page/address
> >locations when I do it by hand.
> >
> I _think_ A is the page and HL is the offset. But I haven't really looked
> at it yet.

AHL is 24 bit pseudo-register.  No, A isn't always the page (although there is a
call in ti86abs.inc that sets AHL to A=ram page, HL=offset).  It goes like this:

$00000-$0FFFF:Normal RAM/ROM (i.e. if A=0, then (AHL)=(HL))
(just to establish a pattern, $0C000-$0FFFF is always RAM Page 0)
$10000-$13FFF:RAM Page 1
$14000-$17FFF:p2
$18000-$1BFFF:p3
$1C000-$1FFFF:p4
$20000-$23FFF:p5
$24000-$27FFF:p6
$28000-$2BFFF:p7
(i think that's all)

--
Stephen Hicks
mailto:shicks@mindspring.com
UIN:5453914
AIM:Kupopo1



References: