Date : Thu, 02 Jun 2005 13:01:17 +0100
From : Michael Borcherds <emulators@...>
Subject: Re: Assembly Language Square Root
Peter Craven <cjl_craves@...> wrote:
> I came across a Z80 Assembly Language program at the end of the web page
> at: http://map.tni.nl/articles/mult_div_shifts.php
> Sqr16_Loop:
> sbc hl,de
The Z80 carry is used the other way round to the 6502 for the SBC
instruction so you might need to think about swapping the carry before and
after it.
cheers,
Mike
--
6502Em version 4 http://www.borcherds.co.uk/murklesoft/riscos/6502em.html