Commit Graph

783 Commits

Author SHA1 Message Date
Adrian Conlon
d8e4853971 Reorder the vertical blank raster lines a little to make it easier to use...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 11:36:17 +01:00
Adrian Conlon
74ab3d0f01 Split CPU raster display time from vertical blank time.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 01:46:56 +01:00
Adrian Conlon
7a6e0eafcd Modifications to allow gaming class to be used with Space Invaders emulator
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-29 00:27:45 +01:00
Adrian Conlon
4afe6b6378 For convenience, add a very lightweight SDL wrapper to the EightBit library.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-28 14:29:44 +01:00
Adrian Conlon
ee3ecc682d Add R/W pins to the MC6809 and MOS6502 processors. Hoping it'll ease peripheral development.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-15 12:49:32 +01:00
Adrian Conlon
1ba238bfc7 Add support for RD and WR lines to the Z80 emulator.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-15 01:35:57 +01:00
Adrian Conlon
6d6c95f695 Fix up INT and NMI pin (M1 and IORQ) response a little (still working on ZX81 emulator!)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-14 23:38:47 +01:00
Adrian Conlon
4be4a0603e Refactor the Z80 implementation to:
a) Simplify M1 handling
b) Reuse subtract/add implementations
c) Simplify conditional code blocks.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-14 15:04:46 +01:00
Adrian Conlon
74f70af758 Correct more Z80 disassembler problems (the ZX81 seems to use every instruction available!)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-08 21:27:35 +01:00
Adrian Conlon
3e12ba6200 Sigh: Another Z80 interrupt related bug fix. Avoid a loop when an INT occurs, but interrupts are disabled.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-08 16:28:19 +01:00
Adrian Conlon
0e8813cdf3 Show more state information for debugging output.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-07 23:57:17 +01:00
Adrian Conlon
def89dbcce Correct accidental setting of PC to 0x0001 on power on.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-09-07 11:14:38 +01:00
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