LZ: RE: A few ASM questions
[Prev][Next][Index][Thread]
LZ: RE: A few ASM questions
On Monday, July 21, 1997 10:19 PM, Buddy Smith[SMTP:ti85calc@bellsouth.net] wrote:
> Hi! I have a few questions...
>
> 1: How can I do something equivalent to ex ix,de? will this work:
> .db $dd/ex ix,de? Currently, I'm using this:
> ld (somevar),ix/ld de,(somevar)
Nope, ex IX,DE does not exist (it's not even undocumented).
> 3: Could someone please repost that 8 bit multiplication routine?
This is directly from "Programming the Z80" by Rodney Zaks -- it's very optimized, but it could be unrolled to further speed it up:
;HL=L*E
ld B, 8
MULT:
add HL, HL
jr nc, NOADD
add HL, DE
NOADD:
djnz MULT
--
Sam Davies <sdavies@mail.trilogy.net>
Follow-Ups: