whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
438 stars 57 forks source link

Typescript conversion of several files, including js/cpu6502 #38

Closed iflan closed 3 years ago

iflan commented 3 years ago

This change converts js/utils.js, js/base64.js, js/ram.js, and js/cpu6502.js to Typescript. It also adds tests for js/util.js. It does not attempt to convert js/ram.js into a proper class; that will be for a later refactoring.

The Typescript version of js/cpu6502 is about 25% faster that the JavaScript version. The performance tests used are in https://github.com/iflan/apple2js/tree/perftests.