문제

I want to debug my program, but I need to know the value of the flags register, but im stuck figuring out the instructions to do so. For z80 processor.

[My only guess is to use jp *, nn and then set bits in register A depending on the jumps to test the conditions, but surely theres a much simpler way but i just can't see it]

도움이 되었습니까?

해결책

You can push AF and then pop it to any of: BC, DE or HL, from where you can extract the flags state.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top