Google AdSense

Sunday, March 22, 2015

PyGirl, a Game Boy emulator written for the PyPy Toolchain

Descriptions

  • The emulator is not written by me.
  • Because the project misses descriptions, the only issue is asking the author to add README, i will make some note for setup and install.

YouTube

Downloads

Requirements

Resources

Comments

  • Create a directory named temp at position C:\ and put everything in it. There should be four directories in it.
    C:\temp\pypy-2.5.1-src
    C:\temp\pypy-lang-gameboy-410e34ee2cff
    C:\temp\rsdl-0.4.2
    C:\temp\SDL-1.2.15
  • Changes code in cartridge.py from
    from pypy.rlib.streamio import open_file_as_stream
    to
    from rpython.rlib.streamio import open_file_as_stream
  • Changes code in gameboy_implementation.py from
    from pypy.rpython.lltypesystem import lltype, rffi
    to
    from rpython.rtyper.lltypesystem import lltype, rffi
  • Changes code in gameboy_implementation.py from
    from pypy.rlib.objectmodel import specialize
    to
    from rpython.rlib.objectmodel import specialize
  • Executes four commands below in a cmd window.
    set PYTHONPATH=C:\temp\pypy-lang-gameboy-410e34ee2cff;C:\temp\pypy-2.5.1-src;C:\temp\rsdl-0.4.2
    set SDL_PREFIX=C:\temp\SDL-1.2.15
    cd C:\temp\pypy-lang-gameboy-410e34ee2cff\pygirl
    pypy targetgbimplementation.py
  • The emulator runs much more smooth than my Atari 2600 emulator, although there are still some places laggy.

Reviews

  • I made a big mistake. The commands above is just running on PyPy and that's why the speed is weird. The speed is totally fine if running by RPython. This means that my Atari 2600 emulator is just not that good.
  • If you are trying to run by RPython, please change the last command to the two commands below.
    pypy C:\temp\pypy-2.5.1-src\rpython\translator\goal\translate.py targetgbimplementation.py
    targetgbimplementation-c.exe