RE: A86: Another Question


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

RE: A86: Another Question




i think i figured it out :)
i was displaying hl instead of a, and they were 1 byte each, not 2.  Thanks.
					-Ahmed

--
Ahmed El-Helw
ahmedre@bellsouth.net
http://asm8x.home.ml.org
ICQ: 3350394

-----Original Message-----
From: owner-assembly-86@lists.ticalc.org
[mailto:owner-assembly-86@lists.ticalc.org]On Behalf Of Joshua J Seagoe
Sent: Friday, August 14, 1998 11:35 AM
To: assembly-86@lists.ticalc.org
Subject: Re: A86: Another Question




On Thu, 13 Aug 1998 23:27:59 -0400 "Ahmed El-Helw"
<ahmedre@bellsouth.net> writes:
>
>hello, can someone tell me why this outputs huge numbers? Am I missing
>something??

my, but that's odd looking code.
how huge?  do they get bigger than 86?  it doesn't look like you'd get
anything bigger than that to me.
make sure varspace doesn't run over Random.

why are you using memory when you've got 2 perfectly good registers
available?
>  ld a,(temp)		;Increase Temp and Temp2 by 2 each
>  inc a \ inc a
>  ld (temp),a
>  ld a,(temp2)
>  inc a \ inc a

>  ld (temp2),a
>  ld a,(temp2)
was this really written in asm?

>varspace=$
> price = varspace+1
> price1 = varspace+2
>....
> price14 = varspace+3
make sure this is after all the code

-josh


_____________________________________________________________________
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: