Division

ZXNet echo conference «code.zx»

From Michael Kondratyev To Kirill Frolov 25 April 1999

Hi Kirill! Fri Apr 23 1999 13:12 you wrote to All: KF> HOW CAN IT BE FASTER AND SHORTER? You yourself understand - either faster, or shorter. I found this: =========== Cut and save =========== ldhl,0 ld a, b ld b, 16 @@loop: sla c rla adc hl, hl or a sbc hl, de inc c jp nc, @@next dec c add hl, de @@next: djnz @@loop ld b,a ret =========== Cut and save =========== KF> You should at least put the i80486 in the spectrum, there KF> division is performed in 24 cycles... :-( uh-huh, and you should have a cow's udder implanted so that you don't have to go for milk. Bye, Michael.