Commit Graph

806 Commits

Author SHA1 Message Date
Adrian Conlon
b4f8c81a94 Use nodiscard, where appropriate and try not to inline virtual methods.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-01-02 11:49:34 +00:00
Adrian Conlon
4ec462e79a Z80: Tidy the M1 activation sequence a little (start moving towards ZX Spectrum memory contention model)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-01-02 11:04:38 +00:00
Adrian Conlon
e0e137415f Z80: Correct links in cycle accurate Z80 documentation.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-01-02 10:14:39 +00:00
Adrian Conlon
e9900424b7 6809: Start moving away from macro based read/modify/write implementation
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-12-28 18:37:21 +00:00
Adrian Conlon
0609ec1364 6809: Correct reset vector handling
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-12-28 15:49:19 +00:00
Adrian Conlon
5ddbd8a5e8 Correct a couple of small oddities in the IntelProcessor InputOutput class.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-12-27 15:46:05 +00:00
Adrian Conlon
778aacaef6 Z80: Better interrupt timing response. 2020-12-27 15:45:14 +00:00
Adrian Conlon
28ae32b8a2 Z80: Whoops: Correct broken CPDR implementation.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-16 17:09:19 +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
c48a91216e Tidy up linux link-time optimisation flags.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-07 12:33:19 +01:00
Adrian Conlon
3d30fe8f3b Damn: Chip.cpp doesn't exist anymore.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-07 12:04:08 +01:00
Adrian Conlon
d956702e05 Whoops: Missed gaming library makefile for linux
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-07 11:59:37 +01:00
Adrian Conlon
23219734da Resurrect linux build (checked on Ubuntu 18.04)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-07 11:49:57 +01:00
Adrian Conlon
1663c7caf3 Refactor the "Game" class a little to allow future refactoring.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-05-03 20:55:58 +01:00
Adrian Conlon
17edcee715 Add a pin activator class to correctly handle "wrapped" pin transitions.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-05-03 20:45:01 +01:00
Adrian Conlon
de800fe9f1 Modify virtual default destructor specification to better match core guidelines.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-05-03 20:29:18 +01:00
Adrian Conlon
5eedbe1225 Make better use of modern c++
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-05-02 11:36:43 +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
7296ff7cce MC6809 tidy a few items and show a "functional" (rather than macro based) rmw routine. 2020-04-06 23:08:11 +01:00
Adrian Conlon
ff02159886 MC6809: Add a cycle eater routine.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-04-04 12:27:26 +01:00
Adrian Conlon
c81204512c MC6809: Correct a couple of cycle count errors.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-04-04 11:39:37 +01:00
Adrian Conlon
d4e6e13fde First stab at cycle accurate 6809
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-04-03 10:13:42 +01:00
Adrian Conlon
dcb809d8f9 Add finer control of memory and IO events in the Z80 implementation. Allows small tidy of the halt condition.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-03-23 21:56:23 +00:00
Adrian Conlon
99f0712801 Simplify Z80 instruction timing a little.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-23 09:37:03 +00:00
Adrian Conlon
0b6a656a45 Add cycle count to the z80 fuse test runner.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-22 09:03:17 +00:00
Adrian Conlon
6285a397ab Tidy 6502 whitespace
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-22 09:02:37 +00:00
Adrian Conlon
e6b26e631c Fix more Z80 instruction timings.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-22 08:32:29 +00:00
Adrian Conlon
255708e0bc Add some more Z80 documentation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-22 08:30:52 +00:00
Adrian Conlon
b89d2cf15c Start correcting Z80 T-cycle counts (DJNZ, JR cc, ADD HL,rp, INC/DEC rp, INC/DEC (HL))
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-16 09:18:34 +00:00
Adrian Conlon
a37601df67 Correct recently introduced IO implementation issues in the 8080 core.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2020-02-13 09:17:52 +00: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
dc37d61797 Tidy up some shared code for the Z80 pushWord vs call timing.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-12-29 13:03:44 +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
feee7ec2e6 Add some more Z80 documentation
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-12-29 01:13:52 +00:00
Adrian Conlon
f9cc29f72e Merge branch 'master' of https://github.com/MoleskiCoder/EightBit 2019-11-19 23:06:19 +00:00
Adrian Conlon
98d9199f19 Whoops: missed power on state of the "RFRSH" pin.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-19 23:06:08 +00:00
Adrian Conlon
cb502bd65d Halt is of course an "output" pin. (So that the halt instruction can work)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-19 23:05:27 +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
43cf7e523b Merge branch 'master' of https://github.com/MoleskiCoder/EightBit
# Conflicts:
#	Z80/src/Z80.cpp
2019-11-16 23:41:04 +00:00
Adrian Conlon
195b0e19bd Correct INT handling on Z80
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-11-16 23:38:51 +00:00