6502.org
http://forum.6502.org/

[28] 6502 Instruction
http://forum.6502.org/viewtopic.php?f=7&t=286
Page 1 of 1

Author:  Neison1 [ Mon Feb 28, 2000 4:10 am ]
Post subject:  [28.1] 6502 Instruction

Dear All:

I met a problem with the operation mode of WDC65C02.

In the ALU: if I add 1 and 2, the Acc will be 3. if I sub 1 and 2, the Acc will be 0xFF. But what would I get if sub 1 and 2 at the time I set the flag D (in BCD mode)?

Author:  WizWom [ Sun Mar 05, 2000 5:28 pm ]
Post subject:  [28.2] 6502 Instruction

That should give you 0x99.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/