6502 Javascript emulator.
33 | 34 |Not an interpreter, but a JIT compiler to Javascript (that in 35 | turn gets JIT compiled to native code in many browsers)
36 | 37 |Includes a 6502 disassembler and a small assembler.
38 | 39 |Now with partial support of self-modifying code.
40 | 41 |Memory can be modified in MANY ways (including PHA or JSR) and code 42 | can be anywhere (including in the stack!). Current implementation 43 | works only if the memory change is done using STA, STX, STY, INC or 44 | DEC.
45 | 46 |Another shortcut is that "special locations" used for I/O do work 47 | only if accessed using STA abs / LDA abs instructions (normally on 48 | hardware implementations any read/write triggers the special behavior).
49 |