News for hackers. Stuff that matters.
Re:Z80 CPU User Manual (2016) by wruza on Wednesday October 14, 2020 @10:33AM (#24776948)
On page 27, example 2, they use JP PE, LOOP. Why not JR PE, LOOP-$? Is that because JR has no encoding for some flags?
Re:Z80 CPU User Manual (2016) by elvis70 on Wednesday October 14, 2020 @11:05AM (#24777328)
Yes, you can only test the carry and zero flags with JR.

Note that JP takes one byte more but is a bit faster than JR when the condition is met.