Permalink
Browse files

m6805: refactoring and improvements

* Moved 68705 devices into their own file.
* Made P3, P5 and U3 variants and made them load bootstrap ROMs.
* Implemented EPROM control (write is stubbed out with a logerror).
* Implemented differences for open drain I/O ports.

(nw) Base device with peripherals should really derive from the 6805
device directly, not the 68705 devices, as I/O ports are present on mask
devices (e.g. 6805P2).  All drivers and devices that were using
M68705_NEW have been changed to M68705P5 - someone who knows the drivers
better should fix them up.
  • Loading branch information...
1 parent 9d60250 commit 02d69ca65ab9bcdd3ac65ee5ba373886e07bc35f @cuavas cuavas committed Jan 12, 2017
View
@@ -1335,7 +1335,10 @@ if (CPUS["M6805"]~=null) then
files {
MAME_DIR .. "src/devices/cpu/m6805/m6805.cpp",
MAME_DIR .. "src/devices/cpu/m6805/m6805.h",
+ MAME_DIR .. "src/devices/cpu/m6805/6805defs.h",
MAME_DIR .. "src/devices/cpu/m6805/6805ops.hxx",
+ MAME_DIR .. "src/devices/cpu/m6805/m68705.cpp",
+ MAME_DIR .. "src/devices/cpu/m6805/m68705.h",
}
end
@@ -14,7 +14,7 @@
#include "emu.h"
#include "a2bus.h"
#include "machine/6821pia.h"
-#include "cpu/m6805/m6805.h"
+#include "cpu/m6805/m68705.h"
//**************************************************************************
// TYPE DEFINITIONS
Oops, something went wrong.

3 comments on commit 02d69ca

@LnmVolbo

At src/devices/cpu/m6805/m68705.cpp, line 19, there is a copy and paste error on the ROM_LOAD().

According to this reference: http://matthieu.benoit.free.fr/pdf/MC68705U3_Bootstrap_ROM_Listing.pdf

The length of the m68705u3 bootstrap is 0x0078, not 0x0073.

The crc and sha1 values indicated on line 19 are consistent for the m68705u3 bootstrap ROM with a size of 0x0078.

The m68705p3 and m68705p5 bootstrap sizes are correct at 0x0073, from this reference: http://matthieu.benoit.free.fr/pdf/MC68705P5_Bootstrap_ROM_Listing.pdf

Another issue is that the m68705p3 and m68705u3 bootstrap ROMs are not appearing in the MAME .xml output.

@Tafoid
Contributor
Tafoid commented on 02d69ca Jan 12, 2017

Another issue is that the m68705p3 and m68705u3 bootstrap ROMs are not appearing in the MAME .xml output.

Actually, -listxml will only list a device that is hooked up/used in a driver or machine application.
There are dozens of devices in the source which are created and not used (this might be the only ROM holding exception) which are not listed in XML output because according to MAME they are not called upon so they don't exist.

@Tafoid
Contributor
Tafoid commented on 02d69ca Jan 12, 2017

As far as regressions, I've noted the following:
bublbobl.cpp: tokio, tokioo, tokiou - Showing"BAD HW"
tokio-diff
tokioo-diff
tokiou-diff

lsasquad.cpp: daikaiju - Showing black screen
daikaiju-diff

Please sign in to comment.