Commit Graph
48 Commits
Author SHA1 Message Date
Adrian Conlon 2fd16b84bb Improve Intel HEX file parsing. Should be OK, according to wikipedia, anyway! 2026-06-16 12:26:56 +01:00
Adrian Conlon 39561437e9 More performance improvements 2026-06-10 17:26:26 +01:00
Adrian Conlon 7d99e8162f Small usage simplification with bus mapper 2026-06-01 11:10:31 +01:00
Adrian Conlon 2d145ec023 No need for bus read/write events with cycle accurate cpu read/write events 2026-05-29 10:17:40 +01:00
Adrian Conlon 110c68a54e Some small consistency changes. Interesting! 2026-05-28 18:01:33 +01:00
Adrian Conlon 04f798fba9 Bus readonly write tests/changes 2026-05-25 13:13:52 +01:00
Adrian Conlon 932bcfd54e Some small consistency tidyups. 2026-05-24 22:48:34 +01:00
Adrian Conlon 291266e4fc Assert that which needs to be checked, but not thrown 2026-05-21 10:00:57 +01:00
Adrian Conlon 741feb4342 Performance change: avoid dropping Bus.Data return values 2026-05-18 17:28:41 +01:00
Adrian Conlon 072a8dd984 Blargg tests run again. Corrected speed issue of MemoryMappings being created too often and bus data being trashed by a write to ROM. 2026-05-17 09:50:12 +01:00
Adrian Conlon 9a011b3c57 Start implementing HD6309. Introduction of 32-bit operations has forced me to rename some of "Word" methods to better indicate size 2026-05-16 21:10:23 +01:00
Adrian Conlon ac200d7f76 Simplify ignored return value handling 2026-05-12 22:21:13 +01:00
Adrian Conlon a8ef9aa7db simplification and unification of build stuff 2026-02-16 11:15:58 +00:00
Adrian Conlon ed6c7968bd Remove effectively impossible to use methods 2025-08-07 09:42:23 +01:00
Adrian Conlon 9d208de9bb Explicitly state order of operations in code, rather than relying upon RAII etc. (for speed. Much faster) 2025-08-04 15:47:26 +01:00
Adrian Conlon c271b28495 Simplify bus addressing 2025-07-05 09:46:59 +01:00
Adrian Conlon 3bbf300e05 Simplify switching processor pin handling 2025-06-22 21:07:02 +01:00
Adrian Conlon 36e983526e Add increment/decrement operations to the Register16 class 2025-05-11 19:24:40 +01:00
Adrian Conlon b461eb97d6 Prefer to use events directly, rather than through "On" methods 2025-03-29 11:31:47 +00:00
Adrian Conlon 3d6b549c76 Turns out using lambdas to control pins is lovely and correct, but terribly slow. Back to a more traditional method. 2025-03-24 20:18:04 +00:00
Adrian Conlon 691b800d1a More .net 9 analysis changes 2024-10-12 12:24:42 +01:00
Adrian Conlon 9aa25fed7e Apply all analysis suggestions 2024-10-12 09:14:29 +01:00
Adrian Conlon f0815d4150 Code analysis corrections. 2024-10-09 22:15:25 +01:00
Adrian Conlon d5c0dcc175 Correct style issues 2024-10-09 20:05:37 +01:00
Adrian Conlon 297f3b8dff Make the intel hex file format parser easier to use. 2024-10-07 09:40:26 +01:00
Adrian Conlon 489b7b21e6 Clarifications of EightBit library 2024-09-18 11:23:18 +01:00
Adrian Conlon d80f340081 Simplfy access to Z80 registers 2024-07-04 08:47:53 +01:00
Adrian Conlon 0c8ed57b0d Add easy to use Register16 assignment methods 2024-07-01 23:27:35 +01:00
Adrian Conlon d8fad7b988 Try to minimise use of "Word" from Register16 2024-06-30 12:30:07 +01:00
Adrian Conlon 6e46c8e47f Rationalise use of "intermediate" Register16 2024-06-29 13:38:55 +01:00
Adrian Conlon 30f8b8a600 Some code simplifications 2024-06-12 16:36:54 +01:00
Adrian Conlon e0235f396e IDE suggestions 2024-05-19 09:07:20 +01:00
Adrian Conlon cd4af67177 Work my way through a bunch of the analysis suggestions.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-06-22 00:00:15 +01:00
Adrian Conlon 2becf0e220 Apply any analysis suggestions.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-12-04 23:23:48 +00:00
Adrian Conlon 6cb3aa37df Correct ROM loading issue in LR35902, by correcting evaluation order in bus write code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-28 00:07:00 +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 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 835703080d Correct Intel hex file loader issue: Incorrect use of "List<>"
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-05-01 22:46:37 +01:00
Adrian Conlon 2a4a067fe4 Add an (untested) implementation of an Intel hex file parser to the EightBit project. Ported directly from the C++ implementation.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2019-04-21 16:53:55 +01:00
Adrian Conlon 27e1c5c9f8 Make Register16 a class, rather than struct. Tricky, but a bit faster than before.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-21 19:58:49 +00:00
Adrian Conlon cf4e633034 Implement some suggestions from the code analysis.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-14 23:51:32 +00:00
Adrian Conlon 63db46a7bc Resurrect the Register16 class. This (or something *very* much like it) is going to be necessary to add a Z80 emulator (reference access to the high/low parts of 16-bit registers).
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-14 23:01:31 +00:00
Adrian Conlon 0e8a530573 More analysis suggested tidy ups.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-06 23:41:56 +00:00
Adrian Conlon 224000c4c7 Not sure if this was a really good idea, but integrated StyleCop rules into the builds. Corrected all except documentation problems.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-04 23:52:21 +00:00
Adrian Conlon d4a35c402c A few small consistency updates:
1) Drop Get/SetPagedByte in favour of normal BusRead/Write
2) Tidy some "using" statements
3) More "expression body" usage, if possible
4) Use field initialisation, rather than construction, if possible
5) Correct IntelProcessor register set/get methods (there were remnants of "copy pasta" code)

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-03 20:29:52 +00:00
Adrian Conlon 3c5e292eae Drop Register16 support (replaced with explicit ushort), add some unit tests (Chip class only at present)
Now runs some instructions before going wrong...

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-03 00:42:55 +00:00
Adrian Conlon 9a06b1743f Port of EightBit library to .Net (unworking!)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-02 15:12:51 +00:00