TEGA: Typescript Embedded Game Boy (Macro) Assembler

[Francis Stokes] has a real love for the original Game Boy, suggesting that owning this machine pushed him along a certain path that many of us would recognize. Developing Game Boy games isn’t particularly difficult from a hardware point of view, as you can easily buy special cartridges that have an SD card slot, allowing custom code. [Francis] had the idea of easy software development by producing a typescript hardware abstraction library, TEGA (or TypeScript Embedded Game Boy Macro Assembler). This provides a safe environment in which to play with the code, which can then be run inside an emulator such as BGB, before being deployed onto actual hardware.

The video embedded below — which we warn you now is a long one — goes into extensive justification and technical explanation of how [Francis] leverages typescript to create lots of nice features to produce safe code, whilst handling many of the Game Boy’s architectural restrictions, as well as the weirdness of the Sharp SM83 processor that powers it. We particularly liked the built-in support for on-the-fly asset compression, since every byte matters in the meager 32 Kb system, it’s nice not to have to think about it all the time! After discussing TEGA, the Game Boy hardware, the ins and outs of a demo game Block Jump, and then how to debug with BGB, we’re pretty confident many of you will be in a strong position to bust out a Game Boy application in the future!

As an aside, we did also stumble upon a new hardware guide provided by Finnish programmer and Game Boy superfan [Joonas Javanainen] which will help frame some of the topics [Francis] was talking about.

You may recall a little while back, the same author targeted the RISC-V using code written in typescript. After all, when you’re comfortable with a tool, you can shape it to do practically anything.

Continue reading “TEGA: Typescript Embedded Game Boy (Macro) Assembler”

The Game Boy Color Accessory You’ve Been Waiting For

Sometimes silly projects catch our eye, and we just can’t resist covering them. Over on Hackaday.io, [solderking] realized that there was a glaring omission in the multi-game management hardware for the Game Boy Color. Obviously, it’s too mundane to carry the handheld around with a bunch of games in one’s pocket, and a hardware multi-changer would definitely improve the usability. This convenient, pocket-friendly solution allows you to dock up four cartridges at a time, and with only a little mild inconvenience, spin the whole assembly, lock in a game and load it up. What could be easier?

Constructed from a ridiculous three-tier PCB stack, with a rotating center joint, the assembly is completely passive, with the connections from the selected game cartridge passed down a series of connectors before finally entering the Game Boy via the usual edge connector. The mere fact that this works at all just shows how tolerant (and we guess, slow) older gaming platforms used to be, and just what you can get away with! Still, it’s a fun build, and it does work, which just goes to show that just because you can, then you should.

We’re no strangers to Game Boy hacks. Here’s a useful cartridge to help with developing your first program. If the old platform is just a bit too limited for you, then we’ve got you covered with a hack that wedges an iCE40 FPGA and a Pi Zero inside the case, to give a bit more oomph.

Continue reading “The Game Boy Color Accessory You’ve Been Waiting For”

A Game Boy Advance – Downgraded!

We feature a large number of game console mods here, because enhancing the experience of using a classic machine often involves some really clever work. But here’s one that’s a bit different, instead of upgrading his Game Boy Advance, [Wenting Zhang] has downgraded it from a colour screen to a monochrome LCD. Take a look at the video below the break.

One might ask why this would be necessary, given that there are plenty of backlit colour LCD upgrades already for the GBA, but perhaps people who played the original might understand that it’s about improving the viewability over the rather poor-quality colour LCD original.

Interesting too is the choice of display controller. Where it might be expected to find an FPGA, instead there’s an PR2040. He goes into detail about its programming, and we hope it might inspire any others looking at screen transplants. Meanwhile if the name [Wenting Zhang] means anything to you, it should be for his other work with mono LCDs.

Continue reading “A Game Boy Advance – Downgraded!”

Bringing The Hinge To A 1990s Game Boy

The new hotness in mobile phones is it seems a hinge, and an ever-so-fragile flexible LCD display. There’s nothing new in a hinge of course, a couple of decades ago they were all the rage in feature phones, and of course Nintendo got in on the act with the ever-so-cute Game Boy Advance SP. This hinged design caught the attention of [Allison Parrish], who has brought it to an earlier generation of Game Boy with the Game Boy Pocket SP. It’s a late-1990s Game Boy Pocket whose PCB has been carefully cut in half, in a custom case that looks for all the world like the hinged case of the Advance SP.

The case is a neat bit of CAD work very nicely 3D printed and fitted with a set of Advance SP hinges, but perhaps the neatest part of this build is the se of a set of flexible PCBs to connect the two halves of the unit together. This looks for all the world as though it came this way from the factory, which is an achievement above many console mods.

The whole thing is a little lumpy compared to the SP to make space for the Pocket’s full-size cartridge, but not so much as to make it ugly. Any 1990s kid with one of these would have been the envy of all their classmates!

You may not be surprised to know that this isn’t the first respin of a Nintendo console into an SP-style case.

A Pokemon Silver Cartridge Made Of Pure Silver

The big problem with Pokemon Silver is that it came in a cartridge made of only-slightly-sparkly grey plastic. [Modified] decided to fix all that, making an all-silver cartridge instead.

The cartridge was first modeled to match the original as closely as possible, and 3D printed for a fit check. From there, a test cartridge was machined out of a block of aluminium to verify everything was correct. It’s a wise step, given the build relies on a 1-kilogram bar of silver worth roughly $750.

With everything checked and double-checked, machining the silver could go ahead. Every scrap of silver that could be saved from the CNC machining was captured in a box so that it could be recycled. Approximately 28 grams of silver was lost during the process. WD40 was used as a coolant during the machining process, as without it, the silver didn’t machine cleanly. The final cart weighed 164 grams.

It’s not a particularly hard project for an experienced CNC operator, but it is an expensive one. Primary expenses are the cost of the silver bar and the Pokemon cart itself, which can be had for around $50 on the usual auction sites.

However, the “heft and shine” of the finished product is unarguably glorious. Imagine handing that over to a friend to plug into their Game Boy! Just don’t forget to ask for it back. If you’re rich enough to do the same thing with Pokemon Gold or Platinum, don’t hesitate to drop us a line. 

We love a good casemod, and this one reminds us of a brilliant crystal PlayStation 2 from years past.

Continue reading “A Pokemon Silver Cartridge Made Of Pure Silver”

SquareBoi Is The DIY Game Boy Cart You’ve Always Wanted

Running unofficial code on a Nintendo Game Boy has long been a solved problem. However, you still need a way to get that code onto the handheld console. The Squareboi cartridge promises to do just that, as created by [ALXCO-Hardware].

It’s a well-featured cartridge, with up to 4 MB of ROM storage onboard. It also features a ferromagnetic RAM part for savegame storage, which doesn’t need a battery to hang on to your precious data. It’s designed to be compatible with the vast majority of Game Boy and Game Boy Color games, with efforts made to support the most common mapping schemes. It can be built using entirely through-hole components, and is readily programmable via an Arduino.

For those eager to tinker with code on the Game Boy, diving into the Squareboi is a great way to get closer to the bare metal and understand what’s really going on at the low level. Those interested in building their own can get all the relevant details over on Github.

We’ve seen similar hacks before, too, like the cartridge that brought Wikipedia to the humble Nintendo handheld. If you’ve been whipping up your own Nintendo hacks, be sure to drop us a line!

Game Boy Repurposed Solely As A Camera

As much as we all love the Game Boy Camera, it’s really just an add-on to the popular handheld console. Twitter user [@thegameboycam] decided to build a dedicated camera platform using the hardware, and the result was the Game Boy DSLR.

Camera pedants will note that it’s not really a DSLR, but that’s not really the point. It’s a Game Boy with the camera accessory built into a proper camera-like housing. There’s a CS/C mount for the lens, and it’s got a custom shell with leatherette, just like the cameras of last century. It’s also got a cold shoe, and a 1/4″ screw thread for tripod mounting. Oh, and strap lugs! So you can really rock that old-school aesthetic with your tweed suit on.

More practical modern features include a 1800 mAh battery that charges over USB Type C and a backlit IPS display. The screen has been turned through 90 degrees, and the cartridge port and buttons are relocated to create a more traditional camera-like form factor. If you really want, though, you can still play it like a regular Game Boy. Just swap out the modified camera cart with the lens mount for a regular Game Boy Camera or another game cartridge.

It’s a fun hack that scores big on style points. No longer can you be the cool kid just by rocking a Game Boy with a big ol’ lens hanging off the back. Now you gotta compete with this!

Our tipsline is waiting for when you’ve got the next big thing in Game Boy Camera hacks. Video after the break.

Continue reading “Game Boy Repurposed Solely As A Camera”