A82: Re: need help with this rutini
[Prev][Next][Index][Thread]
A82: Re: need help with this rutini
Here ya go:
xor a
srl h \ rr l \ rla
srl h \ rr l \ rla
srl h \ rr l \ rla
ret
----- Original Message -----
From: "Roger Levy" <trip_n_save@hotmail.com>
To: <assembly-82@lists.ticalc.org>
Sent: Saturday, May 20, 2000 16:43
Subject: A82: need help with this rutini
>
> this routine is supposed to truncate hl (er divide it by 8) 3 bits and put
> the result in A, but it doesnt seem to be working right. what am i doing
> wrong?
>
> A_HL_DIV_8:
> SRA L
> SRA L
> SRA L
> RR H
> RR H
> RR H
> LD A,L
> XOR H
> RET
Follow-Ups:
References: