I got the following routine for 16-bit x 8-bit multiplication. But something is missing. I think 'hl' needs to be rotated at some points.
Code:
Edit: I decided to use the routine Kerm recommended to me a while back. 8-bit x 8-bit into a 16-bit. Is this the routine, or do I need to add a loop, because it doesn't seem to loop.
Code:
sla h ; optimised 1st iteration
jr nc,$+3
ld l,e
add hl,hl ; unroll 7 times
jr nc,$+3 ; ...
add hl,de
Edit: I decided to use the routine Kerm recommended to me a while back. 8-bit x 8-bit into a 16-bit. Is this the routine, or do I need to add a loop, because it doesn't seem to loop.