FizzyChicken Posted December 7, 2019 Share Posted December 7, 2019 I'm writing my own 6502 emulator and was wondering which instructions are affected by Binary Coded Decimal. Is it just ADC & SBC, or do INC, INX, INY, DEC, DEX and DEY obey BCD rules when the flag is set ? Thanks. Quote Link to comment Share on other sites More sharing options...
+Karl G Posted December 8, 2019 Share Posted December 8, 2019 Only ADC and SBC are affected by the state of the decimal flag. 1 Quote Link to comment Share on other sites More sharing options...
FizzyChicken Posted December 8, 2019 Author Share Posted December 8, 2019 Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.