Category:Z80 Assembly: Difference between revisions
Content added Content deleted
m (changed tags to display code correctly) |
m (changed tags) |
||
Line 58: | Line 58: | ||
===Everyone's favorite=== |
===Everyone's favorite=== |
||
This is where you start optimizing Z80 code: |
This is where you start optimizing Z80 code: |
||
<syntaxhighlight lang="Z80"> |
|||
XOR A ; set A to zero |
|||
This saves 1 byte and 3 cycles. |
; This saves 1 byte and 3 cycles, but also changes the flags. |
||
</syntaxhighlight> |
|||
===Fast Checking for Odd or Even=== |
===Fast Checking for Odd or Even=== |