Difference between revisions of "A little optimization for Z80 Assembler"
From CPCWiki - THE Amstrad CPC encyclopedia!
m |
|||
Line 5: | Line 5: | ||
* CP 0 -> OR A | * CP 0 -> OR A | ||
* LD A,0 -> XOR A | * LD A,0 -> XOR A | ||
+ | * CALL nn : RET -> JP NN | ||
+ | * BIT 0,A : JR NZ,n -> RRA : JR C,n | ||
See also: | See also: | ||
Line 17: | Line 19: | ||
http://www.ticalc.org/archives/files/fileinfo/285/28502.html | http://www.ticalc.org/archives/files/fileinfo/285/28502.html | ||
+ | |||
+ | https://github.com/santiontanon/mdlz80optimizer | ||
[[Category:Assembler]] | [[Category:Assembler]] |
Latest revision as of 05:32, 20 December 2021
So, you want to optimize your assembler code a little bit ?
Here are some "generic" ways to speed up / shorten your Z80 progs a little bit:
- CP 0 -> OR A
- LD A,0 -> XOR A
- CALL nn : RET -> JP NN
- BIT 0,A : JR NZ,n -> RRA : JR C,n
See also:
http://shiar.nl/calc/z80/optimize
http://wikiti.brandonw.net/index.php?title=Z80_Optimization
http://z80-heaven.wikidot.com/optimization
http://www.ticalc.org/archives/files/fileinfo/285/28502.html