Commit Graph

22 Commits

Author SHA1 Message Date
n loewen fa3ade15dd Remove blank line 2023-08-01 12:56:44 +01:00
n loewen 0834516c6b Tidy up debugging / print statements 2023-08-01 12:56:31 +01:00
n loewen b16f6927ee Fix bug where referencing a label re-sets the pointer to the label address 2023-08-01 12:02:27 +01:00
n loewen 34e86cd4f8 Move cycle limit to a constant 2023-08-01 12:01:50 +01:00
n loewen d0a6ca886b Pretty-print "Running at ..." header 2023-08-01 12:00:20 +01:00
n loewen 321d8d1264 Create utility script for pretty-printing memory 2023-08-01 11:39:10 +01:00
n loewen 36df142538 Create script for running assembler on its own 2023-08-01 11:38:45 +01:00
n loewen 828a9f5909 Add @label handling to assembler 2023-08-01 11:38:24 +01:00
n loewen afecab8ce3 Allow for blank lines and comment-only lines in assembly code 2023-07-31 15:21:01 +01:00
n loewen b90300a257 Add assemble-and-run script 2023-07-31 14:46:25 +01:00
n loewen 3dc521714f Update file names 2023-07-31 14:41:23 +01:00
n loewen 5717b93eda Create entry point for assembling and then running assembly code from a text file 2023-07-26 15:06:11 +01:00
n loewen d52ea2e467 Rename 2023-07-26 15:04:19 +01:00
n loewen 75b6916666 Create a version of the CPU as a JS module -- otherwise the same as the previous version 2023-07-26 15:03:23 +01:00
n loewen ba35470c3c Make assembler a javascript module, remove code for working over stdio 2023-07-26 15:02:21 +01:00
n loewen 9797b2e25f Rename menonic-to-machine-operation lookup table 2023-07-26 14:39:35 +01:00
n loewen 959697cd70 Tidy up whitespace 2023-07-26 14:38:29 +01:00
n loewen 74c7f3a657 Create a simple assembler 2023-07-26 14:38:02 +01:00
n loewen 62fd07fcaa Fix bug where hex2num and num2hex don't actually return anything 2023-07-26 13:52:46 +01:00
n loewen 10ada984e6 Implement and test remaining instructions 2023-07-26 12:09:11 +01:00
n loewen a17b7f4ba9 Start a new simulator sketch with a better architecture + using a Uint8Array for memory 2023-07-26 11:41:11 +01:00
n loewen 3eaced0e5d Move to "sketches" directory 2023-07-26 09:46:03 +01:00