Рет қаралды 1,106
We shall create a C++ 6502 CPU emulator from scratch.
I mean, really. From scratch.
We'll actually start with an empty editor window.
I'd like to thank my Patreon BBC Micro level supporter, Yehuda T. Deutsch.
You, too, can support my work on Patreon: / compusar
Discord server invite: / discord
Code written during the stream is available at github.com/CompuSAR/sar1541
visual6502 site: visual6502.org
WDC datasheet: www.westerndesigncenter.com/w...
Waiting to start - 00:00
Basic setup - 02:57
Empty editor screen - 03:39
Create a skeleton class - 04:38
Structure of emulator - 06:49
Defining a constructor - 08:02
Main loop - 09:52
Opcode decode strategies - 14:23
Checking an authoritative reference - 18:48
Program structure begins to form - 21:49
Implementing the second opcode - 26:04
Another quick opcode - 30:57
A read-modify-write command - 34:49
Updating the status register - 40:45
Implementing ROL - 46:57
Implementing absolute addressing - 50:03
We forgot to update the condition codes - 52:44
The power of combinations - 57:24
Stack operations: push A - 59:09
Pull A - 1:04:13
Closing thoughts - 1:08:47