2 ms·
Shameless plug for my 6502 JS emulator / assembler in an Observable notebook, which takes the opcode, converts into pseudo assembly and then uses a switch state
by klelatti 4y ago
Shameless plug for my 6502 JS emulator / assembler in an Observable notebook, which takes the opcode, converts into pseudo assembly and then uses a switch statement on the mnemonic. I expected it would be horribly slow but maybe this switch on the (50 something instructions) is OK?
https://observablehq.com/@tech30k/6502 https://observablehq.com/@tech30k/6502
Written as a convenient way to try to explore the ISA and hoping to try the same approach with other early ISAs soon (6800 in progress).
(Please be kind with the code. I'm not a JS programmer - its my first JS beyond a handful of lines - and there are lots of issues!)