Search found 2 matches
- Sat May 04, 2019 1:18 pm
- Forum: NESdev
- Topic: CMP setting N flag when it shouldn't?
- Replies: 30
- Views: 19903
Re: CMP setting N flag when it shouldn't?
Thanks for the explanation, that makes sense!
- Sat May 04, 2019 12:44 pm
- Forum: NESdev
- Topic: CMP setting N flag when it shouldn't?
- Replies: 30
- Views: 19903
CMP setting N flag when it shouldn't?
Hi everyone, This is probably a newbie question, but I don't fully understand the behavior of CMP in 6502 assembly. When comparing two numbers (say accumulator with something in memory), I thought it set the N flag when the accumulator is smaller than memory. However, in the following example, it se...