Re: A86: Asm newbie question Part 2
[Prev][Next][Index][Thread]
Re: A86: Asm newbie question Part 2
I was wondering where this call came from. Everybody seems to know about
it except me. Has someone produced a list of rom calls such as this that
I missed?
---
Andy Johnson
"Change is inevitable...
except from vending machines"
On Mon, 02 Feb 1998 01:35:41 -0500 Stephen Hicks <shicks@MindSpring.Com>
writes:
>
>Ok, if you have a number that you just POPed into BC, and you want to
>display it, then you want to move the value in BC into HL, and zero
>out A so
>that AHL is equal to what BC was. AHL is a 24-bit register pair
>(somewhat
>makeshift - the CPU does not directly support it). In plain assembly,
>you
>want to do the following:
>
> ld l,c ;copy the lower byte of BC into HL
> ld h,b ;copy the upper byte of BC into HL
> xor a ;zero out A. I'm a little rusty at asm, and not sure if
>this one
>is exactly correct...
> call $4a33 ;display AHL
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
References: