Commit Graph

134 Commits

Author SHA1 Message Date
Adrian Conlon
8dea5746c4 Tidy up stylecopy usage for the LR35902 set of libraries.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 13:11:00 +01:00
Adrian Conlon
7192b5c095 Refactor non-CPU specific parts of the LR35902 fuse test code into it's own library
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 10:34:44 +01:00
Adrian Conlon
304f6c1eca Move register definition information around a little for forthcoming Fuse library ease of refactoring.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 10:19:21 +01:00
Adrian Conlon
d1689dede8 Whoops: Used an 8-bit address mask, instead of a 16-bit mask in the LR35902 fuse test runner.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 10:08:24 +01:00
Adrian Conlon
e4a0aaedc4 Remove need to check object validity in LR35902 fuse tests.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 09:28:49 +01:00
Adrian Conlon
6a883a6252 First pass at LR35902 fuse test runner code analysis
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 09:10:45 +01:00
Adrian Conlon
5c911674a4 Whoops: missed LR35902 TestRunner refactor
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 00:29:42 +01:00
Adrian Conlon
0dc68194f0 Slight tidy up of memory test usage in LR35902 fuse test runner.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-20 23:43:44 +01:00
Adrian Conlon
fc33219f62 Correct TestEvent parsing to correctly recognise parse validity. Fuse test runner now runs!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-20 20:20:25 +01:00
Adrian Conlon
a9a03d946a Refactor LR35902 test runner. Better, but still not working.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-20 19:17:08 +01:00
Adrian Conlon
ed92ce33f6 Starting to port Fuse test runner for LR35902 emulator. Not running yet.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-19 23:59:32 +01:00
Adrian Conlon
b6ced1ddd5 Use "InvalidOperationException" for invalid opcodes in LR35902 emulation (for Fuse test runner)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-19 23:58:26 +01:00
Adrian Conlon
7f30fcf4b2 Whoops: extra blank link crept in.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-14 17:49:35 +01:00
Adrian Conlon
3eb3975e37 Add an initial stab at LR35902 (aka GameBoy) support. Untested and no disassembler though...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-14 17:46:57 +01:00
Adrian Conlon
d0c620e709 Use MEMPTR, rather than an i8080 specific intermediate register.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-14 17:36:03 +01:00
Adrian Conlon
6f79136706 Tidy the Intel Hex file parser a little.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-14 17:35:19 +01:00
Adrian Conlon
b4c37ea006 Add a FindFirstSet implementation to the Chip class.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-14 17:34:23 +01:00
Adrian Conlon
853b6e2b08 Correct some straightforward analysis issues.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-01 00:15:25 +01:00
Adrian Conlon
21472154e0 Further refactoring of the hex loader class to be a little easier to read.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-29 11:50:27 +01:00
Adrian Conlon
7b5af28f5d Refactor the Intel hex file parser. The new parser is isolated and memory efficient.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-29 11:35:08 +01:00
Adrian Conlon
69122eb233 Start adding some LDx tests, mainly to mop up any missing indexed addressing modes.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-21 09:07:58 +01:00
Adrian Conlon
78f2151ca7 Add ANDCC test to MC6809 core
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-10 08:52:32 +01:00
Adrian Conlon
e0188e44cd Tidy a couple of small mistakes in MC6809 test code
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-10 08:51:35 +01:00
Adrian Conlon
6697974711 DAA tests added to MC6809 core
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-10 08:50:24 +01:00
Adrian Conlon
1eb5caed3c Add MUL tests to the MC6809 core.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-09 17:11:49 +01:00
Adrian Conlon
c11143f22d Add more indexed addressing mode tests to the MC6809 core.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-09 10:37:46 +01:00
Adrian Conlon
ef148528b1 Correct a couple of (probably benign) mistakes in the MC6809 core
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-09 10:36:41 +01:00
Adrian Conlon
75f5d17e72 Correct some disassembler addressing mode mistakes.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-08 23:32:45 +01:00
Adrian Conlon
310415512f Add EOR and SEX unit tests
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-08 23:31:55 +01:00
Adrian Conlon
95b6657576 Remove extra step instruction in BleTests
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-08 23:31:03 +01:00
Adrian Conlon
ddc1adc90e A bunch more MC6809 tests added. *Still* not found the issue with floating point numbers!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-03 00:55:01 +01:00
Adrian Conlon
8b3c0801ce Add tests for EXG, TFR and NEG. Also added some undocumented behaviour to EXG and TFR.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-06-02 19:04:27 +01:00
Adrian Conlon
fa16dd1486 Merge branch 'master' of https://github.com/MoleskiCoder/EightBitNet 2019-05-27 10:53:55 +01:00
Adrian Conlon
133fc83e89 Tidy the MC6850 a little, mainly to show that the step method is only called via the clock tick.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-27 10:53:44 +01:00
Adrian Conlon
ebe196d8ed
Update README.md 2019-05-26 11:07:53 +01:00
Adrian Conlon
a78e6cb23c Poke methods shouldn't be returning values.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-15 22:48:34 +01:00
Adrian Conlon
c4d52512b2 Add MC6809 profiler (mainly so I can pin down problem printing numbers)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-07 00:46:30 +01:00
Adrian Conlon
d21afdc1c7 Correct a couple of issues in the disassembler: All disassembler pause, correct PshX PulX decode.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-06 22:26:38 +01:00
Adrian Conlon
72932cf462 Correct a few more style/correctness issues.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-06 11:02:20 +01:00
Adrian Conlon
3d0e4250a0 Update nuget packages.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-06 10:03:11 +01:00
Adrian Conlon
efbd576624 Resurrect the concept of pin level matching. Allows for easier device wiring.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-06 09:58:50 +01:00
Adrian Conlon
0340142282 Correct a number of style issues across the EightBitNet solution.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-06 09:46:23 +01:00
Adrian Conlon
a8849ccf43 MC6809: Change the test board wiring a little to allow the MC6850 to work correctly!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 13:34:31 +01:00
Adrian Conlon
0c69c5d8bb Whoops: missed additional MC6809 unit tests.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:14:29 +01:00
Adrian Conlon
3914a75102 MC6809: Caught out by references versus values again. Fixes JSR/RTS stack operations.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-05 10:14:03 +01:00
Adrian Conlon
34d10352b9 MC6809: Correct transfer and exchange instruction 8/16 bit specification error
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-04 17:35:58 +01:00
Adrian Conlon
430ecd8a7a MC6809: Correct a branching problem due to the use of reference PC object.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-04 17:17:54 +01:00
Adrian Conlon
f8757b3014 MC6809: Correct a couple of disassembler byte dumps.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-04 17:16:56 +01:00
Adrian Conlon
93122aaf1d MC6850: Tie chip stepping to external clock.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-04 15:21:40 +01:00
Adrian Conlon
662c457dd5 Make the MC6809 disassembler hex output lower case, for compatibility with unmanaged code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-04 15:20:52 +01:00