Commit Graph

270 Commits

Author SHA1 Message Date
Adrian Conlon
b4e2e628d0 Update boost to v1.77
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-09-23 08:52:40 +01:00
Adrian Conlon
22506ea56c Extensive change warning: lots of "noexcept" and "constexpr" changes. Not sure if I'll keep all of them, but interesting...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-07-18 14:28:40 +01:00
Adrian Conlon
2f76e901f9 More tidying of include files for VS2019 compatibility (plus more correct!)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-05-29 12:18:13 +01:00
Adrian Conlon
2992a0e78a Event fire: use default arguments, where possible.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-04-07 21:36:53 +01:00
Adrian Conlon
4dd3106af0 Tidy up some C++ issues in GameBoy emulator
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-03-08 16:42:01 +00:00
Adrian Conlon
d785b1eae7 Simplify LR35902 machine timing. 2020-11-13 17:28:35 +00:00
Adrian Conlon
eb761bc62f LR35902: Whoops: correct broken timer (when it begins at zero!)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-13 14:50:12 +00:00
Adrian Conlon
fa7e1480d3 LR35902: Fix lots of timing issues by attaching to the "tick" event.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-13 10:14:06 +00:00
Adrian Conlon
efed7dae23 LR35902 Simplify timing mechanism (corrects some timing issues as well!)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-12 18:21:51 +00:00
Adrian Conlon
b8a2db96f4 Include interrupt information in the disassembler output.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-12 16:22:44 +00:00
Adrian Conlon
f7da03d46b Bring the LR35902 code to be more like the Z80
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-09 11:48:59 +00:00
Adrian Conlon
759b4a9fa8 GameBoy: Correct a few (very minor C++) niggles in the implementation. No functional changes.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-07 09:41:12 +00:00
Adrian Conlon
33dd479421 Updated GameBoy processor documentation.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-07 09:36:47 +00:00
Adrian Conlon
808251d0f6 (Dr Mario Fixes) Second tile selection bank is indexed in a signed manner.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-10-28 14:02:42 +00:00
Adrian Conlon
5631d2b367 (Dr. Mario Fixes) Correct out of range crash when palette selection is anything but zero.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-10-28 14:01:40 +00:00
Adrian Conlon
960d6ff181 Whoops: Missed compile module from the LR35902 makefile
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-07-25 09:28:33 +01:00
Adrian Conlon
44c6a8c3d1 Correct some EightBit project analysis warnings.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-04-06 23:11:21 +01:00
Adrian Conlon
c8bdabf34f Reflect that the I/O for Intel style processors isn't part of the CPU, but attached to the Bus and access controlled by the CPU.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-09 11:51:58 +00:00
Adrian Conlon
d9466082ec M-Cycle accurate Z80 modifications.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-12-29 01:18:54 +00:00
Adrian Conlon
3a49a9cc59 Use simpler LR35902 CPU/render sequence.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-18 00:54:52 +00:00
Adrian Conlon
d9f71a5d05 Add some more gameboy documentation
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-10 11:15:30 +00:00
Adrian Conlon
d0467421ff Improve compatibility with .net emulator code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-09 18:58:23 +00:00
Adrian Conlon
62d71e44bf Upgrade to latest version of boost (1.71.0)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-10-13 00:13:35 +01:00
Adrian Conlon
f48f1d559e Move all Intel derived processors over to the simpler "HALT" method.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-29 08:57:30 +01:00
Adrian Conlon
6940a54355 Update all EightBit projects to VS2019 (Latest SDK, C++17)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-17 11:04:29 +01:00
Adrian Conlon
326ebfd8ea Merge branch 'master' of https://github.com/MoleskiCoder/EightBit 2019-08-16 21:57:01 +01:00
Adrian Conlon
5e9014997a Upgraded to VS2019, default SDK.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-06 13:16:38 +01:00
Adrian Conlon
03975bd76b Remove unneeded "hex" method.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-06 13:15:39 +01:00
Adrian Conlon
58e074b17f Refactor the keyboard scan code a little more, to make it more comprehensible.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-03 17:44:16 +01:00
Adrian Conlon
45d1fe605f Mild refactoring of the keyboard IO to make the C++ and C# versions as close as possible.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-03 11:39:17 +01:00
Adrian Conlon
86d5ae4745 Correct LR35902 disassembler mistake.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-27 19:48:22 +01:00
Adrian Conlon
9f404d46a4 The LR35902 instruction set doesn't really need the "bit" instruction to return a value.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 11:25:56 +01:00
Adrian Conlon
def1c58e9d Tidy project settings across the EightBit library to be more consistent.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-06 22:45:16 +01:00
Adrian Conlon
1a0d3ad77a Go through all projects for configuration consistency.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:25:44 +01:00
Adrian Conlon
934a1f7025 Use the virtual methods, busRead and busWrite for all processor bus actions.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-03-02 21:58:34 +00:00
Adrian Conlon
f0376fa81e Use macros to define our device pins.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-14 23:17:54 +00:00
Adrian Conlon
a44658ec94 Correct a coulple of newly introduced GB issues.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-14 02:23:48 +00:00
Adrian Conlon
92d23d82d6 Start big refactor of device/CPU pin usage (to allow pin events throughout).
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-14 02:10:17 +00:00
Adrian Conlon
68030610d8 Move to an event driven clock tick event for all CPUs
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-09 23:24:33 +00:00
Adrian Conlon
a13ad5042a Correct constructions of register16_t: the structure is "#ifdef"ed for different endian arrangements.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-06 11:27:43 +00:00
Adrian Conlon
f38d326ca7 Improve the flexibility of the BUS mapping/read/write architecture.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-12-29 19:17:36 +00:00
Adrian Conlon
dc477cd050 Use explicit enumeration types (improves type safety) where appropriate.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-12-01 15:24:29 +00:00
Adrian Conlon
a940a29283 Unify build settings across all the EightBit libraries.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-28 21:24:51 +00:00
Adrian Conlon
e156b1ff1a Correct some more compilation warnings (across the whole EightBit project).
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-25 19:02:11 +00:00
Adrian Conlon
68b352d1df Wire the GameBoy board like a piece of powered hardware.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-12 00:38:03 +00:00
Adrian Conlon
fdbb28828f Apply the concept of powered components to the "board"
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-11 16:48:44 +00:00
Adrian Conlon
e688411cb9 Refactor memory related code a little to make the hierarchy of classes a little easier to understand.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-04 16:38:57 +00:00
Adrian Conlon
95968cb000 Whoops: missed boost update for LR35902
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-04 13:26:12 +00:00
Adrian Conlon
8ef5d97366 Update boost from 1.65 -> 1.68
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-04 12:58:01 +00:00
Adrian Conlon
9132f2028f Add an "UnusedMemory" class to better allow "gaps" in the memory map.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-03 23:11:48 +00:00