Commit Graph

348 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 660c8a2d62 chore: clean up DMA code 2022-05-05 22:36:11 -03:00
Rekai Nyangadzayi Musuka 9d590b099a feat: handle DMA IRQs (maybe?) 2022-05-05 22:04:59 -03:00
Rekai Nyangadzayi Musuka d5443d9c2f chore: contain Timers in a tuple rather than a struct 2022-05-05 20:09:00 -03:00
Rekai Nyangadzayi Musuka f0ce39230b chore: contain DMA Controllers in a tuple rather than a struct 2022-05-05 19:53:12 -03:00
Rekai Nyangadzayi Musuka c0e026b9a8 chore: update git submodules 2022-05-05 18:21:59 -03:00
Rekai Nyangadzayi Musuka 208e88e869 chore: resolve incorrect memory mirror in VRAM
+ stub GPIO registers on ROM Write
2022-05-05 16:44:48 -03:00
Rekai Nyangadzayi Musuka 5df023fb41 chore: stub a few I/O registers 2022-05-03 22:41:05 -03:00
Rekai Nyangadzayi Musuka 46ac1542a6 chore: allow 8-bit IO to BG0CNT and BG1CNT
BG0CNT and and BG1CNT now work properly in mario kart
2022-05-01 20:41:00 -03:00
Rekai Nyangadzayi Musuka c2f55e0bfb chore: define affine sprite attributes 2022-05-01 19:15:56 -03:00
Rekai Nyangadzayi Musuka 12f9bb51c1 feat: stub mode 1 and 2 2022-05-01 18:53:11 -03:00
Rekai Nyangadzayi Musuka 41558c9103 feat: implement mode 5
I wonder which obscure game makes heavy use of this mode
2022-05-01 18:10:52 -03:00
Rekai Nyangadzayi Musuka 68012f84d3 chore: comment ARM MSR code + Audio issues 2022-04-30 22:17:34 -05:00
Rekai Nyangadzayi Musuka 640b1f7c5d chore: pass destoer's cond_invalid test 2022-04-30 20:42:47 -05:00
Rekai Nyangadzayi Musuka f2f4bb205a chore: misc print message improvements 2022-04-29 12:41:05 -05:00
Rekai Nyangadzayi Musuka 6c88a0aec2 chore: improvements to APU accuracy 2022-04-29 12:19:31 -05:00
Rekai Nyangadzayi Musuka 002287ecfe fix: incorrect order-of-operations in ARM BL impl 2022-04-27 23:15:39 -05:00
Rekai Nyangadzayi Musuka a87b46898b chore: special case saving for ROMS without titles 2022-04-27 18:08:44 -05:00
Rekai Nyangadzayi Musuka 417810581b chore: update README 2022-04-26 10:52:56 -05:00
Rekai Nyangadzayi Musuka bc2950916f chore: update most recent zig version 2022-04-26 09:57:26 -05:00
Rekai Nyangadzayi Musuka d9c9105449 feat: pass DenSinH's eeprom-test 2022-04-25 17:20:43 -05:00
Rekai Nyangadzayi Musuka 05a432f1c1 feat: implement EEPROM 2022-04-25 16:23:24 -05:00
Rekai Nyangadzayi Musuka f4a48d536c chore: implement I/O regsister for Minish Cap 2022-04-25 08:01:34 -05:00
Rekai Nyangadzayi Musuka 81db06d2fc chore: change default window scale to 4x 2022-04-24 08:33:28 -04:00
Rekai Nyangadzayi Musuka 1812fb8008 chore: write more debug log messages for unimplemented registers 2022-04-22 22:19:26 -03:00
Rekai Nyangadzayi Musuka 762494453f chore: only sync to audio for now 2022-04-22 20:56:52 -03:00
Rekai Nyangadzayi Musuka e3553bcbd6 feat: panic on unimplemented I/O in ReleaseSafe/Debug but not ReleaseFast 2022-04-22 20:56:52 -03:00
Rekai Nyangadzayi Musuka 9cce4d9859 chore: misc improvements 2022-04-21 10:15:52 -03:00
Rekai Nyangadzayi Musuka 75ba9a4bf9 fix: improper lifetime for *Arm7tdmi ptr in Bus
*Arm7tdmi ptr is now assigned one scope up so that it lives as least
as long as Bus does
2022-04-21 07:56:17 -03:00
Rekai Nyangadzayi Musuka 85e8ca9146 feat: implement Noise
Kirby & The Amazing Mirror crashes only in ReleaseSafe / ReleaseBug.

TODO: Figure out why
2022-04-21 02:40:02 -03:00
Rekai Nyangadzayi Musuka 2f07c18f0b feat: implement ch3 2022-04-21 00:21:55 -03:00
Rekai Nyangadzayi Musuka ed3d275974 feat: implement ch2 2022-04-20 21:33:46 -03:00
Rekai Nyangadzayi Musuka 0184ec3e5e feat: implement ch1
TODO: It's really loud
2022-04-20 20:52:50 -03:00
Rekai Nyangadzayi Musuka 97a689ab55 chore: broken impl of ch1 2022-04-20 09:39:12 -03:00
Rekai Nyangadzayi Musuka c3611a0f00 feat: add audio resampler
Also implement extremely naive audio sync
2022-04-20 06:27:06 -03:00
Rekai Nyangadzayi Musuka d270ec711f chore: calculate apu sample rate a bit better 2022-04-20 02:36:32 -03:00
Rekai Nyangadzayi Musuka 172a59aefb feat: schedule audio sampling on scheduler
DMA sound in games like Pokemon Emerald, Chobits, Love Hina, and Kirby:
Nightmare in Dream Land sound great save for conerns about resampling
2022-04-14 05:58:32 -03:00
Rekai Nyangadzayi Musuka 92cabd248b chore: improve timer behaviour 2022-04-14 01:58:40 -03:00
Rekai Nyangadzayi Musuka 6b09250a56 chore: move some init code to functions 2022-04-14 00:52:21 -03:00
Rekai Nyangadzayi Musuka f6d746e810 feat: impelemt THUMB open bus 2022-04-14 00:21:49 -03:00
Rekai Nyangadzayi Musuka 9b9b6c0d6f feat: implement ARM read open bus 2022-04-13 23:28:14 -03:00
Rekai Nyangadzayi Musuka 6d5c30ac25 fix: remove accidental rotation in ldrsh instructions 2022-04-13 22:59:32 -03:00
Rekai Nyangadzayi Musuka c1b74d556a chore: move log statement 2022-04-13 21:45:15 -03:00
Rekai Nyangadzayi Musuka dfe94fb931 chore: remove magic numbers 2022-04-13 21:39:35 -03:00
Rekai Nyangadzayi Musuka ffbb31c767 chore: remove unnecessary 32MB allocation 2022-04-13 21:25:41 -03:00
Rekai Nyangadzayi Musuka 714209565b chore: define more I/O read/writes 2022-04-12 00:50:44 -03:00
Rekai Nyangadzayi Musuka 643cd13952 chore: update README 2022-04-11 23:14:44 -03:00
Rekai Nyangadzayi Musuka 2c763e9772 feat: pass jsmolka memory.gba 2022-04-11 22:52:17 -03:00
Rekai Nyangadzayi Musuka ad1f5ea8b8 chore: ignore instead of logging errors for perf reasons 2022-04-10 23:10:06 -03:00
Rekai Nyangadzayi Musuka 76b4d56ca6 feat: Initial Implementation of DMA Audio 2022-04-10 04:50:09 -03:00
Rekai Nyangadzayi Musuka c100d64fcb chore: tick scheduler on memory access 2022-04-09 19:43:27 -03:00