Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

JavaScript PowerPC emulator

Name: Anonymous 2011-05-22 2:47

Remember Fabrice Bellard's jslinux 80486 emulator? Inspired by his idea, I'm trying to write a PowerPC emulator in JavaScript. The instruction set is a lot easier of course than the x86 variable-length CISC, which I barely understood but couldn't implement. I've so far implemented 39 operations, which covers most of the fixed-point storage-type functions. If anyone would like to take a look at it, or give me some advice to improve it, here it is: http://azabani.com/cgit.cgi/jsppc/tree/jsppc.js

Name: Anonymous 2011-05-22 3:48

>>11
>>12
I haven't had a good look at his emulator yet, even though I found the unminified one on GitHub. This is mostly because of all those one- or two-letter variable names that he obfuscated the code to (though he says that he will release it later).

What I was going to do initially was have a switch statement in jsppc.cpu::step, which then called the functions in jsppc.op, but if the performance penalty is going to be as bad as you claim (i.e., with all that stack mashing and no inlining) then I might just put it back into a pure switch statement.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List