I wrote an answer yesterday to this: http://stackoverflow.com/questions/192479/whats-the-coolest-hack-youve-seen-or-done and I was trying really hard to remember my 6502 assembly, and I couldn't for the life of me remember how to branch if less than...
:1
lda $C010
cmp #$80
bcc :1 ; branch if less than? I forget how to do that.
lda $C000
jsr $FDF0 ;output the accumulator value to the screen
Anybody know what the instruction is? BNE and BEQ are equals, BCC was for carry, and a CMP is basically an SBC and that affects the carry, but I'm not sure if it works in that case.