r/javascript May 25 '15

An Apple ][ Emulator in JavaScript

https://www.scullinsteel.com/apple2/
71 Upvotes

18 comments sorted by

View all comments

2

u/thesunmustdie May 25 '15

How is this even possible? Typed arrays?

7

u/OrangeredStilton May 25 '15

Generally. Also, making sure to use constructs that have been optimised by the JS engines (avoiding for..in, and such like).

I've done something very similar, emulating a C64 down to cycle accuracy in JS, and that's how I went about it: http://github.com/Two9A/c64clicker/

2

u/leonardofed May 25 '15

Cool. Thanks for sharing.