Commit Graph

350 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 996de65688 chore: reintroduce thread sleeping + simplify fps counter 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka b97b66927f feat: implement double buffering 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka 628d4cfb68 chore: clean up DMA code 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka ff002f18c6 feat: handle DMA IRQs (maybe?) 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka 5d5d3827fb chore: contain Timers in a tuple rather than a struct 2022-10-21 05:12:42 -03:00
Rekai Nyangadzayi Musuka 8826242bf3 chore: contain DMA Controllers in a tuple rather than a struct 2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka 4bb1aa06f7 chore: update git submodules 2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka 570ff8536c chore: resolve incorrect memory mirror in VRAM
+ stub GPIO registers on ROM Write
2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka 2c0d2b64a2 chore: stub a few I/O registers 2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka 1750c0a26e chore: allow 8-bit IO to BG0CNT and BG1CNT
BG0CNT and and BG1CNT now work properly in mario kart
2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka a102d68e99 chore: define affine sprite attributes 2022-10-21 05:12:41 -03:00
Rekai Nyangadzayi Musuka 61483b93e8 feat: stub mode 1 and 2 2022-10-21 05:12:40 -03:00
Rekai Nyangadzayi Musuka 192d7645eb feat: implement mode 5
I wonder which obscure game makes heavy use of this mode
2022-10-21 05:12:40 -03:00
Rekai Nyangadzayi Musuka f1c68fb0de chore: comment ARM MSR code + Audio issues 2022-10-21 05:12:40 -03:00
Rekai Nyangadzayi Musuka cb74bfd280 chore: pass destoer's cond_invalid test 2022-10-21 05:12:40 -03:00
Rekai Nyangadzayi Musuka 0d1717538b chore: misc print message improvements 2022-10-21 05:12:40 -03:00
Rekai Nyangadzayi Musuka 896ae0935a chore: improvements to APU accuracy 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka 1a23073424 fix: incorrect order-of-operations in ARM BL impl 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka 36f3b0d381 chore: special case saving for ROMS without titles 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka 74335cacbf chore: update README 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka 1ee2dd9c5e chore: update most recent zig version 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka c2f3790dc3 feat: pass DenSinH's eeprom-test 2022-10-21 05:12:39 -03:00
Rekai Nyangadzayi Musuka 746c28004f feat: implement EEPROM 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka 084d4b28dd chore: implement I/O regsister for Minish Cap 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka ed6e83b121 chore: change default window scale to 4x 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka b827ba3a1c chore: write more debug log messages for unimplemented registers 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka 0f343f0b74 chore: only sync to audio for now 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka 7a670c6ed9 feat: panic on unimplemented I/O in ReleaseSafe/Debug but not ReleaseFast 2022-10-21 05:12:38 -03:00
Rekai Nyangadzayi Musuka e690f88cda chore: misc improvements 2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka c7f537959b 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-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka f074b703b3 feat: implement Noise
Kirby & The Amazing Mirror crashes only in ReleaseSafe / ReleaseBug.

TODO: Figure out why
2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka f8159645e0 feat: implement ch3 2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka cccb83a926 feat: implement ch2 2022-10-21 05:12:37 -03:00
Rekai Nyangadzayi Musuka af8fe66c43 feat: implement ch1
TODO: It's really loud
2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka 1f23aff22c chore: broken impl of ch1 2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka e580b78020 feat: add audio resampler
Also implement extremely naive audio sync
2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka a87a5ce273 chore: calculate apu sample rate a bit better 2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka af1887e0a6 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-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka 14bb2f6fbe chore: improve timer behaviour 2022-10-21 05:12:36 -03:00
Rekai Nyangadzayi Musuka d144973acf chore: move some init code to functions 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka eecd78a008 feat: impelemt THUMB open bus 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka c03c142b14 feat: implement ARM read open bus 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka 40f3600de2 fix: remove accidental rotation in ldrsh instructions 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka c08e331f77 chore: move log statement 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka a92989ed24 chore: remove magic numbers 2022-10-21 05:12:35 -03:00
Rekai Nyangadzayi Musuka 6c61eb3537 chore: remove unnecessary 32MB allocation 2022-10-21 05:12:34 -03:00
Rekai Nyangadzayi Musuka 05c1274ec1 chore: define more I/O read/writes 2022-10-21 05:12:34 -03:00
Rekai Nyangadzayi Musuka f5bc78ae22 chore: update README 2022-10-21 05:12:34 -03:00
Rekai Nyangadzayi Musuka 27ad8772ea feat: pass jsmolka memory.gba 2022-10-21 05:12:34 -03:00
Rekai Nyangadzayi Musuka 135987745c chore: ignore instead of logging errors for perf reasons 2022-10-21 05:12:34 -03:00