Skip to content

eatonphil/x86e

Repository files navigation

x86e

A simple x86 emulator, debugger, and editor in JavaScript.

Alt text

Example using the browser

$ yarn
$ yarn build &
$ open localhost:1234

Example using Node.js

$ yarn
$ yarn build-cli
$ cat examples/plus.c
int plus(int a, int b) { return a + b; }

int main() { return plus(1, plus(2, 3)); }
$ gcc -S -masm=intel -o examples/plus.s examples/plus.c
$ node dist examples/plus.s
$ echo $?
6