Z80 Optimization

From WikiTI
Revision as of 07:34, 3 November 2009 by Galandros (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This article is a stub. You can help WikiTI by expanding it.


Sometimes it is needed some extra speed in ASM or make your game smaller to fit on the calculator.


General algorithm improvements and correct use of registers.

Small Tricks

;Instead of:
 ld a,0
;Try this:
 xor a    ;disadvantages: changes flags
 sub a    ;disadvantages: changes flags