Adrian Conlon
|
ab1d84703b
|
Add a skeletal 6809 processor.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-19 00:18:08 +01:00 |
|
Adrian Conlon
|
51e6adc5f4
|
Whoops: remove Rom.h
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-19 00:09:00 +01:00 |
|
Adrian Conlon
|
b0aacce406
|
Tidy header file usage a little.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-18 23:56:16 +01:00 |
|
Adrian Conlon
|
cc64e114a9
|
Start refactoring the processor classes to allow big/little endian processors to be specified.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-17 21:53:49 +01:00 |
|
Adrian Conlon
|
677b9a608e
|
Default a couple of project configuration options.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-17 14:02:00 +01:00 |
|
Adrian Conlon
|
426043f80b
|
Remove some commented lines
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-17 14:00:24 +01:00 |
|
Adrian Conlon
|
ed76038bfa
|
More memptr adjustments
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-17 13:59:59 +01:00 |
|
Adrian Conlon
|
1abe3ae456
|
Adding a couple of const member accessors allows some event handlers to be marked const
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-12 17:08:03 +01:00 |
|
Adrian Conlon
|
256e25e344
|
Tidy up the test suite usage between the 8080 and Z80 processors.
|
2018-08-12 16:30:32 +01:00 |
|
Adrian Conlon
|
228301573e
|
Refactor Z80 block in/out routines.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-12 16:25:30 +01:00 |
|
Adrian Conlon
|
70c70af969
|
Sort out some exception and member initialisation rules.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-11 21:19:19 +01:00 |
|
Adrian Conlon
|
b640da1910
|
Add some noexcept specifications. Just to experiment.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-08-07 23:06:15 +01:00 |
|
Adrian Conlon
|
e40240694f
|
More removal of duplicated code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-24 22:33:02 +01:00 |
|
Adrian Conlon
|
cf311a5113
|
Merge branch 'master' of https://github.com/MoleskiCoder/EightBit
|
2018-06-24 21:09:53 +01:00 |
|
Adrian Conlon
|
cac871cf2b
|
Remove duplicated code (from const definitions) the performance benefit isn't worth the amount of duplicated code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-24 20:58:20 +01:00 |
|
Adrian Conlon
|
feb5e7ad60
|
Simplifications carried over from the Z80 implementation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-23 16:43:05 +01:00 |
|
Adrian Conlon
|
53461e712f
|
Corrected for use with the latest EightBit library.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-17 21:08:01 +01:00 |
|
Adrian Conlon
|
757d8f3c32
|
Reduce code density a little.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-16 10:09:28 +01:00 |
|
Adrian Conlon
|
7d25962f3c
|
Remove commented block.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-16 09:56:16 +01:00 |
|
Adrian Conlon
|
d27b490d4c
|
(Hopefully) fix compilation issue on g++
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-16 09:53:44 +01:00 |
|
Adrian Conlon
|
67487b5b6e
|
Simplify the usage of the register16_t union.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-16 00:55:32 +01:00 |
|
Adrian Conlon
|
89632774a7
|
Bring closer to the Z80 implementation again.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-11 23:02:27 +01:00 |
|
Adrian Conlon
|
7cb5e137f4
|
Some small simplifications of the 16-bit arithmetic operators.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-11 23:01:48 +01:00 |
|
Adrian Conlon
|
2d8c3d4b12
|
Simplify AF usage. Keeps speed roughly as before
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-11 00:50:46 +01:00 |
|
Adrian Conlon
|
fbf098ae00
|
Simplify memory event handlers and ROM recognition a little (bit of speed difference)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-10 22:00:52 +01:00 |
|
Adrian Conlon
|
3e854c7c49
|
Const some more bus/processor usage, and ensure the data bus is a member, not a reference to memory.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-06-10 00:40:56 +01:00 |
|
Adrian Conlon
|
7531f8a24a
|
Remove extra stdafx include (Signal.h)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-05-25 22:38:12 +01:00 |
|
Adrian Conlon
|
116f9961c4
|
Add a higher/lower nibble mask
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-05-25 22:36:10 +01:00 |
|
Adrian Conlon
|
ae177b9b92
|
Remove unnecessary member variable initialisation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-05-04 04:12:25 +01:00 |
|
Adrian Conlon
|
05fd9cf5bb
|
Merge branch 'master' of https://github.com/MoleskiCoder/EightBit
|
2018-05-04 03:39:35 +01:00 |
|
Adrian Conlon
|
740cf01085
|
Slightly better use of vector/array for pixel display.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-05-04 03:38:39 +01:00 |
|
Adrian Conlon
|
3e87f8a191
|
Whoops: correct parity definition
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-05-02 03:31:05 +01:00 |
|
Adrian Conlon
|
0b2c1fa084
|
Gameboy, some random tidy ups.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-05-02 02:47:47 +01:00 |
|
Adrian Conlon
|
9de0f597f6
|
Remove some "tricksy" code from the Z80 emulator chain.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-04-14 09:39:06 +01:00 |
|
Adrian Conlon
|
4b4f6b1a49
|
Some *small* consistency changes. Perhaps some performance gains.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-04-11 23:53:26 +01:00 |
|
Adrian Conlon
|
d818095815
|
MEMPTR is really only a concept of Intel style processors.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-03-18 22:40:23 +00:00 |
|
Adrian Conlon
|
97a121b8d4
|
Unneeded UNREACHABLEs can cause gcc to produce problematic code. TBC
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-03-17 23:34:27 +00:00 |
|
Adrian Conlon
|
dac58b121a
|
More small tidyups in the core emulator set.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-03-12 01:22:28 +00:00 |
|
Adrian Conlon
|
bebc68539b
|
Correct sneaky reference passing in heavily used method. (~205Mhz emulated speed)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-03-10 10:53:11 +00:00 |
|
Adrian Conlon
|
45dc274167
|
Get rid of wrappers for bus access: i.e. make it clearer where the bus is being read/written.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-03-10 01:53:57 +00:00 |
|
Adrian Conlon
|
c6eb68ba13
|
Further return by value, rather than reference.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-02-26 19:47:35 +00:00 |
|
Adrian Conlon
|
adf506a41e
|
Optimisation: Prefer return by value to return by reference. ~10% speed-up!
Just watch a video by Chandler Carruth from 2015, where he talked about C++ optimisers...
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-02-25 19:48:01 +00:00 |
|
Adrian Conlon
|
d34b161255
|
Simplify some build options.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-02-19 23:18:21 +00:00 |
|
Adrian Conlon
|
7f501ff29c
|
Temporarily perhaps, reintroduce post-read and pre-write bus events (for the NES)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-02-07 23:00:38 +00:00 |
|
Adrian Conlon
|
1bf2a9bdfb
|
6502, Disassembly: Some dump methods can be static
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-01-27 10:13:17 +00:00 |
|
Adrian Conlon
|
9524cf4c6b
|
Adjust memory loaders, to allow easier usage (default arguments)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-01-25 22:24:08 +00:00 |
|
Adrian Conlon
|
9124f10008
|
6502: Implement some more undocumented instructions (for the Blargg nes cpu tests)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-01-21 10:45:25 +00:00 |
|
Adrian Conlon
|
b5fee5b5d9
|
Make explicit the notion of page based loads in M6502.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-01-18 21:17:45 +00:00 |
|
Adrian Conlon
|
21bd8a06e6
|
Power on conditions are chip specific and *not* directly related to construction/destruction.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-01-18 17:50:15 +00:00 |
|
Adrian Conlon
|
19aea5244b
|
The vector of instructions was good, but a switch is fastest and probably easiest to read/modify. (Running at 101Mz, 32M instructions per second)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
|
2018-01-17 22:17:08 +00:00 |
|