Commit Graph

414 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka fc303b6265 chore: rename "as u8" to "as Self" when implementing From Trait 2021-03-20 21:10:48 -05:00
Rekai Nyangadzayi Musuka cd0eac9d37 chore: improve code quality
Removed a lot of magic constants. Gave them descriptive variable names
2021-03-20 20:26:49 -05:00
Rekai Nyangadzayi Musuka 0f4dec8a38 feat: implement cpu timing for emulator
When running the GB Boot ROM, a garbled Nin***** logo will appear
2021-03-20 19:56:26 -05:00
Rekai Nyangadzayi Musuka d76b3b6101 chore: make Cycles::new a const fn 2021-03-20 19:55:39 -05:00
Rekai Nyangadzayi Musuka 2401cf7190 chore: implement default for cycles 2021-03-20 19:55:02 -05:00
Rekai Nyangadzayi Musuka f365633c1e fix: allow for the ppu to modify interrupt flags 2021-03-20 19:53:56 -05:00
Rekai Nyangadzayi Musuka f45c2439c1 chore: update dependencies 2021-03-20 17:49:36 -05:00
Rekai Nyangadzayi Musuka 558f9e7c72 feat: implement cpu interrupts 2021-03-18 21:07:19 -05:00
Rekai Nyangadzayi Musuka fb38ef3f68 feat: emu slowly draws scanline to pixelbuffer 2021-03-18 21:06:57 -05:00
Rekai Nyangadzayi Musuka 4663e8c960 chore: unifty read_byte and write_byte across hardware 2021-03-17 00:29:36 -05:00
Rekai Nyangadzayi Musuka adeb6ca8a9 feat: implement window x, window y and ly compare registers 2021-03-16 22:52:43 -05:00
Rekai Nyangadzayi Musuka 06821bf880 fix: improve types of heap allocated arrays 2021-03-16 22:51:41 -05:00
Rekai Nyangadzayi Musuka 528b88eeb7 feat: implement Obj Palette 0 and 1 2021-03-16 02:36:09 -05:00
Rekai Nyangadzayi Musuka 8af434da07 fix: have the PPU use the CPU-writable Display Mode enum 2021-03-16 02:35:01 -05:00
Rekai Nyangadzayi Musuka 8c25e6f976 chore: fix spelling mistake 2021-03-16 02:31:07 -05:00
Rekai Nyangadzayi Musuka 19f642eafe chore: make clippy happy 2021-03-16 01:05:13 -05:00
Rekai Nyangadzayi Musuka bfde24cc8d fix: reimplement some ppu structs as bitfield macros 2021-03-16 00:27:27 -05:00
Rekai Nyangadzayi Musuka ef4cc8c3b6 chore: standardize the error message of a subet of unreachable! calls 2021-03-15 23:53:55 -05:00
Rekai Nyangadzayi Musuka 3b5d94adfc fix: reimplement flags register to be a bitfield 2021-03-15 23:35:20 -05:00
Rekai Nyangadzayi Musuka f57cf2b312 fix: switch to bitfield macros in serial.rs 2021-03-15 22:52:26 -05:00
Rekai Nyangadzayi Musuka d0410c4dfd fix: modify access parameters in timer.rs 2021-03-15 22:51:12 -05:00
Rekai Nyangadzayi Musuka f17bb032cc fix: implement bitfield macros in timer.rs 2021-03-15 22:41:41 -05:00
Rekai Nyangadzayi Musuka 1a8506c04f chore: improve code quality 2021-03-15 22:36:27 -05:00
Rekai Nyangadzayi Musuka 3d82465b04 chore: clean up code 2021-03-15 22:08:47 -05:00
Rekai Nyangadzayi Musuka 84babc4d69 fix: convert structs to bitfield structs in interrupt.rs 2021-03-15 21:59:53 -05:00
Rekai Nyangadzayi Musuka 602a0af4b7 chore: update parameter names in sound.rs 2021-03-15 21:43:50 -05:00
Rekai Nyangadzayi Musuka f929cd5989 chore: update access modifiers in sound.rs 2021-03-15 21:36:57 -05:00
Rekai Nyangadzayi Musuka 8989d3f1d7 fix: convert sound.rs structs to bitfields 2021-03-15 21:16:11 -05:00
Rekai Nyangadzayi Musuka 61fd63bb45 Merge branch 'master' of ssh://ssh.paoda.moe:31059/paoda/gb 2021-03-15 19:20:29 -05:00
Rekai Nyangadzayi Musuka 98e67b8c1c chore: fix spelling error 2021-03-15 19:20:08 -05:00
Rekai Nyangadzayi Musuka d30ce4dbb2 chore: improve code quailty 2021-03-15 19:19:40 -05:00
Rekai Nyangadzayi Musuka 5d95eadd2e fix: implement Default and Clone for Box<dyn MBC> 2021-03-15 19:08:19 -05:00
Rekai Nyangadzayi Musuka 0729e1602e chore: update rust CI version from 1.49 to latest 2021-02-25 23:17:19 -06:00
Rekai Nyangadzayi Musuka 357e72173b chore: update dependency versioning 2021-02-20 17:03:01 -06:00
Rekai Nyangadzayi Musuka 4013bbeb9b Revert "chore: update rust version in CI config"
This reverts commit 240be750d2.
2021-02-11 22:40:03 -06:00
Rekai Nyangadzayi Musuka 240be750d2 chore: update rust version in CI config 2021-02-11 16:08:26 -06:00
Rekai Nyangadzayi Musuka 2500fd4561 chore: add README.md 2021-01-27 23:59:42 -06:00
Rekai Nyangadzayi Musuka d78a50fefc chore: fix tests and simplify CI build 2021-01-27 22:17:01 -06:00
Rekai Nyangadzayi Musuka b053260c8b feat: don't embed gb boot rom in emulator 2021-01-27 22:07:31 -06:00
Rekai Nyangadzayi Musuka c29c71a8c2 chore: fix CI build syntax errors 2021-01-27 21:49:20 -06:00
Rekai Nyangadzayi Musuka 160c8ca213 chore: add .drone.yml for CI integration 2021-01-27 21:12:38 -06:00
Rekai Nyangadzayi Musuka b5d3a2c675 feat: implement MBC1 2021-01-20 01:39:24 -06:00
Rekai Nyangadzayi Musuka 96bfc43312 chore: fix spelling errors 2021-01-19 22:44:48 -06:00
Rekai Nyangadzayi Musuka 842e670807 fix: replace MathTarget::HL and ::SP with already-existing enums 2021-01-19 02:05:04 -06:00
Rekai Nyangadzayi Musuka b70c398e14 feat: implement registers 0xFF01 and 0xFF02 2021-01-19 01:40:07 -06:00
Rekai Nyangadzayi Musuka 68c9557c43 chore: improve code quality 2021-01-19 01:36:44 -06:00
Rekai Nyangadzayi Musuka 1da01a318d feat: emulator now sucessfully runs boot rom 2021-01-19 00:30:32 -06:00
Rekai Nyangadzayi Musuka 9143286e9c feat: implement more operator overrides for Cycles 2021-01-19 00:29:04 -06:00
Rekai Nyangadzayi Musuka 9b4c95ce4c feat: reimplement cycles newtype 2021-01-18 22:54:38 -06:00
Rekai Nyangadzayi Musuka 2fc7ac3833 feat: add pixels-rs and winit as dependencies 2021-01-18 20:47:09 -06:00