apple2js/js
Ian Flanigan c4df78cf06
Typescript conversion of several files, including js/cpu6502 (#38)
* Convert `js/util.js` to Typescript and add tests

Besides converting `js/util.js` to Typescript, this change also adds
`js/types.ts` that defines common types used in apple2js. Some of
these types, like `byte` and `word` are for information only.

* Convert `js/base64.js` to Typescript

This also adds a new type, `memory`, that is either an array of
numbers, or a Uint8Array.

* Convert `js/ram.js` to Typescript

This change does not convert `RAM` to a class; it just introduces types.

* Basic typing of cpu6502

This is a really rough first pass. There are some problems that can't
be fixed until this is turned into a real class, but at least all of
the function arguments are now typed. This caught a few cases where
extra arguments were being passed in.

* Convert `js/cpu6502` to a class

In theory, idiomatic classes should be better than the previous
closure-based classes. However, this conversion shows that the
instruction table does not fit well with idiomatic classes as method
referenced in the table need to be called with the correct `this`
everywhere.

This should, at best, be considered a first attempt.
2020-11-01 08:43:48 -08:00
..
applesoft Fix acceleration, normalize heavily used signatures. (#18) 2019-12-29 19:13:59 -08:00
cards typo 2020-09-20 06:37:26 -07:00
formats Various fixes (#23) 2020-04-23 19:47:44 -07:00
intbasic Fix build, clean up lint comments. 2019-03-26 21:12:05 -07:00
roms Simple Smartport (#31) 2020-09-12 19:42:18 -07:00
ui Track raw parallel port output and allow it to be downloaded (#36) 2020-10-17 16:53:13 -07:00
apple2.js Fix a problem where sometimes the emulator would run too fast (#34) 2020-10-11 08:50:20 -07:00
apple2io.js Move //e specific out of apple2io.js (#28) 2020-08-06 06:31:27 -07:00
base64.ts Typescript conversion of several files, including js/cpu6502 (#38) 2020-11-01 08:43:48 -08:00
canvas.js Basic copy and paste. 2020-09-03 22:39:16 -07:00
cpu6502.ts Typescript conversion of several files, including js/cpu6502 (#38) 2020-11-01 08:43:48 -08:00
entry2.js Less ES6 2019-06-15 15:59:02 -07:00
entry2e.js Less ES6 2019-06-15 15:59:02 -07:00
main2.js Add a "Clear" button to clear the printer paper (#35) 2020-10-11 08:48:16 -07:00
main2e.js Add a "Clear" button to clear the printer paper (#35) 2020-10-11 08:48:16 -07:00
mmu.js Move //e specific out of apple2io.js (#28) 2020-08-06 06:31:27 -07:00
prefs.js Export instead of attach to window, and make webpack like it. 2019-03-31 20:52:45 -07:00
ram.ts Typescript conversion of several files, including js/cpu6502 (#38) 2020-11-01 08:43:48 -08:00
symbols.js Typescript conversion of several files, including js/cpu6502 (#38) 2020-11-01 08:43:48 -08:00
types.ts Typescript conversion of several files, including js/cpu6502 (#38) 2020-11-01 08:43:48 -08:00
util.ts Typescript conversion of several files, including js/cpu6502 (#38) 2020-11-01 08:43:48 -08:00