|
|
|
|
|
by anyfoo
1766 days ago
|
|
Code density, and you could potentially save a few cycles with a single instruction. Whether that matters at all depends on how much slack you have in your utilization of available memory and CPU cycles. (Strictly talking about "old" CPUs here.) It's worth noting that the 8086 got rid of conditional returns, you only have unconditional ones there. |
|
Looking up the conditional return instructions on the 8080 seems to show it takes 5 cycles when false and 11 when true.
So the two 6502 instructions add up to being two or three cycles faster than one 8080 conditional return.