accumulator result

Get help here getting your replica 1 going

accumulator result

Postby WengWeng » Mar Mon 09, 2009 3:51 am

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
WengWeng
 
Posts: 2
Joined: Mar Mon 09, 2009 3:42 am

Postby WengWeng » Mar Mon 09, 2009 6:25 am

thanks for the hint! I simply forgot to clear the carry flag.. :oops:
WengWeng
 
Posts: 2
Joined: Mar Mon 09, 2009 3:42 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests

cron