Рет қаралды 3,536
In this video i get SBC "Subtract With Carry" instruction working in the 6502 emulator. A lot of the content here is based on having a working ADC "Add With Carry", so if you haven't seen the ADC videos or don't know how ADC works then you should watch that first.
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 SBC definition
2:00 Whiteboard theory
11:10 test 0 + 0 = 0
16:16 Implementing SBC Absolute
20:18 0 - 1= -1 test
24:36 0 - 1 - C = -2 test
27:47 -ve signed overflow test
29:52 +ve signed overflow test
32:50 0 - 0 - C = -1 test
34:20 Subtract 2 +ve numbers test
36:00 Tidy up and closing comments