Рет қаралды 4,272
In this video i just explain how i think ADC (Add with Carry) works in the 6502 and what is going to be required to set the correct processor state after an ADC instruction.
Also, i'm not dealing with decimal mode here, just binary addition.
Links:
Source for this project: github.com/davepoo/6502Emulator
Google Test: github.com/google/googletest
6502 Information: www.obelisk.me.uk/6502/
Timestamps:
0:00 What is ADC
2:28 Binary 1 + 1
4:57 Large binary addition
7:54 Binary add with carry
10:12 Signed numbers
12:05 Adding signed number
13:45 Signed overflow
21:49 Another signed overflow example
25:30 Closing comments