有人可以解释每条指令 LDA、ROL、STA 给出的结果到底是什么吗?
C=1 (carry flag is 1)
LDA A #$08 0008 | 01
ROL A 0009 | 02
STA A $10 000A | 03 // A result is $11
000B | 04
000C | 05
我想到了这个:
LDA A #$08 0008 - Store 0000 into memory
ROL A 0009 - Get a data 0x08 from accumulator 0000 0100 add carry +1 = 0000 1011
STA A $10 000A - get a result 0000 1011 = $11
是否正确,解释?