Commit graph

220 commits

Author SHA1 Message Date
Alex Janka bec5a0c3d6 window renders + it all works kind of almost ish 2023-02-06 12:14:02 +11:00
Alex Janka 1d041e2d57 gpu improvements 2023-02-06 11:42:45 +11:00
Alex Janka 4a48bf6a68 dont pretend to run bootrom if actually running bootrom 2023-02-06 11:18:18 +11:00
Alex Janka 7eba1f9586 better... 2023-02-05 23:07:55 +11:00
Alex Janka 587916ed34 scaling & lcd enable back 2023-02-05 22:56:18 +11:00
Alex Janka 75c765b392 almost drawing 2023-02-05 22:37:49 +11:00
Alex Janka 839429029d reset vblank flag lol 2023-02-05 18:50:07 +11:00
Alex Janka 976ee24d6a initial gpu impl 2023-02-05 18:46:55 +11:00
Alex Janka 28fef84118 stink 2023-02-03 17:37:08 +11:00
Alex Janka 74551afdd8 graphics window 2023-02-03 09:15:30 +11:00
Alex Janka f759fdd48c dont let the game know about the speedup 2023-02-03 08:55:03 +11:00
Alex Janka f87fe618fd vblank should be working 2023-02-03 08:54:29 +11:00
Alex Janka 8b9bcb5026 clear if bits 2023-02-02 19:05:18 +11:00
Alex Janka 6ae1d4a4b8 interrupt handling 2023-02-02 19:01:11 +11:00
Alex Janka 04a9748aa6 quicker cycling 2023-02-02 19:01:04 +11:00
Alex Janka 0a6e0b6833 almost timing 2023-02-02 16:52:33 +11:00
Alex Janka bb7e0fbc51 opcodes return number of cycles 2023-02-02 16:28:49 +11:00
Alex Janka 7c196daeb6 cleanup 2023-02-02 12:05:09 +11:00
Alex Janka eb85d3aa25 cant pop to f 2023-02-02 11:55:04 +11:00
Alex Janka ba8b03693f all instructions actually working 2023-02-02 11:52:45 +11:00
Alex Janka c82f00c88b fix carry instruction flags 2023-02-02 11:07:09 +11:00
Alex Janka d73fbc827c move ime_scheduled logic from opcode handler 2023-02-02 11:00:59 +11:00
Alex Janka 8fc35fa1e1 cleanup 2023-02-02 11:00:47 +11:00
Alex Janka e4ba687968 0xC0 - 0xFF 2023-02-02 10:54:16 +11:00
Alex Janka f07c6a41a3 impl 0x80 to 0xBF 2023-02-01 23:08:51 +11:00
Alex Janka d03043bef9 ld instructions 2023-02-01 22:54:02 +11:00
Alex Janka e3199f32b6 0x00 - 0x3F opcodes 2023-02-01 22:46:58 +11:00
Alex Janka 3da02edc34 instruction changes & fixes 2023-02-01 22:46:41 +11:00
Alex Janka 7460d31913 extra instructions + fix caps on flags 2023-02-01 20:04:05 +11:00
Alex Janka fffb6e0278 new register layout 2023-02-01 17:18:08 +11:00
Alex Janka 3a599b069f better processor modularisation 2023-01-31 10:05:36 +11:00
Alex Janka 8413dedb89 remove unneeded allow(dead_code)s 2023-01-27 11:26:33 +11:00
Alex Janka f073cd5722 begin 2023-01-27 11:12:38 +11:00
Alex Janka 17f037fb27 give flags their Full Name 2023-01-22 13:09:31 +11:00
Alex Janka 13bd9f0a1c refactor printing + args 2023-01-22 12:13:02 +11:00
Alex Janka 744f769728 move opcodes to module 2023-01-22 09:39:45 +11:00
Alex Janka 57b46eca6e move processor to own module folder 2023-01-22 09:35:10 +11:00
Alex Janka e51d188a3a reorganise main 2023-01-22 09:33:18 +11:00
Alex Janka 26c999f8f4 extra prints 2023-01-22 09:32:19 +11:00
Alex Janka 043f333c7d fix adds and such 2023-01-22 09:18:07 +11:00
Alex Janka 0e674af1b2 swap rom endian 2023-01-22 09:08:33 +11:00
Alex Janka 769a587aaa memory fixes, interrupt table, better pause 2023-01-22 09:07:57 +11:00
Alex Janka 7510ad13cd prevent panic on overflow when incrementing program counter 2023-01-20 14:59:17 +11:00
Alex Janka ac023fdc31 init cpu ram properly + other minor changes 2023-01-20 14:58:43 +11:00
Alex Janka 4fcde0fd82 fixes & all opcodes!! 2023-01-18 14:43:24 +11:00
Alex Janka 8f3cf515a9 fix interrupts 2023-01-18 13:58:53 +11:00
Alex Janka df8acbfa32 rotate instructions 2023-01-18 13:14:22 +11:00
Alex Janka d1dae1aa73 bootrom boot 2023-01-18 12:46:15 +11:00
Alex Janka 9533768bd9 fix adds and flags 2023-01-18 12:45:56 +11:00
Alex Janka 3cf0df204d move ime to ram 2023-01-17 09:45:49 +11:00