Giter Club home page Giter Club logo

retro.net's Introduction

Build Status

Retro.Net

Retro hardware libraries in .NET core.

Running

To run a GameBoy on ASP.NET Core in a docker container:

docker container run -p 2500:2500 alexhaslehurst/server-side-gameboy

Then browse to localhost:2500.

See the included docker-compose file for running this behind a secure reverse proxy.

Example

See it running on Azure.

I'm using my MSDN license to run it in Azure on a Basic A1 instance (1 Core, 1.75 GB memory) so the performance isn't great and this isn't even guaranteed to be up 24/7 according to M$.

Documentation

I have written a few blog posts about this project, please take a read:

  1. Emulation on .NET
  2. Emulating the GameBoy CPU on .NET

Scott Hanselman has also blogged about it.

Features

  • Z80 based CPU and MMU configurable for 8080, Z80 and GameBoy.
    • Simple interpreted core.
    • "Dynamically Re-compiling" core. Instead of executing each block of Z80 operations immediately, it builds an expression tree representing the block, which can be cached for increased speed. It's about 2.5x faster than the simple interpreted core. And far cooler.
  • Complete Z80 instruction set decode tests.
  • Complete Z80 execution tests.
  • Integration tests for the GameBoy Blargg test roms.
  • WIP GameBoy hardware. Just enough to play Tetris at full speed!
  • An Angular user interface using websockets. See gameboy-client.

Known issues

  • Timing is completely broken on desktop Hyper-V (Windows 10) resulting in the emulation running way too fast. Docker for Windows runs on Hyper-V so it is also affected.

TODO

  • GameBoy sound.
  • Improved GPU rendering to support games other than Tetris. E.g. transparent sprites, 8x16 sprites.
  • Debugger.

retro.net's People

Contributors

axle-h avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.