Page 1 of 1

accumulator result

PostPosted: Mar Mon 09, 2009 3:51 am
by WengWeng
maybe a stupid question, but can anyone explain me, why the accumulator always add 1 more? if I assemble and execute the following code (in krusader) I became 9 in address 0000 in stead of 8...

000 LDA #$3
001 ADC #$5
002 STA $00
003 RTS

note: I have a replica TE

PostPosted: Mar Mon 09, 2009 6:25 am
by WengWeng
thanks for the hint! I simply forgot to clear the carry flag.. :oops: