frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

More than you wanted to know about how Game Boy cartridges work

https://abc.decontextualize.com/more-than-you-wanted-to-know/
268•todsacerdoti•11h ago

Comments

CaliforniaKarl•10h ago
See also the Ultimate Game Boy Talk from 33c3: https://www.youtube.com/watch?v=HyzD8pNlpwI
exmadscientist•10h ago
> TI’s TXB0108 for this purpose as well, which has an automatic direction sensing feature that obviates the need for all of the direction logic that I mentioned above.

Yeah, don't use these guys. They have a tendency to swap translation direction in the presence of electrical noise, which means your input is now an output, cross-driving something. Sometimes everything survives just fine and switches back on the next edge. Sometimes the magic smoke comes out. And sometimes, if the stars align just wrong, you get an industrial accident.

This is one of those classes of parts that has hidden dangers and really should not be as prominently advertised as it is. They look simple, but they're for experts only. Don't use them unless you really know their failure modes and don't have another reasonable option.

bobmcnamara•2h ago
I've had them oscillate, though I don't remember the exact conditions, but they'd switch directions at very high speed, causing noise, causing them to oscillate.

Bunch of pulldown restrictions too, though if you pulled both ends the same way when not driven, that usually worked ok

exmadscientist•9h ago
Also (because I feel like it/am procrastinating on other stuff), some first-glance review on the design at https://git.sr.ht/~aparrish/abc-pcb/tree/main/docs/abc-pcb.p... :

- U6 and U8 need nearby decoupling. LVC logic has horrid power consumption during transitions, so best to feed it well if you expect any kind of transition rate out of these gates. It doesn't have to be explicitly dedicated to these parts but it needs to be physically close.

- That goes extra for the big fat WideBus 16-wide level translators. They have multiple power pins for a reason. They are vicious little devices. Decouple every last power input pin with its own individual capacitor.

- U6 outputs appear to have wrong bus directions? Probably not important (also maybe not a problem at all, I usually do Altium not KiCad)

- VBUS is not logic level, so you shouldn't use it as a logic signal if you want reliability (it will work... mostly... but also be weird sometimes), but you absolutely cannot drive multiple things with it and expect them to work (their input thresholds will be slightly different and you will be sad when they switch at slightly different times because it's moving slowly). Clean it up with a Schmitt trigger (1G17 etc).

- No ESD protection on the USB port. Do you want it to live? Try something like ECMF02-4CMX8, nice and simple to implement (mildly annoying to solder though).

- Whatever is going on with Q1 is poorly enough drawn that I can't understand it at a glance. Best to just draw these parts as two ordinary MOSFETS with A and B suffixes, then the circuits can be legible.

- On IC2 (why not U2?) lines 4, 5, 6, 7 are being cross-driven. Do not ground both sides, you will be sad. Ground the input sides and let the outputs be unconnected, because they're strongly driven by the chip. Or use resistors to pull things places if you must satisfy someone somewhere who loves that kind of stuff (medical! medical? medical.).

- U7 SENSE pin draws not-much current (~25nA) so no reason to burn power in that resistor divider

- Consider stuffing a big fat electrolytic or two down somewhere and making your PDN nicely damped.

HardwareLust•9h ago
I find this really fascinating, thanks for sharing!
CommenterPerson•8h ago
Congrats, Nice work!

.. Now go build and sell some nice IOT gadgets that do not track users, and become a millionaire. Like a simple water leak detector.

stavros•7h ago
There are already plenty of those, and they're super cheap too.
esseph•5h ago
Do you know of any fully open source matter/thread hardware?
rewing•4h ago
Doesn't Matter require proprietary certification?
esseph•4h ago
Certification, yes, but it's an open standard.

Edit: Oh, yuck.

"A software development kit (SDK) is provided royalty-free,[13][14] though the ability to commission a finished product into a Matter network in the field mandates certification and membership fees,[15][16] entailing both one-time, recurring, and per-product costs.[17] This is enforced using a public key infrastructure (PKI) and so-called device attestation certificates.[15]"

sigpwned•8h ago
False, this is exactly as much as I wanted to know about how Game Boy cartridges work. Thank you! :)
Andrex•8h ago
Stole my comment!
phendrenad2•8h ago
I was sad to see that one of my old favorite GB dev resources is gone: https://web.archive.org/web/20150410063839/http://www.devrs....

Most of the links were already long-long-dead, but there were some cool inspirational projects on there.

asdff•8h ago
My Pokemon blue version went through the washer and dryer probably 20 years ago and it still works to this day. Talk about some hardware. I wonder if an SD card would take that sort of abuse.
mister_mort•6h ago
I suspect the heat of the dryer would be more of a problem than the water.
hypercube33•6h ago
I've washed SD cards, cf cards and memory sticks and they all still work.

Keyboards can also survive dishwashing with gentle soap. So can motherboards

Pyrodogg•55m ago
I have a working(!) motherboard that survived an international flight in checked luggage, wrapped in nothing more than cotton t-shirts.

I don't advise it, but tech can take quite some abuse.

4gotunameagain•17m ago
That's nothing. I've shipped electronics to space, to fly through the Van Allen belts to be showered by protons and electrons ;)
toast0•7h ago
> You don’t need to circumvent copy protection or region lockout hardware to write custom software for the Game Boy, since the Game Boy has none.

While there's no region lockout, don't you need to pass the logo check?

favorited•5h ago
I assume they mean you don't need to modify the device's hardware or hack any software – you just need to include a blob in your ROM's header (which RGBFIX will automatically insert for you, if you're using the RGBDS toolchain).

Plus, Sega v. Accolade killed that practice. I don't think anyone has tried to enforce it since.

LarsDu88•6h ago
I just started learning KiCad and PCB design this month as a larf, and I was wondering if anyone has tried making a full original Gameboy PCB and open sourcing it?
snickerdoodle12•6h ago
any good resources for PCB design?
LarsDu88•1h ago
Youtube videos, lol. Almost finished with my first PCB... Won't know if I learned anything until I get it flashed then running off battery power
opan•1h ago
FunnyPlaying has done their own version of the GBC and GBA PCBs you can buy. I don't know of any open source versions.

I found something on nataliethenerd's GitHub, but the license is non-commercial.

https://github.com/nataliethenerd/CGB_ReverseEngineer

>I scanned, sanded and redrew the CGB schematics using a CGB-CPU-04 board. The original schematic was used as a refrence for values.

flkenosad•3h ago
Pretty cool idea to ship ram and disk space with the application. It makes a lot of sense when you think about it. Imagine if phones worked like that and you could buy a new cartridge every couple years when chip technology improves or if you want to run some hard-core application. Or if you want to attach a new type antenna. My mind is wandering now.
bobmcnamara•3h ago
Or even a camera
NoPicklez•2h ago
I think its a good idea too, however does there come a point there you're also limited by the hardware it is plugging into? You might be able to include faster RAM in the cartridge, but will it work as intended with the original board its being plugged into.

Could you attach faster storage if the underlying hardware its plugged into isn't changing. I guess you could but I don't have a lot of experience in that area.

SchemaLoad•1h ago
Modular phones have been proposed for ages now but seem not viable or useful. Having everything on sockets increases latency between chips and decreases reliability. Especially something that's getting banged around in your pocket all day.

And there isn't really just one thing that gets outdated on phones. You usually want a better screen, better camera, better CPU, more ram, new battery. And at that point why swap each one individually vs just buying a new phone. I guess you save on the metal case?

The benefits of trunk-based development

https://thinkinglabs.io/articles/2025/07/21/on-the-benefits-of-trunk-based-development.html
29•gpi•1h ago•31 comments

Qwen3-Coder: Agentic coding in the world

https://qwenlm.github.io/blog/qwen3-coder/
475•danielhanchen•9h ago•162 comments

Show HN: WTFfmpeg – Natural Language to FFmpeg Translator

https://github.com/scottvr/wtffmpeg
34•ycombiredd•2h ago•16 comments

Mathematics for Computer Science (2024)

https://ocw.mit.edu/courses/6-1200j-mathematics-for-computer-science-spring-2024/
53•vismit2000•2h ago•3 comments

AI coding agents are removing programming language barriers

https://railsatscale.com/2025-07-19-ai-coding-agents-are-removing-programming-language-barriers/
33•Bogdanp•2h ago•22 comments

Org tutorials

https://orgmode.org/worg/org-tutorials/index.html
29•dargscisyhp•3h ago•0 comments

More than you wanted to know about how Game Boy cartridges work

https://abc.decontextualize.com/more-than-you-wanted-to-know/
269•todsacerdoti•11h ago•28 comments

Java is still worth learning

https://empatheticdeveloper.wordpress.com/2025/07/20/why-java-is-still-worth-learning-in-2025-a-developers-25-year-journey/
16•ivanche•1d ago•5 comments

Algorithms for Modern Processor Architectures

https://lemire.github.io/talks/2025/sea/sea2025.html
143•matt_d•7h ago•14 comments

Android Earthquake Alerts: A global system for early warning

https://research.google/blog/android-earthquake-alerts-a-global-system-for-early-warning/
244•michaefe•12h ago•69 comments

Why you can't color calibrate deep space photos

https://maurycyz.com/misc/cc/
101•LorenDB•6h ago•48 comments

Rescuing two PDP-11s in UK from a former BT underground shelter, central London

https://forum.vcfed.org/index.php?threads/rescuing-two-pdp-11-systems-in-uk-from-a-former-big-british-telecom-underground-shelter-in-central-london.1244723/page-2
3•mhh__•29m ago•0 comments

Swift-erlang-actor-system

https://forums.swift.org/t/introducing-swift-erlang-actor-system/81248
263•todsacerdoti•11h ago•54 comments

Countries across the world see food price shocks from climate extremes

https://www.bsc.es/news/bsc-news/countries-across-the-world-see-food-price-shocks-climate-extremes-research-involving-bsc-shows
36•littlexsparkee•2h ago•17 comments

Extending Emacs with Fennel

https://andreyor.st/posts/2024-12-20-extending-emacs-with-fennel/
3•Bogdanp•38m ago•0 comments

When Is WebAssembly Going to Get DOM Support?

https://queue.acm.org/detail.cfm?id=3746174
4•jazzypants•1h ago•0 comments

We built an air-gapped Jira alternative for regulated industries

https://plane.so/blog/everything-you-need-to-know-about-plane-air-gapped
198•viharkurama•11h ago•119 comments

Managing EFI boot loaders for Linux: Controlling secure boot (2015)

https://www.rodsbooks.com/efi-bootloaders/controlling-sb.html
16•CaliforniaKarl•3d ago•0 comments

I watched Gemini CLI hallucinate and delete my files

https://anuraag2601.github.io/gemini_cli_disaster.html
159•anuraag2601•11h ago•164 comments

Don't animate height

https://www.granola.ai/blog/dont-animate-height
349•birdculture•3d ago•206 comments

Subliminal learning: Models transmit behaviors via hidden signals in data

https://alignment.anthropic.com/2025/subliminal-learning/
150•treebrained•12h ago•33 comments

TODOs aren't for doing

https://sophiebits.com/2025/07/21/todos-arent-for-doing
322•todsacerdoti•16h ago•188 comments

TapTrap: Animation‑Driven Tapjacking on Android

https://taptrap.click/
49•Bogdanp•6h ago•5 comments

Ask HN: What software subscriptions are worth paying for?

26•helloworlddd•1h ago•32 comments

Firebender (YC W24) Is Hiring

https://www.ycombinator.com/companies/firebender/jobs/yisDXr5-founding-engineer-generalist
1•kevo1ution•9h ago

Show HN: A word of the day that doesn't suck

40•jsomers•19h ago•18 comments

Gemini North telescope discovers long-predicted stellar companion of Betelgeuse

https://www.science.org/content/article/betelgeuse-s-long-predicted-stellar-companion-may-have-been-found-last
123•layer8•13h ago•30 comments

Show HN: Phind.design – Image editor & design tool powered by 4o / custom models

https://phind.design
51•rushingcreek•12h ago•16 comments

Font Comparison: Atkinson Hyperlegible Mono vs. JetBrains Mono and Fira Code

https://www.anthes.is/font-comparison-review-atkinson-hyperlegible-mono.html
196•maybebyte•16h ago•128 comments

Many lung cancers are now in nonsmokers

https://www.nytimes.com/2025/07/22/well/lung-cancer-nonsmokers.html
142•alexcos•15h ago•175 comments