1964 σε javascript (πολυ πρωιμο σταδιο)

Συζήτηση για Console Emulators.

Συντονιστές: Nemo, Maddog, Whacker, Scatman

Απάντηση
Άβαταρ μέλους
Nemo
Moderator
Moderator
Δημοσιεύσεις: 4798
Εγγραφή: 15 Απρ 2004 22:55
Τοποθεσία: Θεσσαλονίκη

1964 σε javascript (πολυ πρωιμο σταδιο)

Δημοσίευση από Nemo »

Εικόνα
This is the first N64 emulator written in JavaScript. It is loosely a port of our N64 emulator for Windows called 1964. 1964 was written in C and C++.

1964js began as an experiment. The initial goal was to see how well Google Chrome's V8 performs compiling JavaScript. The results so far are looking very good.

This project is a bit over a month old, and it's still in the early stages. With today's HTML5 technologies, it seems feasible for this to evolve into a full N64 emulator with the compatibility (and possibly speed) of 1964 for Windows.

The trick with this project is that instead of building a traditional dynarec (JIT compiler) as we did for 1964 for Windows which translated MIPS directly to x86, 1964js dynamically writes JavaScript to the web page by reversing MIPS code to JavaScript. This JavaScript represents blocks of rom code. Then, if using Chrome, Google's V8 compiler compiles the JavaScript to native code for us automatically. So, JavaScript has become the intermediate language. In spite of some of the shortcomings of JS (it's single-threaded..webworkers have limited use), it seems that this approach to building VMs in general is proving to be a good one. So, hopefully the open-source community can benefit from this project, which is mainly why I'm sharing it now.. but also, because I think it's cool!



For a speed comparision, try it in Firefox too.

I've been trying to work on this in my free time. There is support for basic controls and audio. It needs some more fpu&cpu opcodes, and tlb. For 3D, 1964js already gets to the first display list for some demos, so someone with WebGL and N64 emu experience might have fun helping me with this.

-schibo

:arrow: http://1964emu.emulation64.com/

καντε κλικ στα στα λινκ στο πανω μερος προτιμοτερα στα without overlay
if" Imitation is the sincerest flattery",
imagine emulating ....
Απάντηση