[A83] Re: DivHLbyA


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

[A83] Re: DivHLbyA




> Van: Darkfire139@aol.com
> 
> The Romcall DivHLbyA divides hl by a, and stores the result in HL. This
> works for me when loading numbers directly into HL and A, but not with
> user variables. How can I get DivHLbyA to work with user-made variables?

With user variables you might want to use Ti's FP-routines, for example
_DIV...

Just load the first var (see AsmGuru on how to do that). It will probably
be in OP1 then, so copy it to OP2. Then do the same with the second var,
and call _DIV (or whatever FP math operation you want to do).

	Henk Poley <><