Git Product home page Git Product logo

retrowin32's Introduction

retrowin32

A still-early Windows emulator for web (and non-Windows native platforms).

Take a win32 .exe file and run it in a web browser or a Mac.

Status

Doesn't really work for much yet, but I'm still tinkering!

  • 2023/10: preliminary support for using Unicorn (basically QEMU) for x86 emulation.
  • 2023/08: new blog post about new Rosetta-based emulation support. retrowin32 now can run on web, native with CPU emulation, or Rosetta x86-64. (Native x86-64 ought to be relatively easy to add too.)
  • 2023/05: new blog post.
  • 2023/04: "monolife" demo now can sorta render first scene.
  • 2023/02: can now run natively via SDL. See blog post.
  • 2022/10: released. Barely runs a few console programs and one DirectDraw program. See blog post.

See some demos.

The idea

Software today is written in a world where the platform continually changes -- code you release today may stop working next year as the APIs and deprecations churn. You know what doesn't change? Dead platforms. Old video games written for a NES will work forever because the NES won't ever change again.

win32, the Windows 32-bit API, is such a platform. "win32 is the stable Linux userland ABI" is the observation that it might actually make sense for video game developers aiming for Linux to target the Windows API (which doesn't change) and rely on some translation layer to manage the Linux part (which always changes).

Today there are all these old .exe files lying around that are increasingly hard to run. Even on Windows itself, there's a 32-bit Windows translation layer when running on now standard x86-64 hardware. On non-Windows the best tool is Wine, but it requires x86 hardware. On a recent non-x86 Mac their x86 emulator dropped 32-bit support, so even Wine isn't sufficient there.

So my idea is this: what if you treated a win32 executable in the same way you treat a NES ROM -- as machine code for a CPU you no longer have, expecting hardware and an OS that doesn't exist? retrowin32 is an emulator that interprets the x86 instructions and implements the Windows OS API such that a win32 executable can run directly, without the Windows OS or an x86 beneath it.

See a comparison against other Windows emulator approaches (WINE, qemu, v86) for how this is similar but different.

Running it

See HACKING.md to get started on the code.

retrowin32's People

Contributors

evmar avatar dependabot[bot] 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.