Adrian Conlon
|
9a0cf0cca8
|
Tidy extra space
|
2024-03-06 22:38:26 +00:00 |
|
Adrian Conlon
|
7bfadb05b4
|
More address mode simplifications
|
2024-03-06 21:30:27 +00:00 |
|
Adrian Conlon
|
ee9d2bd02b
|
More address mode clarification/simplification
|
2024-03-06 18:36:09 +00:00 |
|
Adrian Conlon
|
5cf821acb6
|
More address simplifications
|
2024-03-05 10:29:01 +00:00 |
|
Adrian Conlon
|
ff01ed5f6f
|
A few small simplifications
|
2024-03-05 08:56:15 +00:00 |
|
Adrian Conlon
|
8369e0d976
|
Address calculations are a little easier, if they're always 16-bit
|
2024-03-04 17:07:22 +00:00 |
|
Adrian Conlon
|
92d677f9d0
|
Refactor M6502 address mode related code.
|
2024-03-04 16:58:25 +00:00 |
|
Adrian Conlon
|
2e29233b3b
|
Tidy up of the M6502 page fixup code
|
2024-03-01 23:18:24 +00:00 |
|
Adrian Conlon
|
0a9a1e5d4c
|
Complete all the undocumente M6502 features. Hurrah!
|
2024-01-07 16:20:58 +00:00 |
|
Adrian Conlon
|
72be3238f2
|
Undocumented M6502 instruction implemented
|
2024-01-07 15:52:16 +00:00 |
|
Adrian Conlon
|
86ef340650
|
Tidy arithmetic overflow handling in M6502 core
|
2024-01-07 14:35:12 +00:00 |
|
Adrian Conlon
|
4f4bc5355d
|
Simplification of M6502 flag set/reset code
|
2024-01-07 14:04:41 +00:00 |
|
Adrian Conlon
|
7eca073a6e
|
Make explicit swallow operations.
|
2024-01-07 12:15:11 +00:00 |
|
Adrian Conlon
|
22f337569d
|
Looks like the stray tick in the 6502 step method wasn't stray after all!
|
2024-01-07 11:37:28 +00:00 |
|
Adrian Conlon
|
70c316fd4f
|
Add support for the M6502 undocumented instruction *ANE
|
2024-01-06 23:10:53 +00:00 |
|
Adrian Conlon
|
3ebc321c59
|
Add an implementation of the *JAM instruction that passes HarteTest
|
2024-01-06 22:44:59 +00:00 |
|
Adrian Conlon
|
69a845e2f4
|
How did that "secret" tick in the M6502 implementation get there???
|
2024-01-06 20:53:50 +00:00 |
|
Adrian Conlon
|
9334f6ee93
|
Fix the ATX implementation in the M6502 core
|
2024-01-06 13:10:51 +00:00 |
|
Adrian Conlon
|
bd289ed8fb
|
Add a working M6502 ARR implementation
|
2024-01-06 12:19:02 +00:00 |
|
Adrian Conlon
|
349bada9cc
|
Add undocumented instructions SYA and SXA to M6502 implementation
|
2024-01-06 09:52:17 +00:00 |
|
Adrian Conlon
|
5d24a136a2
|
Correct loads of undocumented M6502 instructions
|
2024-01-05 12:52:27 +00:00 |
|
Adrian Conlon
|
93088b355c
|
M6502: Unify accumulator write page boundary fixup code
|
2023-12-31 14:58:15 +00:00 |
|
Adrian Conlon
|
e4fbeebfa7
|
Correct problem in page boundary condition for M6502.
|
2023-12-31 14:32:16 +00:00 |
|
Adrian Conlon
|
1a5df4c8a7
|
More "noexcept" specifiers added to M6502 class
|
2022-01-24 23:00:25 +00:00 |
|
Adrian Conlon
|
8e0092ec9d
|
Tidy up noexcept specification
|
2022-01-17 19:10:15 +00:00 |
|
Adrian Conlon
|
5522fde9a7
|
Make the flag manipulations in the 6502 implementatin a little more comprehensible
|
2021-12-08 19:47:35 +00:00 |
|
Adrian Conlon
|
fed763a802
|
correct cycle inaccuracies (according to the Harteman tests) in "STA (indirect indexed Y)"
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-10-30 22:40:13 +01:00 |
|
Adrian Conlon
|
eeecb7c719
|
Correct BCD addition handling
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-10-30 21:25:56 +01:00 |
|
Adrian Conlon
|
03b536838b
|
Some constexpr improvements in low level classes.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-10-24 11:12:23 +01:00 |
|
Adrian Conlon
|
760f5d5aec
|
Correct filler memoryRead accesses to use PC() rather than the last location read.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-10-10 21:35:26 +01:00 |
|
Adrian Conlon
|
22506ea56c
|
Extensive change warning: lots of "noexcept" and "constexpr" changes. Not sure if I'll keep all of them, but interesting...
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-07-18 14:28:40 +01:00 |
|
Adrian Conlon
|
2f76e901f9
|
More tidying of include files for VS2019 compatibility (plus more correct!)
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-05-29 12:18:13 +01:00 |
|
Adrian Conlon
|
cab29e3ce4
|
Tidy some code formatting. No functional changes.
|
2021-04-07 21:37:30 +01:00 |
|
Adrian Conlon
|
b1ca06447f
|
Ensure 6502 uses memory rather than bus read/write mechanism
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
|
2021-03-08 16:44:09 +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
|
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
|
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
|
d0467421ff
|
Improve compatibility with .net emulator code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2019-11-09 18:58:23 +00: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
|
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
|
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
|
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
|
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
|
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
|
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 |
|
Adrian Conlon
|
3faec680b0
|
I think this fixes one of my NES issues. The fix-up required for the PC is handled by the fetchByte associated with the BRK instruction.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2019-01-07 01:28:23 +00:00 |
|