Programming the 6502 microprocessor and its relatives in assembly and other languages.
BigEd
Posts: 11464 Joined: 11 Dec 2008
Location: England
Contact:
Post
by BigEd » Mon Oct 18, 2021 10:58 am
Well that's awkward - if the tutorial is wrong then we need to fix it. I now see Bruce's document
here says
The N flag contains most significant bit of the of the subtraction result. This is only occasionally useful. However, it is NOT the signed comparison result, as is sometimes claimed, as the following examples illustrate...
barrym95838
Posts: 2056 Joined: 30 Jun 2013
Location: Sacramento, CA, USA
Post
by barrym95838 » Mon Oct 18, 2021 2:57 pm
Bruce elucidates BDD's point
here and helpfully offers some work-arounds in that same article.
[oops, I didn't read Ed's reply before posting ...
... I still believe that I may have added some value, so I'll leave it.]
BigDumbDinosaur
Posts: 9426 Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:
Post
by BigDumbDinosaur » Tue Oct 19, 2021 12:47 am
[oops, I didn't read Ed's reply before posting ...
... I still believe that I may have added some value, so I'll leave it.]
That's okay. All of us are, or have been, honorary employees of the Department of Redundancy Department.
Sean
Posts: 101 Joined: 15 Feb 2021
Post
by Sean » Tue Oct 19, 2021 12:52 am
[oops, I didn't read Ed's reply before posting ...
... I still believe that I may have added some value, so I'll leave it.]
That's okay. All of us are, or have been, honorary employees of the Department of Redundancy Department.
They're responsible for ATM machines and hot water heaters, right?