Question on conditional branch

Programming the 6502 microprocessor and its relatives in assembly and other languages.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Question on conditional branch

Post by BigEd »

Well that's awkward - if the tutorial is wrong then we need to fix it. I now see Bruce's document here says
Quote:
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...
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: Question on conditional branch

Post by barrym95838 »

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 ... :roll: ... I still believe that I may have added some value, so I'll leave it.]
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)
User avatar
BigDumbDinosaur
Posts: 9426
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Question on conditional branch

Post by BigDumbDinosaur »

barrym95838 wrote:
[oops, I didn't read Ed's reply before posting ... :roll: ... 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. :D
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Sean
Posts: 101
Joined: 15 Feb 2021

Re: Question on conditional branch

Post by Sean »

BigDumbDinosaur wrote:
barrym95838 wrote:
[oops, I didn't read Ed's reply before posting ... :roll: ... 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. :D

They're responsible for ATM machines and hot water heaters, right?
Post Reply