[A83] Re: DivHLbyA


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

[A83] Re: DivHLbyA




So you mean like this?....


Org userMem
	Blah blah blah
	Ld hl,(Uservar)
	Ld a,(Uservar3)
	B_CALL DivHLByA
	Etc, etc...
	ret
		


Uservar: db 25h,10h
Uservar2: db 3Fh,0Dh
Uservar3: db 3


The only problem I would see is the backwards loading thingy. If you do
ld hl,(Uservar)...hl=1025h, not 2510h (correct me if I'm wrong). I know
that the length bytes of variables are stored least significant byte
first as well...

Now that I think about it that definitely is right... if you do ld
de,0500h then ld (penCol),de....penCol=00 and penRow=05.

Hope that helps!
Tom


-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org] On Behalf Of
Darkfire139@aol.com
Sent: Wednesday, January 09, 2002 10:04 PM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: DivHLbyA

Nope... (user-defined variables)
> 
> Do you mean TIOS variables like 'A' or 'Xmin' or something?
> 
> - - Joe


-------------------
Colin Hart
darkfire139@aol.com








Follow-Ups: References: