Category:Z80 Assembly: Difference between revisions

m
(→‎Efficient Coding Tricks: Removed excessive Dr. Evil air quotes)
Line 87:
 
===Inlined bytecode===
Branches take a decent amount of clock cycles, even if they're not taken. A branch not taken is faster than one that is (except JP which takes 10 cycles regardless of the outcome), but either way you're taking a performance hit. It's really frustrating when you have to branch around a single instruction:
<lang z80>jr nc,foo
ld a,&44
1,489

edits