Emulating a CPU in C++ #10 (6502) - Stack Operations

  Рет қаралды 6,995

Dave Poo

Dave Poo

Күн бұрын

In this episode I implement all the 6502 stack operations TSX, TXS, PHA, PLA & PLP
Links:
Source for this project: github.com/davepoo/6502Emulator
Google Test: github.com/google/googletest
6502 Information: www.obelisk.me.uk/6502/
Timstamps
0:00 Recap & todo
0:50 Creating stack operations test Cpp
1:11 TSX tests
7:11 TSX Implementation
9:01 TXS tests
11:03 TXS Implementation
11:29 PHA tests
13:28 PHA Implementation
19:09 PHP tests
20:40 PHP Implementation
21:00 PLA tests
23:00 PLA Implementation
26:30 More PLA tests
28:59 PLP tests
30:30 PLP Implementation
31:00 Adding a few more tests
32:55 Closing comments

Пікірлер: 7
@arkanjo7509
@arkanjo7509 2 жыл бұрын
thanks
@van3ll0pe
@van3ll0pe 11 ай бұрын
Nice project ! On other websites, I read that when the instruction BRK or PHP push the status register, the unused bit and the break flag is set to 1 on the stack. Who to believe ?
@unclerojelio6320
@unclerojelio6320 3 жыл бұрын
Just out of curiosity, why didn't you encapsulate the stack pointer and status byte into their own classes with their own get/set methods?
@DavePoo
@DavePoo 3 жыл бұрын
Why would I encapsulate something just to unencapsulate them with get & set? It's an anti pattern.
@Salsuero
@Salsuero 3 жыл бұрын
Why not create a defined variable that represents the bitset of a negative flag since you use it so often, that way it is obvious what it represents at a quick glance?
@DavePoo
@DavePoo 3 жыл бұрын
I think i do that at some point later
@M4RC90
@M4RC90 3 жыл бұрын
@@DavePoo Or just use cpu.Flag.N ?
Emulating a CPU in C++ #11 (6502) - AND EOR ORA unit tests
17:27
Optimising Code - Computerphile
19:43
Computerphile
Рет қаралды 136 М.
Não pode Comprar Tudo 5
00:29
DUDU e CAROL
Рет қаралды 82 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 159 МЛН
NES Emulator Part #2: The CPU (6502 Implementation)
1:07:12
javidx9
Рет қаралды 408 М.
Can you solve this Oxford admissions question?
8:18
MindYourDecisions
Рет қаралды 55 М.
10 ULTIMATE Python Tips 🔥
16:42
Tech With Tim
Рет қаралды 58 М.
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 863 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Stack vs Heap Memory - Simple Explanation
5:28
Alex Hyett
Рет қаралды 171 М.
Running a Buffer Overflow Attack - Computerphile
17:30
Computerphile
Рет қаралды 2 МЛН
#1 How to Build a Virtual Machine from Scratch
31:09
Philip Bohun
Рет қаралды 57 М.