Emulating a CPU in C++ #25 (6502) - Compare X & Compare Y

  Рет қаралды 2,977

Dave Poo

Dave Poo

Күн бұрын

In this video i implement the the Compare X & Y instructions CPX & CPY, i also write a little machine code equivalent of a "for loop" as there are now enough instructions working in the emulator to do this.
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 CPX & CPY Intro
0:45 Immediate
9:30 Immediate implemented
13:30 Some refactoring
14:40 Zero Page
15:48 Zero Page implemented
16:34 Absolute
17:52 Absolute implemented
19:47 Writing a 6502 loop
21:49 Running the 6502 loop
25:40 Closing comments

Пікірлер: 2
@piwex69
@piwex69 3 жыл бұрын
Brilliant series! I immediately recalled my long evenings in 1984, spent as a kind on writing first programs in 6502 assembler on Atarii 800XL. I did it on paper, in pencil!
@twobob
@twobob 3 жыл бұрын
13:00 when refactoring messes with your comments. So annoying :) Reminds me a bit of Ben Eater
Emulating a CPU in C++ #26 (6502) -  Subtract With Carry
39:19
Dave Poo
Рет қаралды 3,5 М.
#1 How to Build a Virtual Machine from Scratch
31:09
Philip Bohun
Рет қаралды 57 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 25 МЛН
Can you solve this Oxford admissions question?
8:18
MindYourDecisions
Рет қаралды 55 М.
A Introduction to Handles (in C++)
42:23
Dave Poo
Рет қаралды 10 М.
You don't need libraries to write a game engine in C++ | OpenGL | Devlog
2:50
Emulating a CPU in C++ #32 (6502) -  Test Program Debugging
52:25
RRE 3: Re-Learning C/C++ for Malware Development
17:42
Mitch Edwards (@valhalla_dev)
Рет қаралды 8 М.
Emulating a CPU in C++ #23 (6502) - CMP Immediate
22:10
Dave Poo
Рет қаралды 3,1 М.
AWS’s Future is…Q?
16:15
Theo - t3․gg
Рет қаралды 34 М.
Virtual Circuit Board - 8 bit twin 7-seg counter
0:37
98.8% Chimp
Рет қаралды 7 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН