Commit Graph

921 Commits

Author SHA1 Message Date
Adrian Conlon
254cfbe342 Tidied up pin management to be synchronised with the .Net code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-06 23:55:57 +01:00
Adrian Conlon
e1f22f6903 Make it slightly easier to call individual opcodes from external control.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-31 08:45:04 +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
4f47f3fc4d Simplifying the Z80 halt implementation looks better.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-29 08:51:15 +01:00
Adrian Conlon
2efd53d33a Correct problematic continuation from "halt" on Z80.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-28 23:06:56 +01:00
Adrian Conlon
4b0cf426b9 Add a couple of missing instructions to the disassembler (used by the ZX Spectrum ROM)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-18 17:40:18 +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
5ed01b61d1 Backport fixes from .Net EightBit library to C++
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-16 21:56:48 +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
9d34d7ec3d Add a non-intrinsic version of findFirstSet to the EightBit library.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 11:25:06 +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
36465ce1c8 Refactor the Intel hex file loader into it's own class.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-06 22:44:42 +01:00
Adrian Conlon
ef09696ea2 Add analysis of 6809 instruction set PDFs
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-05 21:43:23 +01:00
Adrian Conlon
4734954932 Get the Linux port up and running again.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-05 21:42:19 +01:00
Adrian Conlon
dca2e1bb8e Bring the C++ code a little closer to the C# code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-02 12:12:04 +01:00
Adrian Conlon
90bfac83d5 Get the M6532 chip implementation to the point of being OK to test.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-27 13:21:35 +01:00
Adrian Conlon
d37f130577 Get the C++ version of the MC6850 synced with the C# version.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-27 10:57:02 +01:00
Adrian Conlon
ca0a98d9a7 MC6809: Correct test board wiring, such the MC6850 can be allowed to work!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 13:35:33 +01:00
Adrian Conlon
f5582df402 Add some more M6502 documentation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:30:33 +01:00
Adrian Conlon
467369d248 MC6850: Add JSR/RTS unit tests
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:30:10 +01:00
Adrian Conlon
3441fd062e Simplify the usage of the MC6850
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:29:41 +01:00
Adrian Conlon
2c23289caa Expose the clock tick as an externally driven action.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:28:24 +01:00
Adrian Conlon
4f8d3287d4 Whoops: Missed one of the update projects. 2019-05-05 10:27:08 +01:00
Adrian Conlon
8f0dbe0dbc i8080: Small board level source layout change, no functional effect
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:26:36 +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
bbf8b2230d Merge branch 'master' of https://github.com/MoleskiCoder/EightBit 2019-03-02 21:59:00 +00: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
ed47983928 Speed up the Intel 8080 disassembler.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-03-02 21:41:06 +00:00
Adrian Conlon
6c5b595529
Update README.md 2019-02-07 00:01:04 +00:00
Adrian Conlon
382ae30d32 Correct a couple of minor mistakes found while working on the .net port.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-03 00:46:49 +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
4d08487513 Merge branch 'master' of https://github.com/MoleskiCoder/EightBit 2019-01-14 08:26:42 +00:00
Adrian Conlon
7f853ec73f Add missing 6502 pin events
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-14 08:26:27 +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
9755a5fcd2 Add the concept of a clocked chip 2019-01-10 22:23:51 +00:00
Adrian Conlon
71daf6aa38 Split Chip class into Device and Chip.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-10 20:44:16 +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
8b187e7614 The clock still has to tick, even while held on RDY low, otherwise cycle timing won't work.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-09 09:05:12 +00:00
Adrian Conlon
a90ca6ba38 Move RDY initialisation to the CPU power-on sequence. Not strictly correct, but OK.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-09 00:33:56 +00:00
Adrian Conlon
87d86bcd84 Whoops: missed unneeded method declaration.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-09 00:08:03 +00:00
Adrian Conlon
01175cf9eb Add support for emulated SYNC and RDY lines. Untested, but feel close.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-08 23:55:27 +00:00
Adrian Conlon
047babbe7c Rearrange the RESET handler for cycle accuracy. Use more of the general interrupt handler, but with "dummy" stack write access.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-08 23:09:52 +00:00
Adrian Conlon
25321e78e7 Now that HALT/RESET/NMI/IRQ and BRK have a unified architecture, I think this wraps up the instruction handler of the 6502.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-01-08 01:32:43 +00:00