Commit graph

123 commits

Author SHA1 Message Date
madmaurice 216cf660a1 cpu/cpu - Add way to signal interrupt from outside 2023-08-29 13:45:55 +02:00
madmaurice 7aa1af40fb cpu/cpu - Treat a call to an ISR as a step 2023-08-29 13:45:46 +02:00
madmaurice e15630fb80 memory/ram - initialize with zeroes 2023-08-29 13:44:29 +02:00
madmaurice af5d478f40 test_cpu_simple - Add TEST_CASE for PUSH rr, POP rr, CALL nn and RET 2023-08-29 12:10:10 +02:00
madmaurice 1fc081b3c5 cpu - Fix push operations 2023-08-29 12:10:10 +02:00
madmaurice 002b745917 cpu - Fix timing of delay when enabling interrupts 2023-08-29 12:10:10 +02:00
madmaurice 1194340657 test_cpu_simple - Add a few more test cases 2023-08-28 23:08:45 +02:00
madmaurice 763fe13f5a decoder - Disable debug printf 2023-08-28 23:08:33 +02:00
madmaurice 0ce79045e3 tests - Implement simple ram tests 2023-08-28 23:08:19 +02:00
madmaurice 6f8f90afbe Remove verbosity for successful tests 2023-08-28 23:07:53 +02:00
madmaurice bd2b577c6c decoder - Add parenthesis to bitwise ANDs
== has priority over & so a & b == c is parsed as a & (b == c)
2023-08-28 22:31:52 +02:00
madmaurice eb6faab89f Use doctest as test framework 2023-08-28 22:31:24 +02:00
madmaurice b64c82ec92 Improve build system and add support for tests 2023-08-28 21:56:54 +02:00
madmaurice 505478b840 Improve Cpu class and implement interrupts 2023-08-28 21:56:33 +02:00
madmaurice e859f8ad2c Implement mem device for bootrom overlay 2023-08-28 21:55:46 +02:00
madmaurice e4a6b1f9b4 decoder - Simplify RST command
We can calculate the rst address directly from the op code.
2023-08-28 19:39:18 +02:00
madmaurice ad2334a6af Implement more parts of decoder 2023-08-27 22:19:02 +02:00
madmaurice 93521e559c Simplify decoder code somewhat. 2023-08-27 00:15:12 +02:00
madmaurice ab09bbd9b7 more decoder code 2023-08-26 23:51:51 +02:00
madmaurice 8d063c08ca Fix build errors. 2023-08-26 21:17:47 +02:00
madmaurice 8019408684 Add gitignore 2023-08-26 21:17:29 +02:00
madmaurice ba5b55a196 WIP initial state 2023-08-26 19:04:02 +02:00
madmaurice 6cacf1ae80 Initial empty commit 2023-08-26 19:03:33 +02:00