Re: A86: 8-bit multiply routine


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

Re: A86: 8-bit multiply routine




I'm going add a little more redundancy.

Here's a routine that I made that's not 8x8 but it might be faster
than both of the routines earlier mentioned. (I didn't check)



;       syntax:  de * b -> hl
Small_Mult:
	ld hl, 0		;10
Multloop:
	add hl, de		;11
	djnz Multloop		;13/8
	ret			;10

Tercero


Joshua Grams wrote:
> 
> Sorry about the redundant multiply routine. I didn't see Dan's message.
> Mine is the same as his, except he unrolled the loop and takes A and L as
> inputs instead of H and L.
> 
> --Joshua


Follow-Ups: References: