Commit Graph

48 Commits

Author SHA1 Message Date
Kevin Hamacher
9508244447 Fix MBC rom bank select 2016-06-02 13:39:17 +02:00
Kevin Hamacher
023b9ff0e4 Speed enhancements; Write savefiles 2016-06-02 13:22:35 +02:00
Kevin Hamacher
be4f9da380 Add savegame files 2016-06-02 13:21:45 +02:00
Kevin Hamacher
dc0656475f Some cleanup; Delayed rendering
SDL will only used as soon as all pixels have been described
in the internal buffer.
2016-06-01 23:52:07 +02:00
Kevin Hamacher
458fec99dd Started work on palette support 2016-06-01 19:55:26 +02:00
509a76924a sprite cleanup part 1 2016-06-01 19:11:23 +02:00
Kevin Hamacher
8c0ef5529c Add more audio regs; Add sprite struct 2016-06-01 16:32:28 +02:00
Kevin Hamacher
4221ed06ac Improve MBC3; Fix VRAM DMA 2016-06-01 15:54:41 +02:00
Kevin Hamacher
2057a06411 MBC2: Compare addr instead of the value 2016-06-01 15:29:38 +02:00
Kevin Hamacher
8c6a6fa33c Add MBC2 implementation 2016-06-01 15:28:20 +02:00
Kevin Hamacher
25d33d6e82 Correctly implement MBC1 emulation 2016-06-01 15:17:14 +02:00
Kevin Hamacher
19f31cfbbf Fix some overflows 2016-06-01 15:02:53 +02:00
e8da2e4958 Fix some prints, copy MBC3 -> MBC1 2016-06-01 15:01:41 +02:00
Kevin Hamacher
3458d4b7d9 Split MBC logic 2016-05-29 22:04:22 +02:00
Kevin Hamacher
411f0876af Fix stack offsets; Passes two more tests. 2016-05-29 20:59:37 +02:00
Kevin Hamacher
2b2659986e Fix a couple CB opcodes; Pass more tests. 2016-05-29 20:53:17 +02:00
Kevin Hamacher
72507fb8b4 Fix ADD HL, SP; Pass test #3 2016-05-29 20:27:36 +02:00
Kevin Hamacher
7dadc79078 Fix ADD, ADC, SUB, SBC, CP; Pass test 2016-05-29 20:22:10 +02:00
Kevin Hamacher
6455732043 Add support for MBC1.
TODO: Refactor the cartridge code
2016-05-29 18:36:40 +02:00
1e04879770 Add readme; SRA bugfix 2016-05-29 15:35:13 +02:00
ecb66dba71 Update other rotate/shift instructions 2016-05-29 15:24:26 +02:00
9040214b85 Fix RR and RRC 2016-05-29 15:16:44 +02:00
fbffa7dccb Fix SRL and SRA 2016-05-29 15:13:33 +02:00
4a1b335887 Try to fix DAA 2016-05-29 14:43:13 +02:00
691147631a Fix writing to F register 2016-05-29 14:34:34 +02:00
47a4b0c720 Inlining performance critical functions 2016-05-29 14:18:47 +02:00
2499eedfd2 Improve Display 2016-05-29 14:11:34 +02:00
b71397d16a Improve timer; Add 16 px sprite support 2016-05-29 13:01:36 +02:00
1ad3d47c88 Add input; Add RLCA 2016-05-29 11:58:35 +02:00
44c8b2e7d8 Add VRAM DMA; Add basic timer support 2016-05-28 23:57:14 +02:00
6d675616f1 Add SET instruction; Add WRAM support 2016-05-28 23:34:32 +02:00
81567c97c4 Add more prefix commands 2016-05-28 22:52:52 +02:00
001eb19df3 Add message loop; Implement all basic instructions 2016-05-28 22:44:48 +02:00
Kevin Hamacher
710b057f54 Honor flags more. Deny direct reg access 2016-05-28 15:41:44 +02:00
Kevin Hamacher
d91fa7d75b Fix HL+, add cpu instr testsuite 2016-05-28 14:10:36 +02:00
Kevin Hamacher
e3fce0bcc5 Add cartridge mod; Add sprite support 2016-05-28 12:57:06 +02:00
Kevin Hamacher
f10744b2a6 RL instruction fix; Nintendo logo correct 2016-05-28 10:18:12 +02:00
b52347d5c7 Add commands; Do not panic!
Errors will be ignored, just to test how far we come
2016-05-27 16:57:25 +02:00
c733c05e38 Fix RL(A) instruction 2016-05-27 13:48:08 +02:00
Kevin Hamacher
f962fd76b6 Add links 2016-05-26 20:58:55 +02:00
Kevin Hamacher
a4caaa55f0 Remove dead code 2016-05-26 20:56:07 +02:00
Kevin Hamacher
31117963e5 Move more logic to functions 2016-05-26 20:51:23 +02:00
Kevin Hamacher
0fdfa9ae63 Even more cleanup 2016-05-26 20:25:44 +02:00
Kevin Hamacher
79d2c99c06 cleanup 2016-05-26 18:56:22 +02:00
Kevin Hamacher
ea81305272 Started implementing graphics 2016-05-26 17:45:31 +02:00
Kevin Hamacher
396e87304e Serial and Timer class, cycle counting
Also a little bit of refactoring.
Move VRAM to the display object
2016-05-26 15:47:08 +02:00
Kevin Hamacher
94e73b2eda Add basic hardware IO.
Emulator passes bios! hooray
2016-05-26 14:18:02 +02:00
Kevin Hamacher
8df38e9c11 Initial commit 2016-05-25 22:51:40 +02:00