Inside the Famicom | 03: The Memory Map

  Рет қаралды 3,283

What's Ken Making

What's Ken Making

Ай бұрын

Welcome to the third video in my multi-part series on the Famicom. In this video, we'll take continue our exploration of the CPU and mainboard by talking about how the Famicom and NES uses the memory map to communicate with other chips.
Links Referenced in this Video:
- NESdev Wiki CPU Memory Map - www.nesdev.org/wiki/CPU_memor...
- NESdev Wiki 2A03 Register Map - www.nesdev.org/wiki/2A03
Past Episodes:
- Episode 1: The Design of a Legend - • Inside the Famicom | 0...
- Episode 2: The 6502 CPU - • Inside the Famicom | 0...
Correction:
3:39 I was wrong here - it’s the width of the chip’s internal data bus that determines the chip’s “bitness”, not it’s data pins

Пікірлер: 23
@Mrshoujo
@Mrshoujo Ай бұрын
For an example of how a detailed Memory Map helps programmers, give Mapping The Atari a read. 😌
@whatskenmaking
@whatskenmaking Ай бұрын
I've flipped through it online, but will need to give it a more thorough read 👍
@drkamilz
@drkamilz Ай бұрын
External data bus doesn't determine the "bits" of the CPU. For example, 8088 has also an 8-bit external data bus. And an 80386SX has 16bit. It's the internal data bus width that determines the "bits."
@whatskenmaking
@whatskenmaking Ай бұрын
👍 Thanks, I’ve added a correction to that spot of the video
@LazyDevs
@LazyDevs Ай бұрын
You inspired me to get a lot of 6 old Famicoms from Japan and to refurbish them. Currently replacing the RF modules with custom PCBs to get composite video out. Can't wait for that PPU episode. I'm looking into RGB mods and all that PPU stuff is pretty WILD
@whatskenmaking
@whatskenmaking 29 күн бұрын
Nice! You can get decent composite video with just a transistor and a couple of resistors - that's how I modded the video in my first Famicom years ago. I have an Atari mod video that walks through the mechanics of how it works, but on a VCS instead of a Famicom. Btw, if you have any FCs that you deem unrepairable, set them aside... in the last episode of the series, I'll show you an alternative for what to do with them 😊
@LazyDevs
@LazyDevs 29 күн бұрын
@@whatskenmaking I saw that! I was considering doing a simpler mod but then decided to replace the entire RF module. Solves the issue of the weird polarity power supply as well. And it takes care of the old caps. And it ends up being a bit cleaner. I'm hoping none Famicoms are busted but also happy to hear there is a future for them even if they are!
@MrKrimstah
@MrKrimstah Ай бұрын
Subbed this is something I tried to learn on Nintendo ages nerdy nights write up 14 years ago , you have made it simple thanks
@jamesross3939
@jamesross3939 Ай бұрын
Great explanation!! Liked and Subscribed!
@williamsquires3070
@williamsquires3070 27 күн бұрын
(@3:03) To read the contents of $053F, you’d need an LDA $053F; STA $053F puts a byte into memory (specifically, from the Accumulator.)
@whatskenmaking
@whatskenmaking 27 күн бұрын
Ah, right - nice catch!
@SGE-xe4ux
@SGE-xe4ux Ай бұрын
Wonderful. :) Do something cool? Of course now I play NES, SNES... it's a lot more fun that the modern gaming industry can't offer me
@brettito
@brettito Ай бұрын
3:40 This isn't strictly true. Based on the parallel input it's true for the NES and this implementation of a chip. Maybe I can learn something here, but I thought that it was the register size or instruction size that made the architecture 8bit since you could ostensibly have Serial communication that would not be a phenotype of the chip itself.
@whatskenmaking
@whatskenmaking Ай бұрын
Someone else commented on that as well, and I believe that person was correct - it’s the internal data bus width that determines this (as opposed to the external data bus). The register size is sometimes reflective of that, but it’s not necessarily consistent. I appreciate the discussion, though - and I learned something as a result
@iwanttocomplain
@iwanttocomplain Ай бұрын
11:11 "that 3 bit address space being repeated 1024 times" can you describe the implication or result of this address space being "repeated". I'm not sure what you meant by that. Thanks.
@nikuw
@nikuw Ай бұрын
The 10 unconnected bits make 1024 (2^10) different address combinations, or in other words you can access those 8 bytes at 1024 different locations.
@whatskenmaking
@whatskenmaking Ай бұрын
The PPU uses 8 bytes of the address space for communication, since there's only 3 address lines connected - these are addresses $2000 - $2007. But since the chip select signal is activated with the 13th address bit, all addresses within that entire 8KB range ($2000 - $3FFF) address the PPU. The result is that those 8 bytes of addresses 'repeat' 1,024 times. In other words, if the CPU reads address $2003, it'll get the same result as reading address $200B, $2013, $201B, etc. all the way up to $3FFB. From the CPU's perspective, it would be requesting data on different addresses - but from the PPU's perspective, it all looks like the same address since it's only connected to the lower 3 bits of the address bus.
@matiasd.7755
@matiasd.7755 Ай бұрын
Writing a byte to the register mapped to memory location $2000 is the same as writing it to $2008... or location $2010, or $2018, or $2020... and so on... Then, the register mapped to memory location $2001 is also mapped at location $2009, $2011, $2019, $2021, and so on... Its kinda complicated, just easier to just use $2000 to $2007. Other way to describe it is understanding that PPU has 8 registers numbered 0 to 7, then you take the binary address in the range $2000 - $2FFFF and consider only and just only the lower 3 bits, so $2000, $2008, $2010, etc are all the same...
@iwanttocomplain
@iwanttocomplain Ай бұрын
@@whatskenmaking OK I think I understand, there a whole load of memory rendered useless because reasons involving pins. There is redundant memory is what I seeing here and the PPU does not have access to it either.
@whatskenmaking
@whatskenmaking Ай бұрын
That's what it essentially amounts to - the rest of that 8KB address space tends to just repeat the same target addresses so they're not usable for anything else. When I get to the episode on cartridges, we'll discuss how they work around the address space limitations with mapper chips.
@yuyongbin
@yuyongbin 12 күн бұрын
you must finish this series famicom materials!
@DingleBerry-jb4gj
@DingleBerry-jb4gj Ай бұрын
At 0:07 - 0:12 the symbol on the right chip looks like the Mitsubishi logo, is there any connection?
@whatskenmaking
@whatskenmaking Ай бұрын
Yep, Mitsubishi manufactured that particular character ROM chip. Nintendo used ROM chips from a few companies, including Toshiba, Sharp, and others.
Digging into the Analogue Pocket, a portable FPGA game system
29:43
What's Ken Making
Рет қаралды 81 М.
These Keys Shouldn't Exist | Nostalgia Nerd
19:32
Nostalgia Nerd
Рет қаралды 652 М.
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 21 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 34 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 34 МЛН
Software Emulators vs FPGAs
27:08
What's Ken Making
Рет қаралды 275 М.
Nintendo is erasing its history - The war against ROMS
14:21
Modern Vintage Gamer
Рет қаралды 827 М.
Foenix F256 meets its match  - the FNX6809 and a port of NitrOS-9 Level 2
21:04
This 6502 is as old as me and I test it
27:35
Adrian's Digital Basement
Рет қаралды 272 М.
Diving into the BlisSTer: Is this the ULTIMATE MiSTer Add On?
20:00
What's Ken Making
Рет қаралды 3,6 М.
Harder Drive: Hard drives we didn't want or need
36:47
suckerpinch
Рет қаралды 1,6 МЛН
The 6502 CPU Powered a Whole Generation!
25:17
The 8-Bit Guy
Рет қаралды 460 М.
How Old School Floppy Drives Worked
15:08
The 8-Bit Guy
Рет қаралды 2,8 МЛН
Inside FunnyPlaying's New FPGA Game Boy
13:21
What's Ken Making
Рет қаралды 16 М.
Rearchitecting the 6502
16:17
Some Assembly required
Рет қаралды 13 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 12 МЛН
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,1 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 6 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН