Commit graph

64 commits

Author SHA1 Message Date
Colby Swandale
a145bf8e9f brain fart moment, the PC must always be increments on fetch instruction 2016-09-26 08:46:07 +10:00
Colby Swandale
8b341762e4 fix PC being incorrectly incremented on interrupt and fixed relevent
specs
2016-09-25 19:00:55 +10:00
Colby Swandale
432f869c4e renamed GPU to PPU 2016-09-25 17:36:23 +10:00
Colby Swandale
ca36ba9bfd fixed sprites not being transparent on pixel data 0 2016-09-18 23:28:05 +10:00
Colby Swandale
c67980d5f8 fix incorrect refernce to SCREEN_WIDTH constant in ppu 2016-09-18 23:23:58 +10:00
Colby Swandale
f4bd164e06 removed unused code and more documentation cleanup 2016-09-18 23:14:03 +10:00
Colby Swandale
af1cecef44 small cleanup and fixing up some documentation 2016-09-18 23:01:43 +10:00
Colby
dfc9df2f4f set new default window width 2016-09-01 19:51:03 +10:00
Colby
5ca8892745 enable window resizing 2016-09-01 19:45:02 +10:00
Colby
6f18f30f38 small cleanup 2016-09-01 12:01:29 +10:00
Colby
212406677b implement key controls 2016-09-01 12:01:18 +10:00
Colby
5ee093760d documentation updats 2016-08-19 20:49:36 +10:00
Colby
40eb4829a9 disable input, improve screen implementation 2016-08-14 15:06:17 +10:00
Colby
e311bd6ed1 add map 2016-08-14 15:06:17 +10:00
Colby
6ebe1f2678 fixing some bugs in window draw 2016-08-09 21:51:46 +10:00
Colby
00eec41f53 dont crash when ram is not enabled on cartridge memory read 2016-08-09 20:56:15 +10:00
Colby
b95a41520c implement mbc3 functionality 2016-08-09 20:54:51 +10:00
Colby
b0d024108a fix typo in module name for MBCs 2016-08-09 20:54:25 +10:00
Colby
4ccb749957 fixed incorrect behavior of mbc1 ram access
gameboy will simply not write to memory if memory is not enabled.
2016-08-08 22:06:10 +10:00
Colby
e729181763 fix input not working correctly 2016-08-08 21:16:43 +10:00
Colby
aeab98baaf add support for the joypad 2016-08-02 23:44:46 +10:00
Colby
84c90c4665 re-enable drawing sprites and windows 2016-08-01 20:21:06 +10:00
Colby
03de70423b fix bad offset for ECHO ram, emulate Input and other MMU fixes 2016-08-01 20:05:53 +10:00
Colby
abefb6da56 set STAT register on skip boot 2016-07-31 22:13:28 +10:00
Colby
ba6073aba0 fix screen enable/disable 2016-07-31 22:13:06 +10:00
Colby
bf785c7d54 tiny refactor of update lylc 2016-07-31 22:11:16 +10:00
Colby
322cbffc3c more cleanup 2016-07-31 14:13:28 +10:00
Colby
d632b015c1 rename line gpu line methods 2016-07-31 13:54:59 +10:00
Colby
15005532e3 removing junk 2016-07-31 13:51:45 +10:00
Colby
5faa2f2a81 extraced GPU modes into methods 2016-07-31 13:32:42 +10:00
Colby
f962e68c73 add ppu spec, moved vblank into method and accessor mode + modeclock 2016-07-31 13:24:00 +10:00
Colby
d466c46056 rename gpu time to cycles 2016-07-31 13:16:34 +10:00
Colby
0e13707487 removed SCREEN_HEIGHT and WIDTH defintion from GPU 2016-07-31 13:13:45 +10:00
Colby
8b727f1bde fix incorrect framebuffer size 2016-07-31 13:12:13 +10:00
Colby
5a71e8de00 fix incorrect setting of GPU modeclock 2016-07-31 13:10:47 +10:00
Colby
f9be999699 LCD Stat interrupt 2016-07-26 22:38:36 +10:00
Colby
ba2d81a89b fix instruction timing 2016-07-26 20:19:26 +10:00
Colby
a10a2794d1 handle HALT instruction 2016-07-24 11:02:07 +10:00
Colby
faf994fb89 interrupt Vblank 2016-07-24 11:01:08 +10:00
Colby
db5044effa fixes for IME instructions and time 2016-07-23 23:09:31 +10:00
Colby
2a1f3a6e30 fix breaking DAA instruction 2016-07-23 14:57:41 +10:00
Colby
94984f5db4 fix incorrect interrupt time and serving the correct interrupt 2016-07-21 18:09:41 +10:00
Colby
f7887b745e rewrote ROM controller 2016-07-21 18:09:11 +10:00
Colby
c2357e31fd removed unused Interrupt.serve_interrupt 2016-07-21 18:08:48 +10:00
Colby
91f3a27fe2 move timer tick outside CPU non-halt loop, must always tick 2016-07-21 18:08:34 +10:00
Colby
e72058ec37 proper MBC1 implementation 2016-07-20 21:19:04 +10:00
Colby
346b4ae443 refactor memory mapping 2016-07-20 14:21:24 +10:00
Colby
a68e9339d8 update timer to pass specs 2016-07-19 00:08:46 +10:00
Colby
f5491fb543 fix bad spelling of request_interupt method in Interrupt 2016-07-19 00:08:37 +10:00
Colby
f5c9376663 fix bug inside mmu for div reset register 2016-07-18 21:07:18 +10:00