Commit Graph

  • e4cf2bb221 Apparently you're not supposed to give groupEnd() an argument... n loewen 2023-08-03 16:26:45 +0100
  • 4f82cd9c9e Turn on Jsdoc-based type checking n loewen 2023-08-03 16:24:51 +0100
  • ea26f5d77b Update `logMemory` to add an option to log just a specific range n loewen 2023-08-03 16:24:18 +0100
  • 5fa20c3963 Assembler: always add an END at the end of the output n loewen 2023-08-03 15:53:59 +0100
  • d3134aa9e6 Add constants to assembler n loewen 2023-08-03 15:50:37 +0100
  • 297daafc89 Remove debugging print n loewen 2023-08-03 15:08:32 +0100
  • a0892109a6 Implement NOP n loewen 2023-08-03 15:05:50 +0100
  • 18f0a12ef5 Organize todo list n loewen 2023-08-03 14:54:06 +0100
  • 90705de84c Add items to todo list n loewen 2023-08-03 08:37:53 +0100
  • fdd63177f7 Move display memory back to $00 to make programming easy n loewen 2023-08-03 08:34:58 +0100
  • 01be57f772 Pretty-print display when not in debug mode n loewen 2023-08-03 08:33:51 +0100
  • edad8c17e1 Move debug print n loewen 2023-08-03 08:12:39 +0100
  • cec80d7054 Enforce greater separation between core logic functions and display output n loewen 2023-08-03 08:10:23 +0100
  • ac14aa37c2 Remove debugging print n loewen 2023-08-03 08:05:49 +0100
  • 0114df00c9 Add todo items n loewen 2023-08-02 15:32:45 +0100
  • 935b452e11 Fix up a line to do a better job of handling debug output n loewen 2023-08-02 15:32:33 +0100
  • f4ab7508f6 Remove blank line n loewen 2023-08-02 15:30:20 +0100
  • 6883adcd71 Fix/implement relocatable display memory n loewen 2023-08-02 15:28:18 +0100
  • 18ccc4d2df Update "how to run it" info n loewen 2023-08-02 15:12:13 +0100
  • 2886161e7b Add todo item n loewen 2023-08-02 15:11:19 +0100
  • 3e67b86849 Update todo list n loewen 2023-08-02 15:10:16 +0100
  • cb186b0f3b Create test program for ADD and SUB n loewen 2023-08-02 15:09:35 +0100
  • 8b4a670b29 Implement carry flag for SUB, fix bug in ADD n loewen 2023-08-02 15:09:24 +0100
  • 4183b7c38e Improve simulator debugging output + refactor debugging code n loewen 2023-08-02 15:08:33 +0100
  • 9f04c4d314 Throw an error if given a program that's too long n loewen 2023-08-02 15:06:36 +0100
  • 7b3ec6b025 Show display in hex n loewen 2023-08-02 15:05:55 +0100
  • 4c75b36bbb Don't include assembler debug output when running in debug mode, actually n loewen 2023-08-02 14:34:32 +0100
  • 2446484a0a Include assembler debug output when running `rundebug` n loewen 2023-08-02 14:09:27 +0100
  • f4791d1862 Log CPU state in hex n loewen 2023-08-02 14:07:30 +0100
  • 5f3d4ea22f Update reference to logging.js n loewen 2023-08-02 14:06:24 +0100
  • 4ca192acff Update reference to logging.js n loewen 2023-08-02 14:06:10 +0100
  • f05a85cd0d Move pretty-printed "Running at..." header to logging.js + re-arrange logging.js exports n loewen 2023-08-02 14:05:59 +0100
  • 16cc806a3c Update reference to point to renamed logging.js n loewen 2023-08-02 14:02:04 +0100
  • b9ce6bb787 Rename file with logging utils n loewen 2023-08-02 13:58:11 +0100
  • 9a3d9cffdc Turn print-memory.js into a more general-purpose 'printing utils' library -- export num2hex + rename function that prints a table of memory n loewen 2023-08-02 13:56:10 +0100
  • 97ab0c6ee0 Add 'debug' flag when calling assembler n loewen 2023-08-02 13:54:04 +0100
  • aa08e50eda Remove unused comments, table-printing function n loewen 2023-08-02 13:15:38 +0100
  • 91c4a068e9 Add some games n loewen 2023-08-02 13:15:21 +0100
  • 89ec3f680b Update biography - 4 bit systems, bolding for most important entries n loewen 2023-08-02 12:15:17 +0100
  • 44f53d2f7f Change capitalization of todo heading + bullet points n loewen 2023-08-02 12:09:26 +0100
  • edf873de12 Add info on how to run the assembler/simulator n loewen 2023-08-02 12:08:32 +0100
  • 7480bd6a70 update todo list n loewen 2023-08-02 12:00:26 +0100
  • aa3253220b Add bibliography n loewen 2023-08-02 11:59:51 +0100
  • 6154b0505b Update memory map n loewen 2023-08-02 11:27:49 +0100
  • e56de3513a Update TODO list n loewen 2023-08-02 11:26:55 +0100
  • 996d628406 Move note on instruction length to readme, from simulator.js n loewen 2023-08-02 11:26:10 +0100
  • 7b4d6f2ec0 Update + comment CYCLE_LIMIT n loewen 2023-08-02 11:22:57 +0100
  • 77f4c93d1f Display IP first, in debug logs n loewen 2023-08-02 11:22:40 +0100
  • 5fecefdc91 Tidy up and de-duplicate setup for switching between running for debug output vs. display output n loewen 2023-08-02 11:21:14 +0100
  • daf3793f90 Allow an infinite CYCLE_LIMIT n loewen 2023-08-02 11:03:24 +0100
  • 0d050aa968 Create config file n loewen 2023-08-02 10:52:59 +0100
  • b81b6c8f5a Move config constants to a config file n loewen 2023-08-02 10:52:47 +0100
  • 91ff26fdea Move display memory and add a pointer to display memory n loewen 2023-08-02 10:38:58 +0100
  • c732f4408f Remove syntax reference - it's in the readme now n loewen 2023-08-02 10:27:06 +0100
  • 342b1b07d4 Add some new TODOs n loewen 2023-08-02 10:22:42 +0100
  • eebec540bd Tidy up memory map n loewen 2023-08-02 10:19:57 +0100
  • 71a7444162 Condense "registers and flags" into one section n loewen 2023-08-02 10:19:17 +0100
  • 086e5d630e Add assembly language reference n loewen 2023-08-02 10:17:58 +0100
  • 75f8bdd118 Update TODO list n loewen 2023-08-02 10:10:14 +0100
  • 29b6097585 Track tests n loewen 2023-08-01 15:51:59 +0100
  • c06b59d057 Stop tracking old copies of package*.json that I missed when moving things... ugh n loewen 2023-08-01 15:48:48 +0100
  • 1bdda3c04a Remove unused dependency n loewen 2023-08-01 15:48:07 +0100
  • b1ad0bd6e3 Start tracking package*.json n loewen 2023-08-01 15:47:37 +0100
  • a46641e172 Move files out of 'sketch' directory n loewen 2023-08-01 15:46:09 +0100
  • cbe0c3b12b Rename sketch 1 n loewen 2023-08-01 15:42:14 +0100
  • a770ac3a60 Rename 'simulator-sketch-v3' to 'simulator' n loewen 2023-08-01 15:41:57 +0100
  • 4b4715c6f3 Remove temporary debugging prints n loewen 2023-08-01 15:39:40 +0100
  • 7fc228c705 Create a memory-mapped-display-visualizer n loewen 2023-08-01 15:38:49 +0100
  • dab111b6ad Rename `byteCursor` to `IP` + update debugging setup n loewen 2023-08-01 15:38:31 +0100
  • f7c2203450 Create a memory-mapped-display visualizer that is separate from the CPU debugging printout n loewen 2023-08-01 15:36:05 +0100
  • 3748e7af24 Include display in debugging printout (missed a line in the last commit) n loewen 2023-08-01 15:34:44 +0100
  • f42a81c9b2 Include display in debugging printout n loewen 2023-08-01 15:34:00 +0100
  • d74b6594be Make debugging less verbose n loewen 2023-08-01 15:33:18 +0100
  • 24767d1899 Increase cycle limit n loewen 2023-08-01 15:31:52 +0100
  • 5f79c981b2 Correct off-by-one error in memory map n loewen 2023-08-01 15:30:57 +0100
  • 55d4885889 Pretty print machine code table n loewen 2023-08-01 13:31:35 +0100
  • 7813aaf56c Change debug level for memory-before-labelling table n loewen 2023-08-01 13:31:13 +0100
  • da0ababc59 Initialize instruction pointer based on a constant, to move it after screen memory n loewen 2023-08-01 13:30:48 +0100
  • 36e013b866 Combine Memory-Map and Peripherals sections n loewen 2023-08-01 13:05:51 +0100
  • e75049551f Print memory tables in hex n loewen 2023-08-01 12:57:30 +0100
  • fa3ade15dd Remove blank line n loewen 2023-08-01 12:56:44 +0100
  • 0834516c6b Tidy up debugging / print statements n loewen 2023-08-01 12:56:31 +0100
  • b16f6927ee Fix bug where referencing a label re-sets the pointer to the label address n loewen 2023-08-01 12:02:27 +0100
  • 34e86cd4f8 Move cycle limit to a constant n loewen 2023-08-01 12:01:50 +0100
  • d0a6ca886b Pretty-print "Running at ..." header n loewen 2023-08-01 12:00:20 +0100
  • a41a1671fc Update TODO list n loewen 2023-08-01 11:40:46 +0100
  • 321d8d1264 Create utility script for pretty-printing memory n loewen 2023-08-01 11:39:10 +0100
  • 36df142538 Create script for running assembler on its own n loewen 2023-08-01 11:38:45 +0100
  • 828a9f5909 Add @label handling to assembler n loewen 2023-08-01 11:38:24 +0100
  • afecab8ce3 Allow for blank lines and comment-only lines in assembly code n loewen 2023-07-31 15:21:01 +0100
  • b90300a257 Add assemble-and-run script n loewen 2023-07-31 14:46:25 +0100
  • 3dc521714f Update file names n loewen 2023-07-31 14:41:23 +0100
  • 7bb802b18c Update todo list n loewen 2023-07-26 15:06:59 +0100
  • c7cfd13931 Update todo list n loewen 2023-07-26 15:06:49 +0100
  • 5717b93eda Create entry point for assembling and then running assembly code from a text file n loewen 2023-07-26 15:06:11 +0100
  • d52ea2e467 Rename n loewen 2023-07-26 15:04:19 +0100
  • 75b6916666 Create a version of the CPU as a JS module -- otherwise the same as the previous version n loewen 2023-07-26 15:03:23 +0100
  • ba35470c3c Make assembler a javascript module, remove code for working over stdio n loewen 2023-07-26 15:02:21 +0100
  • 9797b2e25f Rename menonic-to-machine-operation lookup table n loewen 2023-07-26 14:39:35 +0100
  • 959697cd70 Tidy up whitespace n loewen 2023-07-26 14:38:29 +0100