03-28-2014, 11:49 PM
Soywiz created an emulator on typescript
https://github.com/soywiz/jspspemu
https://github.com/soywiz/jspspemu
Quote:A PSP emulator made using javascript (actually typescript). It will work with any modern browser. Though the first version work only works with Chrome (desktop and android).
You can view the current version here: http://soywiz.github.io/jspspemu/2014-03.../ortho.elf
It uses promises, Audio API, Canvas, WebGL, FullScreen API, File API, Typed Arrays. It will use FileSystem API too.
At this point it can run some demos.
Typescript, and the integrated console and profiler from chrome allowed me to convert some of my cspspemu code pretty fast, in a crazy weekend for this first version. You can debug apps with the chrome console.
The project can be opened with Visual Studio Express but it should work with intelliJ too.
It can load at this point: ELF files, PBP files, ISO files and CSO files. Not support for DAX yet.
It JITs the cpu (though still slow because loops, function calls, and returns are not JITted yet). As with my other psp emulator cspspemu, it has a single instruction table that allows to create the cpu dynarec, assembler and disassembler. It JITs the instruction decoding nested switch. It JITs the vertex decoding.