【发布时间】:2009-02-04 22:59:17
【问题描述】:
我昨天写了一个答案: What's the coolest hack you've seen or done? 而且我非常努力地记住我的 6502 程序集,但我一生都无法记住如果小于...
: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
有人知道指令是什么吗? BNE 和 BEQ 相等,BCC 用于进位,CMP 基本上是 SBC,会影响进位,但我不确定它是否适用于这种情况。
【问题讨论】: