Changes

Z80

1 byte added, 26 February
/* Optimization */
* To set A to zero, XOR A is one byte smaller and one M-cycle faster than LD A,0.
* To check if A is zero, AND A or OR A are one byte smaller and one M-cycle faster than CP 0.
* If tables are aligned to a 256-byte boundary, the contents can be accessed by placing the index in a register such as L and the table address in H. This is faster than loading the full unaligned 16-bit address and adding a 16-bit index to it, and makes accessing tables with a size of 256 bytes or less very convenient.
* Unrolled LDI loop is faster than LDIR.
* If tables are aligned to a 256-byte boundary, the contents can be accessed by placing the index in a register such as L and the table address in H. This is faster than loading the full unaligned 16-bit address and adding a 16-bit index to it, and makes accessing tables with a size of 256 bytes or less very convenient.
 
<br>
13,173
edits