Emulating a CPU in C++ #13 (6502) - BIT Instruction

  Рет қаралды 4,894

Dave Poo

Dave Poo

Күн бұрын

In this episode I test and implement the 6502 instruction BIT, which can test specific bits of a value in memory.
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 Recap
0:20 BIT Description
0:50 BIT Unit tests
9:20 BIT Zero Page Implementation
17:30 BIT Absolute Implementation
18:56 Tidy up
21:06 Closing comments

Пікірлер: 11
@m1geo
@m1geo 8 ай бұрын
In theory, theory and practice are idential. In practice, they are not.
@twobob
@twobob 3 жыл бұрын
Pulling my hair out shouting at the screen "THE CYCLE TESTS ARE WRONG" hhahaha
@DavePoo
@DavePoo 3 жыл бұрын
As i said in the video "oops"
@twobob
@twobob 3 жыл бұрын
@@DavePoo Made me LOL, to be fair we all stand way too close to our own work as we write it - it's easy to judge, which is why we pair program in the first place ;) enjoying the series.
@twobob
@twobob 3 жыл бұрын
@@DavePoo oh Dave, I see you don't have any community content. as a fellow programmer you may find this observation interesting. kzbin.info/www/bejne/e5uTfJygmZmSarM be well.
@mynarco_yoyo
@mynarco_yoyo 3 жыл бұрын
Nice!
@arkanjo7509
@arkanjo7509 2 жыл бұрын
thanks
@M4RC90
@M4RC90 3 жыл бұрын
I was wondering how a simple AND operation could cause an overflow, but the overflow bit is just defined to be bit 6 of the value from memory. It's not really an overflow in that case.
@DavePoo
@DavePoo 3 жыл бұрын
Yeah, not sure why that it is, but it is.
@Gergus
@Gergus 3 жыл бұрын
You sound a bit like Jon Richardson
@DavePoo
@DavePoo 3 жыл бұрын
I had to Google who that was
Emulating a CPU in C++ #14 (6502) - First Ever Program
37:51
27c3: Reverse Engineering the MOS 6502 CPU (en)
51:57
Christiaan008
Рет қаралды 428 М.
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 5 МЛН
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 863 М.
Collections Just Changed in C# 12 and That’s Good
8:01
Nick Chapsas
Рет қаралды 103 М.
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
Lex Fridman
Рет қаралды 1 МЛН
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Рет қаралды 4,6 МЛН
My OrangeStorm Giga is Dead
13:59
3D Printing Nerd
Рет қаралды 50 М.
Learn JavaScript With This ONE Project!
1:10:26
Tech With Tim
Рет қаралды 615 М.
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 5 МЛН