# UnrealGB - GameBoy Emulator to use in the UE

**URL:** <https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [March 27, 2017, 2:39pm UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629 "2017-03-27T14:39:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [March 27, 2017, 2:39pm UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/1 "2017-03-27T14:39:24Z")

</div>

Hello guys,  
no idea why i’m doing this, but anyway.  
Not much to show off at the moment because i’m writing the cpu instructions right now.  
Actually my plan was to write it in blueprint only, but i’ve ditched that plan when i realised there’s not even an exposed function to read binary files and no way to get the 16bit registers working without way too hacky solutions.

CPU:  
CPU steps / instruction handling / registers / tick management are working, have to write the cpu instructions. (~30 / 256 finished)  
MMU:  
Memory management is working, you can load up a rom, read / write memory. Memory banking for bigger roms (\>32k) is not working yet.

GPU:  
only dummy functions implemented, rendering is not working yet.

SPU:  
not implemented yet

Input:  
not implemented yet

Interrupts:  
not implemented yet

Will be open source on github as soon as the cpu runs with a dummy rom.

Cheers.

 ![Jd4JQ6b.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/d/1dfaf445a7101ee3cf4d28b1a026e9d5d5f95da4.png)

---

<div class="post-metadata">

**Author:** ![mercuriusfm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mercuriusfm](https://forums.unrealengine.com/u/mercuriusfm)\
**Post date:** [March 29, 2017, 2:07am UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/2 "2017-03-29T02:07:07Z")

</div>

A ridiculous project that would not even be usable in any commercial game, but still… awesome.

Good luck with it!

---

<div class="post-metadata">

**Author:** ![Mr\_SquarePeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr\_SquarePeg](https://forums.unrealengine.com/u/Mr_SquarePeg)\
**Post date:** [March 29, 2017, 2:13am UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/3 "2017-03-29T02:13:26Z")

</div>

This is amazing 😃

---

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [March 29, 2017, 5:25pm UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/4 "2017-03-29T17:25:23Z")

</div>

> [@mercuriusfm;687368](#):
>
> A ridiculous project that would not even be usable in any commercial game, but still… awesome.
> 
> Good luck with it!

Shouldn’t be a problem as long as you don’t include games. But i’m no lawyer, don’t count on my words.

> [@HeadClot;687372](#):
>
> This is amazing 😃

Thanks 😃  
CPU instructions are finished, going to write small debug functions, smash it together and see if it’s (hopefully) working.

---

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [March 30, 2017, 4:34pm UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/5 "2017-03-30T16:34:44Z")

</div>

Cheers. 🙂

 ![hF26bRt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/9/7950d09e0afc975b2db3d86e4b61eb7abe04aaf5.jpeg)

e/ Well, seems like i’m still missing something for tetris. But at least a debug rom is running fine.

![p27JuqE.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/3/13d819948f97837e728ad07d62712b9a8fbde792.jpeg)

---

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [April 1, 2017, 2:31am UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/6 "2017-04-01T02:31:10Z")

</div>

GPU test rendering (without sprites).  
Still pretty broken, crashing, slow and not working. But something’s atleast working.

 ![lmLljzh.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/3/e3dd7cdc3c9f6a465eeb3c203987acdeac1cf5c7.png)

---

<div class="post-metadata">

**Author:** ![KrautPotato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KrautPotato](https://forums.unrealengine.com/u/KrautPotato)\
**Post date:** [July 22, 2017, 11:43am UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/7 "2017-07-22T11:43:54Z")

</div>

You can find the code on my github now:

> **[GitHub - CarstenZarbock/UnrealGB: Gameboy Emulator for use in the Unreal...](https://github.com/CarstenZarbock/UnrealGB)**
>
> Gameboy Emulator for use in the Unreal Engine 4. Contribute to CarstenZarbock/UnrealGB development by creating an account on GitHub.

Needs some cleanup / changes and it still needs alot of work. But if someone’s interested.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ba41eb7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ba41eb7d](https://forums.unrealengine.com/u/anonymous_user_ba41eb7d)\
**Post date:** [October 25, 2021, 3:51am UTC](https://forums.unrealengine.com/t/unrealgb-gameboy-emulator-to-use-in-the-ue/88629/8 "2021-10-25T03:51:40Z")

</div>

is it possible to download and use this type of [GameBoy Emulator](https://www.romspedia.com/emulators/gameboy) on Windows PC because when I click it on Github I can’t download it may be the link is broken or the file? Any suggestions or the creator if it’s still active on this forum to share the link of his work to try it.
