Changes

Jump to: navigation, search

Programming:Fast Square Root

10 bytes removed, 00:46, 19 September 2007
/* Faster Again */ - Optimised using SBC A:ADD n
RET
ge2: CP 3 * 3
LD SBC A, 3 SBC 0ADD 3
RET
ge4: CP 6 * 6
JR NC,ge6
CP 5 * 5
LD SBC A, 5 SBC 0ADD 5
RET
ge6: CP 7 * 7
LD SBC A, 7 SBC 0ADD 7
RET
ge8: CP 12 * 12
JR NC,ge10
CP 9 * 9
LD SBC A,9 SBC 0ADD 9
RET
ge10: CP 11 * 11
LD SBC A,11 SBC 0ADD 11
RET
ge12: CP 14 * 14
JR NC,ge14
CP 13 * 13
LD SBC A,13 SBC 0ADD 13
RET
ge14: CP 15 * 15
LD SBC A,15 SBC 0ADD 15
RET
</pre>
[[Category:Programming]]
151
edits