summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-07-22 06:14:55 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-07-22 06:14:55 +0000
commit5d7e1fcc62a7f9dd5441eaccbc274f9327efcf00 (patch)
tree59a6e5c3c090f1f83dfd20359ab321fb69713e00 /src/mess
parentc4e9058ee26841baae4c0fd51e081949747d5f48 (diff)
Cleanups and version bump
Diffstat (limited to 'src/mess')
-rw-r--r--src/mess/drivers/a2600.c2
-rw-r--r--src/mess/drivers/a310.c70
-rw-r--r--src/mess/drivers/a7800.c4
-rw-r--r--src/mess/drivers/abc1600.c2
-rw-r--r--src/mess/drivers/abc80x.c50
-rw-r--r--src/mess/drivers/ace.c2
-rw-r--r--src/mess/drivers/alphatro.c2
-rw-r--r--src/mess/drivers/altos5.c6
-rw-r--r--src/mess/drivers/amiga.c58
-rw-r--r--src/mess/drivers/ampro.c4
-rw-r--r--src/mess/drivers/amstrad.c4
-rw-r--r--src/mess/drivers/apf.c8
-rw-r--r--src/mess/drivers/apogee.c2
-rw-r--r--src/mess/drivers/apple2.c10
-rw-r--r--src/mess/drivers/applix.c2
-rw-r--r--src/mess/drivers/at.c4
-rw-r--r--src/mess/drivers/atom.c4
-rw-r--r--src/mess/drivers/bebox.c2
-rw-r--r--src/mess/drivers/bml3.c2
-rw-r--r--src/mess/drivers/bullet.c2
-rw-r--r--src/mess/drivers/c80.c2
-rw-r--r--src/mess/drivers/cc40.c28
-rw-r--r--src/mess/drivers/coco12.c2
-rw-r--r--src/mess/drivers/coco3.c2
-rw-r--r--src/mess/drivers/compis.c2
-rw-r--r--src/mess/drivers/crvision.c2
-rw-r--r--src/mess/drivers/cybiko.c6
-rw-r--r--src/mess/drivers/d6800.c2
-rw-r--r--src/mess/drivers/dragon.c2
-rw-r--r--src/mess/drivers/einstein.c2
-rw-r--r--src/mess/drivers/ep64.c2
-rw-r--r--src/mess/drivers/esq5505.c2
-rw-r--r--src/mess/drivers/exelv.c53
-rw-r--r--src/mess/drivers/fanucspmg.c38
-rw-r--r--src/mess/drivers/fb01.c3
-rw-r--r--src/mess/drivers/fc100.c2
-rw-r--r--src/mess/drivers/fmtowns.c4
-rw-r--r--src/mess/drivers/fp1100.c22
-rw-r--r--src/mess/drivers/galaxy.c8
-rw-r--r--src/mess/drivers/gimix.c14
-rw-r--r--src/mess/drivers/hprot1.c30
-rw-r--r--src/mess/drivers/interact.c2
-rw-r--r--src/mess/drivers/iq151.c2
-rw-r--r--src/mess/drivers/isbc.c6
-rw-r--r--src/mess/drivers/kim1.c2
-rw-r--r--src/mess/drivers/lviv.c2
-rw-r--r--src/mess/drivers/mac.c4
-rw-r--r--src/mess/drivers/mbc200.c12
-rw-r--r--src/mess/drivers/mbee.c4
-rw-r--r--src/mess/drivers/mc1000.c2
-rw-r--r--src/mess/drivers/mikro80.c2
-rw-r--r--src/mess/drivers/mikrosha.c2
-rw-r--r--src/mess/drivers/minicom.c90
-rw-r--r--src/mess/drivers/mmd1.c8
-rw-r--r--src/mess/drivers/ms0515.c12
-rw-r--r--src/mess/drivers/ms9540.c2
-rw-r--r--src/mess/drivers/msx.c42
-rw-r--r--src/mess/drivers/mtx.c2
-rw-r--r--src/mess/drivers/myb3k.c2
-rw-r--r--src/mess/drivers/mz2000.c2
-rw-r--r--src/mess/drivers/mz700.c2
-rw-r--r--src/mess/drivers/nascom1.c2
-rw-r--r--src/mess/drivers/nes.c2
-rw-r--r--src/mess/drivers/newbrain.c2
-rw-r--r--src/mess/drivers/next.c2
-rw-r--r--src/mess/drivers/ng_aes.c6
-rw-r--r--src/mess/drivers/ondra.c2
-rw-r--r--src/mess/drivers/orao.c2
-rw-r--r--src/mess/drivers/oric.c58
-rw-r--r--src/mess/drivers/orion.c6
-rw-r--r--src/mess/drivers/osbexec.c52
-rw-r--r--src/mess/drivers/osborne1.c52
-rw-r--r--src/mess/drivers/partner.c2
-rw-r--r--src/mess/drivers/pasopia7.c2
-rw-r--r--src/mess/drivers/pc1500.c4
-rw-r--r--src/mess/drivers/pc1512.c8
-rw-r--r--src/mess/drivers/pc8801.c2
-rw-r--r--src/mess/drivers/pcm.c2
-rw-r--r--src/mess/drivers/pecom.c2
-rw-r--r--src/mess/drivers/pet.c2
-rw-r--r--src/mess/drivers/phc25.c2
-rw-r--r--src/mess/drivers/poisk1.c12
-rw-r--r--src/mess/drivers/ptcsol.c4
-rw-r--r--src/mess/drivers/pve500.c16
-rw-r--r--src/mess/drivers/px4.c2
-rw-r--r--src/mess/drivers/pyl601.c4
-rw-r--r--src/mess/drivers/ql.c2
-rw-r--r--src/mess/drivers/qx10.c2
-rw-r--r--src/mess/drivers/radio86.c2
-rw-r--r--src/mess/drivers/rainbow.c202
-rw-r--r--src/mess/drivers/samcoupe.c2
-rw-r--r--src/mess/drivers/saturn.c2
-rw-r--r--src/mess/drivers/sdk85.c10
-rw-r--r--src/mess/drivers/sdk86.c8
-rw-r--r--src/mess/drivers/selz80.c8
-rw-r--r--src/mess/drivers/sg1000.c2
-rw-r--r--src/mess/drivers/sorcerer.c4
-rw-r--r--src/mess/drivers/special.c2
-rw-r--r--src/mess/drivers/spectrum.c2
-rw-r--r--src/mess/drivers/sun3.c58
-rw-r--r--src/mess/drivers/super80.c2
-rw-r--r--src/mess/drivers/svi318.c2
-rw-r--r--src/mess/drivers/tecnbras.c32
-rw-r--r--src/mess/drivers/ti630.c88
-rw-r--r--src/mess/drivers/tiki100.c2
-rw-r--r--src/mess/drivers/trs80.c2
-rw-r--r--src/mess/drivers/ut88.c4
-rw-r--r--src/mess/drivers/vt100.c2
-rw-r--r--src/mess/drivers/vtech1.c4
-rw-r--r--src/mess/drivers/wicat.c4
-rw-r--r--src/mess/drivers/x1.c8
-rw-r--r--src/mess/drivers/x1twin.c2
-rw-r--r--src/mess/drivers/x68k.c4
-rw-r--r--src/mess/drivers/xerox820.c2
-rw-r--r--src/mess/drivers/z9001.c2
-rw-r--r--src/mess/drivers/zorba.c4
-rw-r--r--src/mess/drivers/zx.c2
-rw-r--r--src/mess/machine/amstrad.c2
-rw-r--r--src/mess/machine/apollo.c28
-rw-r--r--src/mess/machine/apple1.c2
-rw-r--r--src/mess/machine/apple2.c4
-rw-r--r--src/mess/machine/apple3.c15
-rw-r--r--src/mess/machine/beta.c2
-rw-r--r--src/mess/machine/dec_lk201.c29
-rw-r--r--src/mess/machine/genpc.c2
-rw-r--r--src/mess/machine/hp48.c6
-rw-r--r--src/mess/machine/msx.c1
-rw-r--r--src/mess/machine/msx_matsushita.c1
-rw-r--r--src/mess/machine/msx_s1985.c1
-rw-r--r--src/mess/machine/msx_switched.c1
-rw-r--r--src/mess/machine/msx_systemflags.c1
-rw-r--r--src/mess/machine/nes.c2
-rw-r--r--src/mess/machine/radio86.c1
-rw-r--r--src/mess/machine/rmnimbus.c1
-rw-r--r--src/mess/machine/super80.c14
-rw-r--r--src/mess/tools/castool/main.c2
-rw-r--r--src/mess/tools/imgtool/modules/hp48.c721
-rw-r--r--src/mess/video/a7800.c18
-rw-r--r--src/mess/video/abc1600.c10
-rw-r--r--src/mess/video/abc806.c2
-rw-r--r--src/mess/video/bbc.c4
-rw-r--r--src/mess/video/k1ge.c4
-rw-r--r--src/mess/video/pc1512.c2
-rw-r--r--src/mess/video/pc_t1t.c4
-rw-r--r--src/mess/video/rmnimbus.c4
-rw-r--r--src/mess/video/vtvideo.c49
146 files changed, 1155 insertions, 1170 deletions
diff --git a/src/mess/drivers/a2600.c b/src/mess/drivers/a2600.c
index 6bc798501a3..a165be50b88 100644
--- a/src/mess/drivers/a2600.c
+++ b/src/mess/drivers/a2600.c
@@ -1949,7 +1949,7 @@ static MACHINE_CONFIG_START( a2600, a2600_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(a26_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
- MCFG_CASSETTE_INTERFACE("a2600_cass")
+ MCFG_CASSETTE_INTERFACE("a2600_cass")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/a310.c b/src/mess/drivers/a310.c
index 98e9d59e85d..f53a91ddb04 100644
--- a/src/mess/drivers/a310.c
+++ b/src/mess/drivers/a310.c
@@ -88,7 +88,7 @@ public:
DECLARE_DRIVER_INIT(a310);
virtual void machine_start();
virtual void machine_reset();
- DECLARE_INPUT_CHANGED_MEMBER(key_stroke);
+ DECLARE_INPUT_CHANGED_MEMBER(key_stroke);
DECLARE_FLOPPY_FORMATS( floppy_formats );
@@ -166,8 +166,8 @@ ADDRESS_MAP_END
INPUT_CHANGED_MEMBER(a310_state::key_stroke)
{
- UINT8 row_val = (UINT8)(FPTR)(param) >> 4;
- UINT8 col_val = (UINT8)(FPTR)(param) & 0xf;
+ UINT8 row_val = (UINT8)(FPTR)(param) >> 4;
+ UINT8 col_val = (UINT8)(FPTR)(param) & 0xf;
if(newval && !oldval)
m_kart->send_keycode_down(row_val,col_val);
@@ -214,7 +214,7 @@ static INPUT_PORTS_START( a310 )
PORT_BIT(0x80, 0x00, IPT_KEYBOARD) PORT_NAME("TAB") PORT_CODE(KEYCODE_TAB) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x26) PORT_IMPULSE(1)
PORT_START("key2") /* KEY ROW 2 */
- PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("q Q") PORT_CODE(KEYCODE_Q) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x27) PORT_IMPULSE(1)
+ PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("q Q") PORT_CODE(KEYCODE_Q) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x27) PORT_IMPULSE(1)
PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("w W") PORT_CODE(KEYCODE_W) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x28) PORT_IMPULSE(1)
PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("e E") PORT_CODE(KEYCODE_E) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x29) PORT_IMPULSE(1)
PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("r R") PORT_CODE(KEYCODE_R) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x2a) PORT_IMPULSE(1)
@@ -266,43 +266,43 @@ static INPUT_PORTS_START( a310 )
PORT_START("key7") /* KEY ROW 7 */
PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("LINE FEED")
PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("SPACE") PORT_CODE(KEYCODE_SPACE) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x5f) PORT_IMPULSE(1)
- PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("- (KP)") PORT_CODE(KEYCODE_MINUS_PAD)
- PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME(", (KP)") PORT_CODE(KEYCODE_PLUS_PAD)
+ PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("- (KP)") PORT_CODE(KEYCODE_MINUS_PAD)
+ PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME(", (KP)") PORT_CODE(KEYCODE_PLUS_PAD)
PORT_BIT(0x10, 0x00, IPT_KEYBOARD) PORT_NAME("ENTER (KP)") PORT_CODE(KEYCODE_ENTER_PAD)
PORT_BIT(0x20, 0x00, IPT_KEYBOARD) PORT_NAME(". (KP)") PORT_CODE(KEYCODE_DEL_PAD)
PORT_BIT(0x40, 0x00, IPT_KEYBOARD) PORT_NAME("0 (KP)") PORT_CODE(KEYCODE_0_PAD)
PORT_BIT(0x80, 0x00, IPT_KEYBOARD) PORT_NAME("1 (KP)") PORT_CODE(KEYCODE_1_PAD)
PORT_START("key8") /* KEY ROW 8 */
- PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("2 (KP)") PORT_CODE(KEYCODE_2_PAD)
- PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("3 (KP)") PORT_CODE(KEYCODE_3_PAD)
- PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("4 (KP)") PORT_CODE(KEYCODE_4_PAD)
- PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("5 (KP)") PORT_CODE(KEYCODE_5_PAD)
- PORT_BIT(0x10, 0x00, IPT_KEYBOARD) PORT_NAME("6 (KP)") PORT_CODE(KEYCODE_6_PAD)
- PORT_BIT(0x20, 0x00, IPT_KEYBOARD) PORT_NAME("7 (KP)") PORT_CODE(KEYCODE_7_PAD)
- PORT_BIT(0x40, 0x00, IPT_KEYBOARD) PORT_NAME("8 (KP)") PORT_CODE(KEYCODE_8_PAD)
- PORT_BIT(0x80, 0x00, IPT_KEYBOARD) PORT_NAME("9 (KP)") PORT_CODE(KEYCODE_9_PAD)
-
- PORT_START("key9")
- PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("HOME") PORT_CODE(KEYCODE_HOME) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x20) PORT_IMPULSE(1)
- PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("*") PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x24) PORT_IMPULSE(1) // (KP?)
- PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("#") PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x25) PORT_IMPULSE(1) // (KP?)
-
- PORT_START("keya")
- PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x01) PORT_IMPULSE(1)
- PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x02) PORT_IMPULSE(1)
- PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x03) PORT_IMPULSE(1)
- PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x04) PORT_IMPULSE(1)
- PORT_BIT(0x10, 0x00, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x05) PORT_IMPULSE(1)
- PORT_BIT(0x20, 0x00, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x06) PORT_IMPULSE(1)
- PORT_BIT(0x40, 0x00, IPT_KEYBOARD) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x07) PORT_IMPULSE(1)
- PORT_BIT(0x80, 0x00, IPT_KEYBOARD) PORT_NAME("F8") PORT_CODE(KEYCODE_F8) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x08) PORT_IMPULSE(1)
-
- PORT_START("keyb")
- PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("F9") PORT_CODE(KEYCODE_F9) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x09) PORT_IMPULSE(1)
- PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("F10") PORT_CODE(KEYCODE_F10) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x0a) PORT_IMPULSE(1)
- PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("F11") PORT_CODE(KEYCODE_F11) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x0b) PORT_IMPULSE(1)
- PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("F12") PORT_CODE(KEYCODE_F12) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x0c) PORT_IMPULSE(1)
+ PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("2 (KP)") PORT_CODE(KEYCODE_2_PAD)
+ PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("3 (KP)") PORT_CODE(KEYCODE_3_PAD)
+ PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("4 (KP)") PORT_CODE(KEYCODE_4_PAD)
+ PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("5 (KP)") PORT_CODE(KEYCODE_5_PAD)
+ PORT_BIT(0x10, 0x00, IPT_KEYBOARD) PORT_NAME("6 (KP)") PORT_CODE(KEYCODE_6_PAD)
+ PORT_BIT(0x20, 0x00, IPT_KEYBOARD) PORT_NAME("7 (KP)") PORT_CODE(KEYCODE_7_PAD)
+ PORT_BIT(0x40, 0x00, IPT_KEYBOARD) PORT_NAME("8 (KP)") PORT_CODE(KEYCODE_8_PAD)
+ PORT_BIT(0x80, 0x00, IPT_KEYBOARD) PORT_NAME("9 (KP)") PORT_CODE(KEYCODE_9_PAD)
+
+ PORT_START("key9")
+ PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("HOME") PORT_CODE(KEYCODE_HOME) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x20) PORT_IMPULSE(1)
+ PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("*") PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x24) PORT_IMPULSE(1) // (KP?)
+ PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("#") PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x25) PORT_IMPULSE(1) // (KP?)
+
+ PORT_START("keya")
+ PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x01) PORT_IMPULSE(1)
+ PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x02) PORT_IMPULSE(1)
+ PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x03) PORT_IMPULSE(1)
+ PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x04) PORT_IMPULSE(1)
+ PORT_BIT(0x10, 0x00, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x05) PORT_IMPULSE(1)
+ PORT_BIT(0x20, 0x00, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x06) PORT_IMPULSE(1)
+ PORT_BIT(0x40, 0x00, IPT_KEYBOARD) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x07) PORT_IMPULSE(1)
+ PORT_BIT(0x80, 0x00, IPT_KEYBOARD) PORT_NAME("F8") PORT_CODE(KEYCODE_F8) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x08) PORT_IMPULSE(1)
+
+ PORT_START("keyb")
+ PORT_BIT(0x01, 0x00, IPT_KEYBOARD) PORT_NAME("F9") PORT_CODE(KEYCODE_F9) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x09) PORT_IMPULSE(1)
+ PORT_BIT(0x02, 0x00, IPT_KEYBOARD) PORT_NAME("F10") PORT_CODE(KEYCODE_F10) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x0a) PORT_IMPULSE(1)
+ PORT_BIT(0x04, 0x00, IPT_KEYBOARD) PORT_NAME("F11") PORT_CODE(KEYCODE_F11) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x0b) PORT_IMPULSE(1)
+ PORT_BIT(0x08, 0x00, IPT_KEYBOARD) PORT_NAME("F12") PORT_CODE(KEYCODE_F12) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x0c) PORT_IMPULSE(1)
// PORT_BIT(0x10, 0x00, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x05) PORT_IMPULSE(1)
// PORT_BIT(0x20, 0x00, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x06) PORT_IMPULSE(1)
// PORT_BIT(0x40, 0x00, IPT_KEYBOARD) PORT_NAME("F7") PORT_CODE(KEYCODE_F7) PORT_CHANGED_MEMBER(DEVICE_SELF, a310_state, key_stroke, 0x07) PORT_IMPULSE(1)
diff --git a/src/mess/drivers/a7800.c b/src/mess/drivers/a7800.c
index 33c6fc3da3b..745ff35c87c 100644
--- a/src/mess/drivers/a7800.c
+++ b/src/mess/drivers/a7800.c
@@ -83,8 +83,8 @@
2014/03/25 Mike Saarna Fixed Riot Timer
- 2014/05/06 Mike Saarna/Robert Tuccitto Brought initial Maria cycle counts
-+ inline from measurements taken with logic analyzer and tests.
+ 2014/05/06 Mike Saarna/Robert Tuccitto Brought initial Maria cycle counts
++ inline from measurements taken with logic analyzer and tests.
***************************************************************************/
#include "emu.h"
diff --git a/src/mess/drivers/abc1600.c b/src/mess/drivers/abc1600.c
index 4cb4ab2b9ca..2279a3019c1 100644
--- a/src/mess/drivers/abc1600.c
+++ b/src/mess/drivers/abc1600.c
@@ -880,7 +880,7 @@ static MACHINE_CONFIG_START( abc1600, abc1600_state )
MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_dtr))
MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE(RS232_B_TAG, rs232_port_device, write_rts))
MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
- MCFG_Z80DART_OUT_INT_CB(INPUTLINE(MC68008P8_TAG, M68K_IRQ_5)) // shared with SCC
+ MCFG_Z80DART_OUT_INT_CB(INPUTLINE(MC68008P8_TAG, M68K_IRQ_5)) // shared with SCC
MCFG_DEVICE_ADD(Z8530B1_TAG, SCC8530, XTAL_64MHz/16)
MCFG_Z8530_INTRQ_CALLBACK(INPUTLINE(MC68008P8_TAG, M68K_IRQ_5))
diff --git a/src/mess/drivers/abc80x.c b/src/mess/drivers/abc80x.c
index 3ac63f9f023..d721fc9bb2f 100644
--- a/src/mess/drivers/abc80x.c
+++ b/src/mess/drivers/abc80x.c
@@ -1447,36 +1447,36 @@ ROM_START( abc806 )
ROM_REGION( 0x200, "v50", 0 )
ROM_LOAD( "60 90242-01.7e", 0x000, 0x200, CRC(788a56d8) SHA1(d81e55cdddc36f5d41bf0a33104c75fac590b764) ) // "V50" 7621 (82S131), HR vertical timing 50Hz
-
+
//ROM_REGION( 0x200, "v60", 0 )
//ROM_LOAD( "60 90319-01.7e", 0x000, 0x200, NO_DUMP ) // "V60" 7621 (82S131), HR vertical timing 60Hz
ROM_REGION( 0x400, "att_hand", 0 )
/*
- 1 E6P (RAD A8)
- 2 THP (chargen A12)
- 3 CCLK
- 4 B0 (TX ATT 6)
- 5 B1 (TX ATT 7)
- 6 CONDP (40/80)
- 7 B2 (TX ATT 0)
- 8 B3 (TX ATT 1)
- 9 ULP (RAD A5)
- 10 FLP (RAD A6)
- 11 F2P (RTF)
- 12 GND
- 13 F3P (GTF)
- 14 F4P (BTF)
- 15 B5P (RTB)
- 16 B4 (TX ATT 2)
- 17 B5 (TX ATT 3)
- 18 B6 (TX ATT 4)
- 19 B7 (TX ATT 5)
- 20 LP (*DEN+3)
- 21 B6P (GTB)
- 22 B7P (BTB)
- 23 E5P (RAD A7)
- 24 Vcc
+ 1 E6P (RAD A8)
+ 2 THP (chargen A12)
+ 3 CCLK
+ 4 B0 (TX ATT 6)
+ 5 B1 (TX ATT 7)
+ 6 CONDP (40/80)
+ 7 B2 (TX ATT 0)
+ 8 B3 (TX ATT 1)
+ 9 ULP (RAD A5)
+ 10 FLP (RAD A6)
+ 11 F2P (RTF)
+ 12 GND
+ 13 F3P (GTF)
+ 14 F4P (BTF)
+ 15 B5P (RTB)
+ 16 B4 (TX ATT 2)
+ 17 B5 (TX ATT 3)
+ 18 B6 (TX ATT 4)
+ 19 B7 (TX ATT 5)
+ 20 LP (*DEN+3)
+ 21 B6P (GTB)
+ 22 B7P (BTB)
+ 23 E5P (RAD A7)
+ 24 Vcc
*/
ROM_LOAD( "60 90225-01.11c", 0x000, 0x400, NO_DUMP ) // "VIDEO ATTRIBUTE" 40033A (?)
diff --git a/src/mess/drivers/ace.c b/src/mess/drivers/ace.c
index 226417c2fbe..249e243ad7e 100644
--- a/src/mess/drivers/ace.c
+++ b/src/mess/drivers/ace.c
@@ -698,7 +698,7 @@ static MACHINE_CONFIG_START( ace, ace_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(ace_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
-
+
MCFG_SNAPSHOT_ADD("snapshot", ace_state, ace, "ace", 1)
MCFG_DEVICE_ADD(I8255_TAG, I8255A, 0)
diff --git a/src/mess/drivers/alphatro.c b/src/mess/drivers/alphatro.c
index acc2fcc9f88..bfce849a8b3 100644
--- a/src/mess/drivers/alphatro.c
+++ b/src/mess/drivers/alphatro.c
@@ -484,7 +484,7 @@ static MACHINE_CONFIG_START( alphatro, alphatro_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("alphatro_cass")
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_c", alphatro_state, timer_c, attotime::from_hz(4800))
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_p", alphatro_state, timer_p, attotime::from_hz(40000))
diff --git a/src/mess/drivers/altos5.c b/src/mess/drivers/altos5.c
index cc9e306ea8d..6f852ed583d 100644
--- a/src/mess/drivers/altos5.c
+++ b/src/mess/drivers/altos5.c
@@ -419,9 +419,9 @@ static MACHINE_CONFIG_START( altos5, altos5_state )
MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_8MHz / 2)
MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(DEVWRITELINE("z80sio", z80dart_device, rxtxcb_w)) // SIO Ch B
- MCFG_Z80CTC_ZC1_CB(WRITELINE(altos5_state, ctc_z1_w)) // Z80DART Ch A, SIO Ch A
- MCFG_Z80CTC_ZC2_CB(DEVWRITELINE("z80dart", z80dart_device, rxtxcb_w)) // Z80DART Ch B
+ MCFG_Z80CTC_ZC0_CB(DEVWRITELINE("z80sio", z80dart_device, rxtxcb_w)) // SIO Ch B
+ MCFG_Z80CTC_ZC1_CB(WRITELINE(altos5_state, ctc_z1_w)) // Z80DART Ch A, SIO Ch A
+ MCFG_Z80CTC_ZC2_CB(DEVWRITELINE("z80dart", z80dart_device, rxtxcb_w)) // Z80DART Ch B
MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("z80sio", z80dart_device, rxb_w))
diff --git a/src/mess/drivers/amiga.c b/src/mess/drivers/amiga.c
index 4a9516eda80..a0ea915b153 100644
--- a/src/mess/drivers/amiga.c
+++ b/src/mess/drivers/amiga.c
@@ -405,87 +405,87 @@ WRITE_LINE_MEMBER( cdtv_state::tpi_int_w )
// ocs chipset (agnus with support for 512k or 1mb chip ram, denise)
DRIVER_INIT_MEMBER( a1000_state, pal )
{
- m_agnus_id = AGNUS_PAL; // 8367
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_PAL; // 8367
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( a1000_state, ntsc )
{
- m_agnus_id = AGNUS_NTSC; // 8361
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_NTSC; // 8361
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( a2000_state, pal )
{
- m_agnus_id = AGNUS_PAL; // 8371 (later versions 8372A)
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_PAL; // 8371 (later versions 8372A)
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( a2000_state, ntsc )
{
- m_agnus_id = AGNUS_NTSC; // 8370 (later versions 8372A)
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_NTSC; // 8370 (later versions 8372A)
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( a500_state, pal )
{
- m_agnus_id = AGNUS_PAL; // 8371 (later versions 8372A)
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_PAL; // 8371 (later versions 8372A)
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( a500_state, ntsc )
{
- m_agnus_id = AGNUS_NTSC; // 8370 (later versions 8372A)
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_NTSC; // 8370 (later versions 8372A)
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( cdtv_state, pal )
{
- m_agnus_id = AGNUS_HR_PAL; // 8372A
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_HR_PAL; // 8372A
+ m_denise_id = DENISE; // 8362
}
DRIVER_INIT_MEMBER( cdtv_state, ntsc )
{
- m_agnus_id = AGNUS_HR_NTSC; // 8372A
- m_denise_id = DENISE; // 8362
+ m_agnus_id = AGNUS_HR_NTSC; // 8372A
+ m_denise_id = DENISE; // 8362
}
// ecs chipset (agnus with support for 2mb chip ram, super denise)
DRIVER_INIT_MEMBER( a3000_state, pal )
{
- m_agnus_id = AGNUS_HR_PAL_NEW; // 8372B (early versions: 8372AB)
- m_denise_id = DENISE_HR; // 8373
+ m_agnus_id = AGNUS_HR_PAL_NEW; // 8372B (early versions: 8372AB)
+ m_denise_id = DENISE_HR; // 8373
}
DRIVER_INIT_MEMBER( a3000_state, ntsc )
{
- m_agnus_id = AGNUS_HR_NTSC_NEW; // 8372B (early versions: 8372AB)
- m_denise_id = DENISE_HR; // 8373
+ m_agnus_id = AGNUS_HR_NTSC_NEW; // 8372B (early versions: 8372AB)
+ m_denise_id = DENISE_HR; // 8373
}
DRIVER_INIT_MEMBER( a500p_state, pal )
{
- m_agnus_id = AGNUS_HR_PAL; // 8375 (390544-01)
- m_denise_id = DENISE_HR; // 8373
+ m_agnus_id = AGNUS_HR_PAL; // 8375 (390544-01)
+ m_denise_id = DENISE_HR; // 8373
}
DRIVER_INIT_MEMBER( a500p_state, ntsc )
{
- m_agnus_id = AGNUS_HR_NTSC; // 8375 (390544-02)
- m_denise_id = DENISE_HR; // 8373
+ m_agnus_id = AGNUS_HR_NTSC; // 8375 (390544-02)
+ m_denise_id = DENISE_HR; // 8373
}
DRIVER_INIT_MEMBER( a600_state, pal )
{
- m_agnus_id = AGNUS_HR_PAL; // 8375 (390544-01)
- m_denise_id = DENISE_HR; // 8373
+ m_agnus_id = AGNUS_HR_PAL; // 8375 (390544-01)
+ m_denise_id = DENISE_HR; // 8373
}
DRIVER_INIT_MEMBER( a600_state, ntsc )
{
- m_agnus_id = AGNUS_HR_NTSC; // 8375 (390544-02)
- m_denise_id = DENISE_HR; // 8373
+ m_agnus_id = AGNUS_HR_NTSC; // 8375 (390544-02)
+ m_denise_id = DENISE_HR; // 8373
}
// aga chipset (alice and lisa)
@@ -2029,7 +2029,7 @@ ROM_END
ROM_START( cd32 )
ROM_REGION32_BE(0x100000, "kickstart", 0)
-// ROM_LOAD16_WORD("391640-03.u6a", 0x000000, 0x100000, CRC(a4fbc94a) SHA1(816ce6c5077875850c7d43452230a9ba3a2902db)) // todo: this is the real dump
+// ROM_LOAD16_WORD("391640-03.u6a", 0x000000, 0x100000, CRC(a4fbc94a) SHA1(816ce6c5077875850c7d43452230a9ba3a2902db)) // todo: this is the real dump
ROM_LOAD16_WORD("391640-03.u6a", 0x000000, 0x100000, CRC(d3837ae4) SHA1(06807db3181637455f4d46582d9972afec8956d9))
ROM_END
diff --git a/src/mess/drivers/ampro.c b/src/mess/drivers/ampro.c
index 0036d40cef4..1ddb33d25bb 100644
--- a/src/mess/drivers/ampro.c
+++ b/src/mess/drivers/ampro.c
@@ -166,8 +166,8 @@ static MACHINE_CONFIG_START( ampro, ampro_state )
/* Devices */
MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_16MHz / 4)
MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(WRITELINE(ampro_state, ctc_z0_w)) // Z80DART Ch A, SIO Ch A
- MCFG_Z80CTC_ZC1_CB(DEVWRITELINE("z80dart", z80dart_device, rxtxcb_w)) // SIO Ch B
+ MCFG_Z80CTC_ZC0_CB(WRITELINE(ampro_state, ctc_z0_w)) // Z80DART Ch A, SIO Ch A
+ MCFG_Z80CTC_ZC1_CB(DEVWRITELINE("z80dart", z80dart_device, rxtxcb_w)) // SIO Ch B
MCFG_Z80DART_ADD("z80dart", XTAL_16MHz / 4, 0, 0, 0, 0 )
MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE("rs232", rs232_port_device, write_txd))
diff --git a/src/mess/drivers/amstrad.c b/src/mess/drivers/amstrad.c
index 869de0aa5e4..814dd3098b0 100644
--- a/src/mess/drivers/amstrad.c
+++ b/src/mess/drivers/amstrad.c
@@ -883,7 +883,7 @@ static MACHINE_CONFIG_START( amstrad_nofdc, amstrad_state )
MCFG_CASSETTE_FORMATS(cdt_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("cpc_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","cpc_cass")
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
@@ -991,7 +991,7 @@ static MACHINE_CONFIG_START( cpcplus, amstrad_state )
MCFG_CPC_EXPANSION_SLOT_OUT_IRQ_CB(INPUTLINE("maincpu", 0))
MCFG_CPC_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
MCFG_CPC_EXPANSION_SLOT_OUT_ROMDIS_CB(WRITELINE(amstrad_state, cpc_romdis)) // ROMDIS
- MCFG_CPC_EXPANSION_SLOT_OUT_ROMEN_CB(WRITELINE(amstrad_state, cpc_romen)) // /ROMEN
+ MCFG_CPC_EXPANSION_SLOT_OUT_ROMEN_CB(WRITELINE(amstrad_state, cpc_romen)) // /ROMEN
/* internal ram */
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mess/drivers/apf.c b/src/mess/drivers/apf.c
index 6f1b910eab4..62829b6b1c2 100644
--- a/src/mess/drivers/apf.c
+++ b/src/mess/drivers/apf.c
@@ -491,7 +491,7 @@ DEVICE_IMAGE_LOAD_MEMBER( apf_state, apf_cart )
{
UINT8 *ROM = memregion("cart")->base();
UINT32 cart_size;
-
+
if (image.software_entry() == NULL)
{
cart_size = image.length();
@@ -502,7 +502,7 @@ DEVICE_IMAGE_LOAD_MEMBER( apf_state, apf_cart )
}
image.fread(ROM, cart_size);
-
+
// attempt to identify Space Destroyer, which needs 1K of additional RAM
if (cart_size == 0x1800)
{
@@ -527,7 +527,7 @@ DEVICE_IMAGE_LOAD_MEMBER( apf_state, apf_cart )
m_cart_ram.resize(image.get_software_region_length("ram"));
}
}
-
+
return IMAGE_INIT_PASS;
}
@@ -611,7 +611,7 @@ static MACHINE_CONFIG_DERIVED( apfimag, apfm1000 )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(apf_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
-
+
MCFG_FD1771x_ADD("fdc", 1000000) // guess
MCFG_FLOPPY_DRIVE_ADD("fdc:0", apf_floppies, "525dd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", apf_floppies, "525dd", floppy_image_device::default_floppy_formats)
diff --git a/src/mess/drivers/apogee.c b/src/mess/drivers/apogee.c
index eb2d43256b0..1891079bf02 100644
--- a/src/mess/drivers/apogee.c
+++ b/src/mess/drivers/apogee.c
@@ -266,7 +266,7 @@ static MACHINE_CONFIG_START( apogee, apogee_state )
MCFG_CASSETTE_FORMATS(rka_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("apogee_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","apogee")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/apple2.c b/src/mess/drivers/apple2.c
index b28a3896c5f..75412f39155 100644
--- a/src/mess/drivers/apple2.c
+++ b/src/mess/drivers/apple2.c
@@ -981,7 +981,7 @@ static SLOT_INTERFACE_START(apple2_cards)
SLOT_INTERFACE("corvus", A2BUS_CORVUS) /* Corvus flat-cable HDD interface (must go in slot 6) */
SLOT_INTERFACE("mcms1", A2BUS_MCMS1) /* Mountain Computer Music System, card 1 of 2 */
SLOT_INTERFACE("mcms2", A2BUS_MCMS2) /* Mountain Computer Music System, card 2 of 2. must be in card 1's slot + 1! */
- SLOT_INTERFACE("dx1", A2BUS_DX1) /* Decillonix DX-1 sampler card */
+ SLOT_INTERFACE("dx1", A2BUS_DX1) /* Decillonix DX-1 sampler card */
SLOT_INTERFACE_END
static SLOT_INTERFACE_START(apple2eaux_cards)
@@ -1062,7 +1062,7 @@ static MACHINE_CONFIG_DERIVED( apple2, apple2_common )
/* default configuration: on real machine is present also in configurations */
/* with less memory, provided that the language card is installed */
MCFG_CASSETTE_ADD( "cassette" )
- MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( apple2p, apple2_common )
@@ -1078,7 +1078,7 @@ static MACHINE_CONFIG_DERIVED( apple2p, apple2_common )
/* default configuration: on real machine is present also in configurations */
/* with less memory, provided that the language card is installed */
MCFG_CASSETTE_ADD( "cassette" )
- MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( apple2e, apple2_common )
@@ -1162,11 +1162,11 @@ static MACHINE_CONFIG_DERIVED( apple2c, apple2ee )
MCFG_A2BUS_SLOT_REMOVE("sl7")
MCFG_DEVICE_ADD(IIC_ACIA1_TAG, MOS6551, 0)
- MCFG_MOS6551_XTAL(XTAL_14_31818MHz / 8) // ~1.789 MHz
+ MCFG_MOS6551_XTAL(XTAL_14_31818MHz / 8) // ~1.789 MHz
MCFG_MOS6551_TXD_HANDLER(DEVWRITELINE(PRINTER_PORT_TAG, rs232_port_device, write_txd))
MCFG_DEVICE_ADD(IIC_ACIA2_TAG, MOS6551, 0)
- MCFG_MOS6551_XTAL(XTAL_1_8432MHz) // matches SSC so modem software is compatible
+ MCFG_MOS6551_XTAL(XTAL_1_8432MHz) // matches SSC so modem software is compatible
MCFG_MOS6551_TXD_HANDLER(DEVWRITELINE("modem", rs232_port_device, write_txd))
MCFG_RS232_PORT_ADD(PRINTER_PORT_TAG, default_rs232_devices, NULL)
diff --git a/src/mess/drivers/applix.c b/src/mess/drivers/applix.c
index 9a0e5bf696b..c6a130a046f 100644
--- a/src/mess/drivers/applix.c
+++ b/src/mess/drivers/applix.c
@@ -885,7 +885,7 @@ static MACHINE_CONFIG_START( applix, applix_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_WD1772x_ADD("fdc", XTAL_16MHz / 2) //connected to Z80H clock pin
MCFG_FLOPPY_DRIVE_ADD("fdc:0", applix_floppies, "35dd", applix_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", applix_floppies, "35dd", applix_state::floppy_formats)
diff --git a/src/mess/drivers/at.c b/src/mess/drivers/at.c
index 1639ea2ee1b..0e259c1b56e 100644
--- a/src/mess/drivers/at.c
+++ b/src/mess/drivers/at.c
@@ -706,7 +706,7 @@ SLOT_INTERFACE_END
static MACHINE_CONFIG_START( at586, at586_state )
MCFG_CPU_ADD("maincpu", PENTIUM, 60000000)
MCFG_CPU_PROGRAM_MAP(at586_map)
- MCFG_CPU_IO_MAP(at586_io)
+ MCFG_CPU_IO_MAP(at586_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pcibus:1:i82371ab:pic8259_master", pic8259_device, inta_cb)
MCFG_RAM_ADD(RAM_TAG)
@@ -730,7 +730,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_START( at586x3, at586_state )
MCFG_CPU_ADD("maincpu", PENTIUM, 60000000)
MCFG_CPU_PROGRAM_MAP(at586_map)
- MCFG_CPU_IO_MAP(at586_io)
+ MCFG_CPU_IO_MAP(at586_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pcibus:1:i82371sb:pic8259_master", pic8259_device, inta_cb)
MCFG_RAM_ADD(RAM_TAG)
diff --git a/src/mess/drivers/atom.c b/src/mess/drivers/atom.c
index cd347c7c4c7..2b526f69205 100644
--- a/src/mess/drivers/atom.c
+++ b/src/mess/drivers/atom.c
@@ -811,7 +811,7 @@ static MACHINE_CONFIG_START( atom, atom_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(atom_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_QUICKLOAD_ADD("quickload", atom_state, atom_atm, "atm", 0)
/* cartridge */
@@ -897,7 +897,7 @@ static MACHINE_CONFIG_START( atombb, atom_state )
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
- MCFG_CASSETTE_ADD("cassette")
+ MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(atom_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
diff --git a/src/mess/drivers/bebox.c b/src/mess/drivers/bebox.c
index e1894165e47..d118016a664 100644
--- a/src/mess/drivers/bebox.c
+++ b/src/mess/drivers/bebox.c
@@ -231,7 +231,7 @@ static MACHINE_CONFIG_START( bebox, bebox_state )
MCFG_KBDC8042_KEYBOARD_TYPE(KBDC8042_STANDARD)
MCFG_KBDC8042_SYSTEM_RESET_CB(INPUTLINE("ppc1", INPUT_LINE_RESET))
MCFG_KBDC8042_INPUT_BUFFER_FULL_CB(WRITELINE(bebox_state, bebox_keyboard_interrupt))
-
+
/* internal ram */
MCFG_RAM_ADD(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("32M")
diff --git a/src/mess/drivers/bml3.c b/src/mess/drivers/bml3.c
index 474230353de..38739368ce6 100644
--- a/src/mess/drivers/bml3.c
+++ b/src/mess/drivers/bml3.c
@@ -1019,7 +1019,7 @@ static MACHINE_CONFIG_START( bml3_common, bml3_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
/* slot devices */
- MCFG_DEVICE_ADD("bml3bus", BML3BUS, 0)
+ MCFG_DEVICE_ADD("bml3bus", BML3BUS, 0)
MCFG_BML3BUS_CPU("maincpu")
MCFG_BML3BUS_OUT_NMI_CB(WRITELINE(bml3_state, bml3bus_nmi_w))
MCFG_BML3BUS_OUT_IRQ_CB(WRITELINE(bml3_state, bml3bus_irq_w))
diff --git a/src/mess/drivers/bullet.c b/src/mess/drivers/bullet.c
index 0a815f252a9..a940eaaa8d4 100644
--- a/src/mess/drivers/bullet.c
+++ b/src/mess/drivers/bullet.c
@@ -1136,7 +1136,7 @@ static MACHINE_CONFIG_START( bullet, bullet_state )
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
MCFG_Z80PIO_OUT_PA_CB(DEVWRITE8("cent_data_out", output_latch_device, write))
MCFG_Z80PIO_IN_PB_CB(READ8(bullet_state, pio_pb_r))
-
+
MCFG_MB8877x_ADD(MB8877_TAG, XTAL_16MHz/16)
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(Z80DART_TAG, z80dart_device, dcda_w))
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(bullet_state, fdc_drq_w))
diff --git a/src/mess/drivers/c80.c b/src/mess/drivers/c80.c
index ccde4c4fdb3..c6c0722611c 100644
--- a/src/mess/drivers/c80.c
+++ b/src/mess/drivers/c80.c
@@ -269,7 +269,7 @@ static MACHINE_CONFIG_START( c80, c80_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED )
-
+
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
diff --git a/src/mess/drivers/cc40.c b/src/mess/drivers/cc40.c
index fab1b98df5a..8ca9bc455cf 100644
--- a/src/mess/drivers/cc40.c
+++ b/src/mess/drivers/cc40.c
@@ -42,14 +42,14 @@
AMI 1041036-1 - 68-pin QFP AMI Gate Array
HD44100H - 60-pin QFP Hitachi HD44100 LCD Driver
HD44780A00 - 80-pin TFP Hitachi HD44780 LCD Controller
-
+
* - indicates that it's on the other side of the PCB
-
-
+
+
CC-40 is powered by 4 AA batteries. These will also save internal RAM,
provided that the machine is turned off properly. If a program is running,
you may have to press [BREAK] before turning the CC-40 off.
-
+
To run a cartridge, usually the command RUN "DIR" shows which program(s)
can be loaded. Load a program by pressing the [RUN] key while viewing the list,
or manually with the command RUN "<shortname of program in list>"
@@ -90,14 +90,14 @@ public:
required_device<tms70c20_device> m_maincpu;
required_device<dac_device> m_dac;
-
+
ioport_port *m_key_matrix[8];
UINT8 m_power;
UINT8 m_banks;
UINT8 m_clock_control;
UINT8 m_key_select;
-
+
void update_lcd_indicator(UINT8 y, UINT8 x, int state);
DECLARE_READ8_MEMBER(bus_control_r);
@@ -215,7 +215,7 @@ WRITE8_MEMBER(cc40_state::power_w)
{
// d0: power-on hold latch
m_power = data & 1;
-
+
// stop running
if (!m_power)
m_maincpu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
@@ -242,7 +242,7 @@ WRITE8_MEMBER(cc40_state::bankswitch_w)
{
// d0-d1: system rom bankswitch
membank("sysbank")->set_entry(data & 3);
-
+
// d2-d3: cartridge rom bankswitch
membank("cartbank")->set_entry(data >> 2 & 3);
@@ -271,7 +271,7 @@ WRITE8_MEMBER(cc40_state::clock_w)
// high to low
m_maincpu->set_clock_scale(1);
}
-
+
m_clock_control = data & 0x0f;
}
@@ -285,7 +285,7 @@ READ8_MEMBER(cc40_state::keyboard_r)
if (m_key_select >> i & 1)
ret |= m_key_matrix[i]->read();
}
-
+
return ret;
}
@@ -427,7 +427,7 @@ INPUT_PORTS_END
void cc40_state::machine_reset()
{
m_power = 1;
-
+
address_space &space = m_maincpu->space(AS_PROGRAM);
bankswitch_w(space, 0, 0);
}
@@ -437,7 +437,7 @@ void cc40_state::machine_start()
static const char *const tags[] = { "IN0", "IN1", "IN2", "IN3", "IN4", "IN5", "IN6", "IN7" };
for (int i = 0; i < 8; i++)
m_key_matrix[i] = ioport(tags[i]);
-
+
membank("sysbank")->configure_entries(0, 4, memregion("system")->base(), 0x2000);
membank("cartbank")->configure_entries(0, 4, memregion("user1")->base(), 0x8000);
@@ -446,7 +446,7 @@ void cc40_state::machine_start()
m_banks = 0;
m_clock_control = 0;
m_key_select = 0;
-
+
// register for savestates
save_item(NAME(m_power));
save_item(NAME(m_banks));
@@ -511,7 +511,7 @@ ROM_START( cc40 )
ROM_REGION( 0x8000, "system", 0 )
ROM_LOAD( "cc40.bin", 0x0000, 0x8000, CRC(f5322fab) SHA1(1b5c4052a53654363c458f75eac7a27f0752def6) ) // system rom, banked
-
+
ROM_REGION( 0x20000, "user1", ROMREGION_ERASEFF ) // cartridge area, max 4*32KB
ROM_END
diff --git a/src/mess/drivers/coco12.c b/src/mess/drivers/coco12.c
index c1853213e96..0463c34c32b 100644
--- a/src/mess/drivers/coco12.c
+++ b/src/mess/drivers/coco12.c
@@ -312,7 +312,7 @@ static MACHINE_CONFIG_START( coco, coco12_state )
MCFG_COCO_CARTRIDGE_CART_CB(WRITELINE(coco_state, cart_w))
MCFG_COCO_CARTRIDGE_NMI_CB(INPUTLINE(MAINCPU_TAG, INPUT_LINE_NMI))
MCFG_COCO_CARTRIDGE_HALT_CB(INPUTLINE(MAINCPU_TAG, INPUT_LINE_HALT))
-
+
// video hardware
MCFG_SCREEN_MC6847_NTSC_ADD(SCREEN_TAG, VDG_TAG)
diff --git a/src/mess/drivers/coco3.c b/src/mess/drivers/coco3.c
index ddb8e6a3bf7..9e8ec4ec562 100644
--- a/src/mess/drivers/coco3.c
+++ b/src/mess/drivers/coco3.c
@@ -273,7 +273,7 @@ static MACHINE_CONFIG_START( coco3, coco3_state )
MCFG_COCO_CARTRIDGE_CART_CB(WRITELINE(coco_state, cart_w))
MCFG_COCO_CARTRIDGE_NMI_CB(INPUTLINE(MAINCPU_TAG, INPUT_LINE_NMI))
MCFG_COCO_CARTRIDGE_HALT_CB(INPUTLINE(MAINCPU_TAG, INPUT_LINE_HALT))
-
+
MCFG_COCO_VHD_ADD(VHD0_TAG)
MCFG_COCO_VHD_ADD(VHD1_TAG)
diff --git a/src/mess/drivers/compis.c b/src/mess/drivers/compis.c
index 8bf21a5171c..688304fa45a 100644
--- a/src/mess/drivers/compis.c
+++ b/src/mess/drivers/compis.c
@@ -697,7 +697,7 @@ static MACHINE_CONFIG_START( compis, compis_state )
MCFG_CASSETTE_ADD(CASSETTE_TAG)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape", compis_state, tape_tick, attotime::from_hz(44100))
MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
diff --git a/src/mess/drivers/crvision.c b/src/mess/drivers/crvision.c
index b2d71fed116..1acab4cb555 100644
--- a/src/mess/drivers/crvision.c
+++ b/src/mess/drivers/crvision.c
@@ -851,7 +851,7 @@ static MACHINE_CONFIG_START( creativision, crvision_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(DEVWRITELINE("cent_status_in", input_buffer_device, write_bit7))
diff --git a/src/mess/drivers/cybiko.c b/src/mess/drivers/cybiko.c
index 2657ad47de6..b2b6fc1b4ab 100644
--- a/src/mess/drivers/cybiko.c
+++ b/src/mess/drivers/cybiko.c
@@ -154,7 +154,7 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( cybikoxt_io, AS_IO, 16, cybiko_state )
AM_RANGE(h8_device::PORT_A, h8_device::PORT_A) AM_READ(xtpower_r)
AM_RANGE(h8_device::PORT_F, h8_device::PORT_F) AM_READWRITE(xtclock_r, xtclock_w)
-ADDRESS_MAP_END
+ADDRESS_MAP_END
/////////////////
// INPUT PORTS //
@@ -360,7 +360,7 @@ static MACHINE_CONFIG_START( cybikov1, cybiko_state )
MCFG_AT45DBXXX_SO_CALLBACK(DEVWRITELINE("maincpu:sci1", h8_sci_device, rx_w))
MCFG_NVRAM_ADD_0FILL("nvram")
-
+
/* internal ram */
MCFG_RAM_ADD(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("512K")
@@ -397,7 +397,7 @@ static MACHINE_CONFIG_DERIVED( cybikoxt, cybikov1)
// machine
MCFG_DEVICE_REMOVE("flash1")
- MCFG_SST_39VF400A_ADD("flashxt")
+ MCFG_SST_39VF400A_ADD("flashxt")
/* internal ram */
MCFG_RAM_MODIFY(RAM_TAG)
diff --git a/src/mess/drivers/d6800.c b/src/mess/drivers/d6800.c
index d51f52e2ad6..ded15918508 100644
--- a/src/mess/drivers/d6800.c
+++ b/src/mess/drivers/d6800.c
@@ -412,7 +412,7 @@ static MACHINE_CONFIG_START( d6800, d6800_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("d6800_c", d6800_state, d6800_c, attotime::from_hz(4800))
MCFG_TIMER_DRIVER_ADD_PERIODIC("d6800_p", d6800_state, d6800_p, attotime::from_hz(40000))
diff --git a/src/mess/drivers/dragon.c b/src/mess/drivers/dragon.c
index 0677aa6ec3f..314b6e82556 100644
--- a/src/mess/drivers/dragon.c
+++ b/src/mess/drivers/dragon.c
@@ -159,7 +159,7 @@ static MACHINE_CONFIG_START( dragon_base, dragon_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(coco_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_DEVICE_ADD(PRINTER_TAG, PRINTER, 0)
// video hardware
diff --git a/src/mess/drivers/einstein.c b/src/mess/drivers/einstein.c
index c7bfa8c20a6..b02be808ab0 100644
--- a/src/mess/drivers/einstein.c
+++ b/src/mess/drivers/einstein.c
@@ -717,7 +717,7 @@ static MACHINE_CONFIG_START( einstein, einstein_state )
/* video hardware */
MCFG_DEVICE_ADD( "tms9929a", TMS9929A, XTAL_10_738635MHz / 2 )
- MCFG_TMS9928A_VRAM_SIZE(0x4000) /* 16k RAM, provided by IC i040 and i041 */
+ MCFG_TMS9928A_VRAM_SIZE(0x4000) /* 16k RAM, provided by IC i040 and i041 */
MCFG_TMS9928A_SET_SCREEN( "screen" )
MCFG_TMS9928A_SCREEN_ADD_PAL( "screen" )
MCFG_SCREEN_UPDATE_DEVICE( "tms9929a", tms9929a_device, screen_update )
diff --git a/src/mess/drivers/ep64.c b/src/mess/drivers/ep64.c
index 69c21ba7643..9529aca36c3 100644
--- a/src/mess/drivers/ep64.c
+++ b/src/mess/drivers/ep64.c
@@ -528,7 +528,7 @@ static MACHINE_CONFIG_START( ep64, ep64_state )
MCFG_CASSETTE_ADD(CASSETTE1_TAG)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
MCFG_CASSETTE_INTERFACE("ep64_cass")
-
+
MCFG_CASSETTE_ADD(CASSETTE2_TAG)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
MCFG_CASSETTE_INTERFACE("ep64_cass")
diff --git a/src/mess/drivers/esq5505.c b/src/mess/drivers/esq5505.c
index 785ca56d479..207fbbbbacb 100644
--- a/src/mess/drivers/esq5505.c
+++ b/src/mess/drivers/esq5505.c
@@ -659,7 +659,7 @@ static MACHINE_CONFIG_DERIVED(eps, vfx)
MCFG_FLOPPY_DRIVE_ADD("wd1772:0", ensoniq_floppies, "35dd", esq5505_state::floppy_formats)
MCFG_DEVICE_ADD("mc68450", HD63450, 0) // MC68450 compatible
- MCFG_HD63450_CPU("maincpu") // CPU - 68000
+ MCFG_HD63450_CPU("maincpu") // CPU - 68000
MCFG_HD63450_CLOCKS(attotime::from_usec(32), attotime::from_nsec(450), attotime::from_usec(4), attotime::from_hz(15625/2))
MCFG_HD63450_BURST_CLOCKS(attotime::from_usec(32), attotime::from_nsec(450), attotime::from_nsec(50), attotime::from_nsec(50))
MCFG_HD63450_DMA_END_CB(WRITE8(esq5505_state, dma_end))
diff --git a/src/mess/drivers/exelv.c b/src/mess/drivers/exelv.c
index 6761c49804f..ce6cb16c7d8 100644
--- a/src/mess/drivers/exelv.c
+++ b/src/mess/drivers/exelv.c
@@ -99,9 +99,9 @@ public:
UINT8 m_wx319; /* data of 74sl374 labeled wx319 */
DECLARE_PALETTE_INIT(exelv);
TIMER_DEVICE_CALLBACK_MEMBER(exelv_hblank_interrupt);
-
+
DECLARE_DEVICE_IMAGE_LOAD_MEMBER( exelvision_cartridge );
-
+
};
@@ -223,7 +223,7 @@ static DEVICE_IMAGE_UNLOAD( exelv_cart )
READ8_MEMBER(exelv_state::mailbox_wx319_r)
{
- logerror("[TMS7220] reading mailbox %d\n", m_wx319);
+ logerror("[TMS7220] reading mailbox %d\n", m_wx319);
return m_wx319;
}
@@ -285,23 +285,23 @@ WRITE8_MEMBER(exelv_state::tms7020_portb_w)
READ8_MEMBER(exelv_state::tms7041_porta_r)
{
UINT8 data = 0x00;
- static UINT8 data_last=0;
+ static UINT8 data_last=0;
- // TMS5220 OK
+ // TMS5220 OK
data |= m_tms5220c->intq_r() ? 0x08 : 0x00; // A3
data |= m_tms5220c->readyq_r() ? 0x80 : 0x00; // A7
- // TMS7220
+ // TMS7220
data |= (m_tms7020_portb & 0x01 ) ? 0x04 : 0x00; // A2
data |= (m_tms7020_portb & 0x02) ? 0x10 : 0x00; // A4
-
+
// SERIAL PORT
- if (data!=data_last) {
- logerror("tms7041_porta_r %x\n",data);
- }
- data_last=data;
-
+ if (data!=data_last) {
+ logerror("tms7041_porta_r %x\n",data);
+ }
+ data_last=data;
+
return data;
}
@@ -324,7 +324,7 @@ WRITE8_MEMBER(exelv_state::tms7041_portb_w)
m_tms5220c->wsq_w((data & 0x01) ? 1 : 0);
m_tms5220c->rsq_w((data & 0x02) ? 1 : 0);
- logerror("TMS7020 %s int1\n",((data & 0x04) ? "clear" : "assert"));
+ logerror("TMS7020 %s int1\n",((data & 0x04) ? "clear" : "assert"));
m_maincpu->set_input_line(TMS7000_INT1_LINE, (data & 0x04) ? CLEAR_LINE : ASSERT_LINE);
/* Check for low->high transition on B6 */
@@ -375,7 +375,7 @@ WRITE8_MEMBER(exelv_state::tms7041_portc_w)
READ8_MEMBER(exelv_state::tms7041_portd_r)
{
UINT8 data = 0xff;
- data=m_tms5220c->status_r(space, 0, data);
+ data=m_tms5220c->status_r(space, 0, data);
logerror("tms7041_portd_r\n");
return data;
}
@@ -416,11 +416,11 @@ WRITE8_MEMBER(exelv_state::tms7041_portd_w)
static ADDRESS_MAP_START(tms7020_mem, AS_PROGRAM, 8, exelv_state)
AM_RANGE(0x0080, 0x00ff) AM_NOP
- AM_RANGE(0x0124, 0x0124) AM_DEVREAD("tms3556", tms3556_device, vram_r)
- AM_RANGE(0x0125, 0x0125) AM_DEVREAD("tms3556", tms3556_device, reg_r)
- AM_RANGE(0x0128, 0x0128) AM_DEVREAD("tms3556", tms3556_device, initptr_r)
- AM_RANGE(0x012d, 0x012d) AM_DEVWRITE("tms3556", tms3556_device, reg_w)
- AM_RANGE(0x012e, 0x012e) AM_DEVWRITE("tms3556", tms3556_device, vram_w)
+ AM_RANGE(0x0124, 0x0124) AM_DEVREAD("tms3556", tms3556_device, vram_r)
+ AM_RANGE(0x0125, 0x0125) AM_DEVREAD("tms3556", tms3556_device, reg_r)
+ AM_RANGE(0x0128, 0x0128) AM_DEVREAD("tms3556", tms3556_device, initptr_r)
+ AM_RANGE(0x012d, 0x012d) AM_DEVWRITE("tms3556", tms3556_device, reg_w)
+ AM_RANGE(0x012e, 0x012e) AM_DEVWRITE("tms3556", tms3556_device, vram_w)
AM_RANGE(0x0130, 0x0130) AM_READWRITE(mailbox_wx319_r, mailbox_wx318_w)
AM_RANGE(0x0200, 0x7fff) AM_ROMBANK("bank1") /* system ROM */
@@ -444,11 +444,11 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START(tms7040_mem, AS_PROGRAM, 8, exelv_state)
AM_RANGE(0x0080, 0x00ff) AM_NOP
- AM_RANGE(0x0124, 0x0124) AM_DEVREAD("tms3556", tms3556_device, vram_r)
- AM_RANGE(0x0125, 0x0125) AM_DEVREAD("tms3556", tms3556_device, reg_r)
- AM_RANGE(0x0128, 0x0128) AM_DEVREAD("tms3556", tms3556_device, initptr_r)
- AM_RANGE(0x012d, 0x012d) AM_DEVWRITE("tms3556", tms3556_device, reg_w)
- AM_RANGE(0x012e, 0x012e) AM_DEVWRITE("tms3556", tms3556_device, vram_w)
+ AM_RANGE(0x0124, 0x0124) AM_DEVREAD("tms3556", tms3556_device, vram_r)
+ AM_RANGE(0x0125, 0x0125) AM_DEVREAD("tms3556", tms3556_device, reg_r)
+ AM_RANGE(0x0128, 0x0128) AM_DEVREAD("tms3556", tms3556_device, initptr_r)
+ AM_RANGE(0x012d, 0x012d) AM_DEVWRITE("tms3556", tms3556_device, reg_w)
+ AM_RANGE(0x012e, 0x012e) AM_DEVWRITE("tms3556", tms3556_device, vram_w)
AM_RANGE(0x0130, 0x0130) AM_READWRITE(mailbox_wx319_r, mailbox_wx318_w)
AM_RANGE(0x0200, 0x7fff) AM_ROMBANK("bank1") /* system ROM */
AM_RANGE(0x8000, 0xbfff) AM_NOP
@@ -537,7 +537,7 @@ static MACHINE_CONFIG_START( exl100, exelv_state )
MCFG_SOUND_ADD("tms5220c", TMS5220C, 640000)
// MCFG_TMS52XX_SPEECHROM("vsm")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
-
+
/* cartridge */
MCFG_CARTSLOT_ADD("cart")
MCFG_CARTSLOT_EXTENSION_LIST("bin,rom")
@@ -600,7 +600,7 @@ ROM_START(exl100)
ROM_REGION(0x10000, "tms7041", 0)
ROM_LOAD("exl100_7041.bin", 0xf000, 0x1000, CRC(38f6fc7a) SHA1(b71d545664a974d8ad39bdf600c5b9884c3efab6)) /* TMS7041 internal ROM, correct */
-// ROM_REGION(0x8000, "vsm", 0)
+// ROM_REGION(0x8000, "vsm", 0)
ROM_REGION(0x10000, "user1", ROMREGION_ERASEFF) /* cartridge area */
ROM_END
@@ -627,4 +627,3 @@ ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME */
COMP(1984, exl100, 0, 0, exl100, exelv, driver_device, 0, "Exelvision", "EXL 100", GAME_NOT_WORKING)
COMP(1986, exeltel, exl100, 0, exeltel, exelv, driver_device, 0, "Exelvision", "Exeltel", GAME_NOT_WORKING)
-
diff --git a/src/mess/drivers/fanucspmg.c b/src/mess/drivers/fanucspmg.c
index 8afa6384f8a..0053eee666a 100644
--- a/src/mess/drivers/fanucspmg.c
+++ b/src/mess/drivers/fanucspmg.c
@@ -456,14 +456,14 @@ The arrows denote direction of data flow.
| /-->| Graphic memory|------| |
| | |---------------| | | |----------------|
| | | |--------| |<--->|RS232C interface|---CN2
- | | | | BOOT |<-------->| |----------------|
+ | | | | BOOT |<-------->| |----------------|
| | | | EPROM | |
| | |----------------| | |--------| | |----------------|
|<-----|-->|Character memory|--| | |<--->|RS232C interface|---CN3
| |-->|----------------| | | |--------| | |----------------|
| | | | |Main RAM|<-------->|
| | | | |--------| | |----------------|
- | | | | |<--->|RS232C interface|---CN4
+ | | | | |<--->|RS232C interface|---CN4
| | | | | |----------------|
|---------| | | \/ \/ |
|Keyboard | \/ \---|---------------------------| | |-----------------| CN9 |--------|
@@ -485,15 +485,15 @@ The arrows denote direction of data flow.
- Shared RAM is 8k, but there are 2 6264s on the sub board. Is shared RAM
banked?
- To boot a floppy put "bp fc5fa,1,{ip=c682;g}" and "bp fc6d7,1,{ip=c755;g}"
- into the debugger.
+ To boot a floppy put "bp fc5fa,1,{ip=c682;g}" and "bp fc6d7,1,{ip=c755;g}"
+ into the debugger.
- At NMI: f8008 must have bit 7 clear and bit 6 set (e008 on 8085)
- f8009 must not equal 0x01 (e009 on 8085)
+ At NMI: f8008 must have bit 7 clear and bit 6 set (e008 on 8085)
+ f8009 must not equal 0x01 (e009 on 8085)
+
+ 8085 sets f8008 to keyboard row 0 AND 0xf3
+ " " f8009 to keyboard row 1
- 8085 sets f8008 to keyboard row 0 AND 0xf3
- " " f8009 to keyboard row 1
-
****************************************************************************/
#include "emu.h"
@@ -671,14 +671,14 @@ WRITE8_MEMBER(fanucspmg_state::dma_page_w)
READ16_MEMBER(fanucspmg_state::magic_r)
{
- return 0x0041; // 31 = memory error
+ return 0x0041; // 31 = memory error
}
static ADDRESS_MAP_START(maincpu_mem, AS_PROGRAM, 16, fanucspmg_state)
AM_RANGE(0x00000, 0x7ffff) AM_RAM // main RAM
- AM_RANGE(0x80000, 0x81fff) AM_RAM // believed to be shared RAM with a CPU inside the Program File
- AM_RANGE(0x88000, 0x88001) AM_NOP // Program File "ready" bit
+ AM_RANGE(0x80000, 0x81fff) AM_RAM // believed to be shared RAM with a CPU inside the Program File
+ AM_RANGE(0x88000, 0x88001) AM_NOP // Program File "ready" bit
AM_RANGE(0xf0000, 0xf0003) AM_DEVREADWRITE8(PIC0_TAG, pic8259_device, read, write, 0x00ff)
AM_RANGE(0xf0004, 0xf0007) AM_DEVICE8(FDC_TAG, upd765a_device, map, 0x00ff)
@@ -831,7 +831,7 @@ MC6845_UPDATE_ROW( fanucspmg_state::crtc_update_row )
if (m_video_ctrl & 0x02)
{
if (offset <= 0x5ff)
- {
+ {
UINT8 chr = m_vram[offset + 0x600];
UINT8 attr = m_vram[offset];
UINT8 data = chargen[ chr + (ra * 256) ];
@@ -879,9 +879,9 @@ MC6845_UPDATE_ROW( fanucspmg_state::crtc_update_row_mono )
if (m_video_ctrl & 0x02)
{
if (offset <= 0x5ff)
- {
+ {
UINT8 chr = m_vram[offset + 0x600];
-// UINT8 attr = m_vram[offset];
+// UINT8 attr = m_vram[offset];
UINT8 data = chargen[ chr + (ra * 256) ];
UINT32 fg = 0xff00;
UINT32 bg = 0;
@@ -995,14 +995,14 @@ ROM_END
ROM_START( fanucspgm )
ROM_REGION(0x4000, MAINCPU_TAG, 0)
- ROM_LOAD16_BYTE( "a25_001a.33e", 0x000000, 0x002000, CRC(81159267) SHA1(f5d53cc6e929f57e8c3747f80fc74d4b1643222d) )
- ROM_LOAD16_BYTE( "a25_002a.35e", 0x000001, 0x002000, CRC(4fb82c4d) SHA1(eb75e9a2d3c8e4ad56a74624ee8c52c785bd0da6) )
+ ROM_LOAD16_BYTE( "a25_001a.33e", 0x000000, 0x002000, CRC(81159267) SHA1(f5d53cc6e929f57e8c3747f80fc74d4b1643222d) )
+ ROM_LOAD16_BYTE( "a25_002a.35e", 0x000001, 0x002000, CRC(4fb82c4d) SHA1(eb75e9a2d3c8e4ad56a74624ee8c52c785bd0da6) )
ROM_REGION(0x4000, SUBCPU_TAG, 0)
- ROM_LOAD( "a21_010f.17d", 0x000000, 0x002000, CRC(ef192717) SHA1(7fb3f7ca290d2437ae5956700f88c801018ce1cc) )
+ ROM_LOAD( "a21_010f.17d", 0x000000, 0x002000, CRC(ef192717) SHA1(7fb3f7ca290d2437ae5956700f88c801018ce1cc) )
ROM_REGION(0x8000, CHARGEN_TAG, 0)
- ROM_LOAD( "a22_020b.5g", 0x000000, 0x002000, CRC(7b5f8e20) SHA1(9de607e541d8aad2d1ea56321270bb8466b16e3d) )
+ ROM_LOAD( "a22_020b.5g", 0x000000, 0x002000, CRC(7b5f8e20) SHA1(9de607e541d8aad2d1ea56321270bb8466b16e3d) )
ROM_END
/* Driver */
diff --git a/src/mess/drivers/fb01.c b/src/mess/drivers/fb01.c
index ac0a8b2953b..155b4f53a20 100644
--- a/src/mess/drivers/fb01.c
+++ b/src/mess/drivers/fb01.c
@@ -65,7 +65,7 @@ static ADDRESS_MAP_START(fb01_io, AS_IO, 8, fb01_state)
AM_RANGE(0x00, 0x00) AM_DEVWRITE("ym2164", ym2151_device, register_w)
AM_RANGE(0x01, 0x01) AM_DEVREADWRITE("ym2164", ym2151_device, status_r, data_w)
- // 10-11 USART uPD71051C 4MHz & 4MHz / 8
+ // 10-11 USART uPD71051C 4MHz & 4MHz / 8
AM_RANGE(0x10, 0x10) AM_DEVREADWRITE("upd71051", i8251_device, data_r, data_w)
AM_RANGE(0x11, 0x11) AM_DEVREADWRITE("upd71051", i8251_device, status_r, control_w)
@@ -224,4 +224,3 @@ ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */
CONS( 1986, fb01, 0, 0, fb01, fb01, driver_device, 0, "Yamaha", "FB-01", GAME_SUPPORTS_SAVE )
-
diff --git a/src/mess/drivers/fc100.c b/src/mess/drivers/fc100.c
index ad9211fba1d..6bb650da543 100644
--- a/src/mess/drivers/fc100.c
+++ b/src/mess/drivers/fc100.c
@@ -535,7 +535,7 @@ static MACHINE_CONFIG_START( fc100, fc100_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(fc100_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_DEVICE_ADD("uart", I8251, 0)
MCFG_I8251_TXD_HANDLER(WRITELINE(fc100_state, txdata_callback))
MCFG_DEVICE_ADD("uart_clock", CLOCK, XTAL_4_9152MHz/16/16) // gives 19200
diff --git a/src/mess/drivers/fmtowns.c b/src/mess/drivers/fmtowns.c
index fcc1e8e2de7..849d172301b 100644
--- a/src/mess/drivers/fmtowns.c
+++ b/src/mess/drivers/fmtowns.c
@@ -2749,7 +2749,7 @@ static MACHINE_CONFIG_FRAGMENT( towns_base )
MCFG_UPD71071_DMA_READ_1_CB(READ16(towns_state, towns_scsi_dma_r))
MCFG_UPD71071_DMA_READ_3_CB(READ16(towns_state, towns_cdrom_dma_r))
MCFG_UPD71071_DMA_WRITE_0_CB(WRITE16(towns_state, towns_fdc_dma_w))
- MCFG_UPD71071_DMA_WRITE_1_CB(WRITE16(towns_state, towns_scsi_dma_w))
+ MCFG_UPD71071_DMA_WRITE_1_CB(WRITE16(towns_state, towns_scsi_dma_w))
MCFG_DEVICE_ADD("dma_2", UPD71071, 0)
MCFG_UPD71071_CPU("maincpu")
MCFG_UPD71071_CLOCK(4000000)
@@ -2757,7 +2757,7 @@ static MACHINE_CONFIG_FRAGMENT( towns_base )
MCFG_UPD71071_DMA_READ_1_CB(READ16(towns_state, towns_scsi_dma_r))
MCFG_UPD71071_DMA_READ_3_CB(READ16(towns_state, towns_cdrom_dma_r))
MCFG_UPD71071_DMA_WRITE_0_CB(WRITE16(towns_state, towns_fdc_dma_w))
- MCFG_UPD71071_DMA_WRITE_1_CB(WRITE16(towns_state, towns_scsi_dma_w))
+ MCFG_UPD71071_DMA_WRITE_1_CB(WRITE16(towns_state, towns_scsi_dma_w))
//MCFG_VIDEO_START_OVERRIDE(towns_state,towns)
diff --git a/src/mess/drivers/fp1100.c b/src/mess/drivers/fp1100.c
index 39275471f9e..a75fc49eec4 100644
--- a/src/mess/drivers/fp1100.c
+++ b/src/mess/drivers/fp1100.c
@@ -192,16 +192,16 @@ WRITE8_MEMBER( fp1100_state::irq_mask_w )
WRITE8_MEMBER( fp1100_state::main_to_sub_w )
{
-// machine().scheduler().synchronize(); // force resync
-// m_subcpu->set_input_line(UPD7810_INTF2, ASSERT_LINE);
+// machine().scheduler().synchronize(); // force resync
+// m_subcpu->set_input_line(UPD7810_INTF2, ASSERT_LINE);
m_sub_latch = data;
- if (LOG) printf("%s: From main:%X\n",machine().describe_context(),data);
+ if (LOG) printf("%s: From main:%X\n",machine().describe_context(),data);
}
READ8_MEMBER( fp1100_state::sub_to_main_r )
{
-// machine().scheduler().synchronize(); // force resync
-// m_maincpu->set_input_line(0, CLEAR_LINE);
+// machine().scheduler().synchronize(); // force resync
+// m_maincpu->set_input_line(0, CLEAR_LINE);
if (LOG) printf("%s: To main:%X\n",machine().describe_context(),m_main_latch);
return m_main_latch;
}
@@ -235,16 +235,16 @@ ADDRESS_MAP_END
READ8_MEMBER( fp1100_state::main_to_sub_r )
{
-// machine().scheduler().synchronize(); // force resync
-// m_subcpu->set_input_line(UPD7810_INTF2, CLEAR_LINE);
+// machine().scheduler().synchronize(); // force resync
+// m_subcpu->set_input_line(UPD7810_INTF2, CLEAR_LINE);
if (LOG) printf("%s: To sub:%X\n",machine().describe_context(),m_sub_latch);
return m_sub_latch;
}
WRITE8_MEMBER( fp1100_state::sub_to_main_w )
{
-// machine().scheduler().synchronize(); // force resync
-// m_maincpu->set_input_line_and_vector(0, ASSERT_LINE, 0xf0);
+// machine().scheduler().synchronize(); // force resync
+// m_maincpu->set_input_line_and_vector(0, ASSERT_LINE, 0xf0);
m_main_latch = data;
if (LOG) printf("%s: From sub:%X\n",machine().describe_context(),data);
}
@@ -594,8 +594,8 @@ TIMER_DEVICE_CALLBACK_MEMBER( fp1100_state::timer_c )
INTERRUPT_GEN_MEMBER(fp1100_state::fp1100_vblank_irq)
{
-// if BIT(m_irq_mask, 4)
-// m_maincpu->set_input_line_and_vector(0, HOLD_LINE, 0xf8);
+// if BIT(m_irq_mask, 4)
+// m_maincpu->set_input_line_and_vector(0, HOLD_LINE, 0xf8);
}
MACHINE_RESET_MEMBER( fp1100_state, fp1100 )
diff --git a/src/mess/drivers/galaxy.c b/src/mess/drivers/galaxy.c
index c6f6c168a35..42553a765cf 100644
--- a/src/mess/drivers/galaxy.c
+++ b/src/mess/drivers/galaxy.c
@@ -171,7 +171,7 @@ static MACHINE_CONFIG_START( galaxy, galaxy_state )
MCFG_CPU_PROGRAM_MAP(galaxy_mem)
MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxy_state, galaxy_interrupt)
MCFG_CPU_IRQ_ACKNOWLEDGE_DRIVER(galaxy_state,galaxy_irq_callback)
-
+
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(50)
MCFG_SCREEN_PALETTE("palette")
@@ -198,7 +198,7 @@ static MACHINE_CONFIG_START( galaxy, galaxy_state )
MCFG_CASSETTE_FORMATS(gtp_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("galaxy_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","galaxy")
/* internal ram */
@@ -214,7 +214,7 @@ static MACHINE_CONFIG_START( galaxyp, galaxy_state )
MCFG_CPU_IO_MAP(galaxyp_io)
MCFG_CPU_VBLANK_INT_DRIVER("screen", galaxy_state, galaxy_interrupt)
MCFG_CPU_IRQ_ACKNOWLEDGE_DRIVER(galaxy_state,galaxy_irq_callback)
-
+
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(50)
MCFG_SCREEN_PALETTE("palette")
@@ -242,7 +242,7 @@ static MACHINE_CONFIG_START( galaxyp, galaxy_state )
MCFG_CASSETTE_FORMATS(gtp_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("galaxy_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","galaxy")
/* internal ram */
diff --git a/src/mess/drivers/gimix.c b/src/mess/drivers/gimix.c
index 4a7b51a653d..6a7f21c434f 100644
--- a/src/mess/drivers/gimix.c
+++ b/src/mess/drivers/gimix.c
@@ -434,13 +434,13 @@ WRITE_LINE_MEMBER(gimix_state::fdc_drq_w)
{
// write to disk
m_fdc->data_w(m_ram->read(m_dma_current_addr));
-// logerror("DMA: read from RAM %05x\n",m_dma_current_addr);
+// logerror("DMA: read from RAM %05x\n",m_dma_current_addr);
}
else
{
// read from disk
m_ram->write(m_dma_current_addr,m_fdc->data_r());
-// logerror("DMA: write to RAM %05x\n",m_dma_current_addr);
+// logerror("DMA: write to RAM %05x\n",m_dma_current_addr);
}
m_dma_current_addr++;
}
@@ -621,15 +621,15 @@ ROM_START( gimix )
/* CPU board U4: gimixf8.bin - checksum 68DB - 2716 - GMXBUG09 V2.1 | (c)1981 GIMIX | $F800 I2716 */
ROM_LOAD( "gimixf8.u4", 0x000000, 0x000800, CRC(7d60f838) SHA1(eb7546e8bbf50d33e181f3e86c3e4c5c9032cab2) )
/* CPU board U5: gimixv14.bin - checksum 97E2 - 2716 - GIMIX 6809 | AUTOBOOT | V1.4 I2716 */
- ROM_LOAD( "gimixv14.u5", 0x000800, 0x000800, CRC(f795b8b9) SHA1(eda2de51cc298d94b36605437d900ce971b3b276) )
+ ROM_LOAD( "gimixv14.u5", 0x000800, 0x000800, CRC(f795b8b9) SHA1(eda2de51cc298d94b36605437d900ce971b3b276) )
/* CPU board U6: os9l1v11.bin - checksum 2C84 - 2716 - OS-9tmL1 V1 | GIMIX P1 " (c)1982 MSC
CPU board U7: os9l1v12.bin - checksum 7694 - 2716 - OS-9tmL1 V1 | GIMIX P2-68 | (c)1982 MSC */
- ROM_LOAD( "os9l1v11.u6", 0x001000, 0x000800, CRC(0d6527a0) SHA1(1435a22581c6e9e0ae338071a72eed646f429530) )
- ROM_LOAD( "os9l1v12.u7", 0x001800, 0x000800, CRC(b3c65feb) SHA1(19d1ea1e84473b25c95cbb8449e6b9828567e998) )
+ ROM_LOAD( "os9l1v11.u6", 0x001000, 0x000800, CRC(0d6527a0) SHA1(1435a22581c6e9e0ae338071a72eed646f429530) )
+ ROM_LOAD( "os9l1v12.u7", 0x001800, 0x000800, CRC(b3c65feb) SHA1(19d1ea1e84473b25c95cbb8449e6b9828567e998) )
/* Hard drive controller board 2 (XEBEC board) 11H: gimixhd.bin - checksum 2436 - 2732 - 104521D */
- ROM_REGION( 0x10000, "xebec", 0)
- ROM_LOAD( "gimixhd.h11", 0x000000, 0x001000, CRC(35c12201) SHA1(51ac9052f9757d79c7f5bd3aa5d8421e98cfcc37) )
+ ROM_REGION( 0x10000, "xebec", 0)
+ ROM_LOAD( "gimixhd.h11", 0x000000, 0x001000, CRC(35c12201) SHA1(51ac9052f9757d79c7f5bd3aa5d8421e98cfcc37) )
ROM_END
COMP( 1980, gimix, 0, 0, gimix, gimix, driver_device, 0, "Gimix", "Gimix 6809 System", GAME_IS_SKELETON | GAME_NOT_WORKING | GAME_NO_SOUND )
diff --git a/src/mess/drivers/hprot1.c b/src/mess/drivers/hprot1.c
index 6eacb2b4a2b..a51d9dc5e38 100644
--- a/src/mess/drivers/hprot1.c
+++ b/src/mess/drivers/hprot1.c
@@ -15,7 +15,7 @@
* new derivative "CARD II PCB rev.6"
* fixed LCD rendering (now both lines are displayed properly)
* inverted logic of the inputs so that now we can navigate the menu
-
+
2014 JAN 03 [Felipe Sanches]:
* Initial driver skeleton
* Address lines bitswaping
@@ -126,7 +126,7 @@ static ADDRESS_MAP_START(i80c31_io, AS_IO, 8, hprot1_state)
AM_RANGE(0xc020,0xc020) AM_MIRROR(0x13cf) AM_DEVREAD("hd44780", hd44780_device, control_read)
AM_RANGE(0xc030,0xc030) AM_MIRROR(0x13cf) AM_DEVREAD("hd44780", hd44780_device, data_read)
/*TODO: attach the watchdog/brownout reset device:
- AM_RANGE(0xe000,0xe0??) AM_MIRROR(?) AM_DEVREAD("adm965an", adm965an_device, data_read) */
+ AM_RANGE(0xe000,0xe0??) AM_MIRROR(?) AM_DEVREAD("adm965an", adm965an_device, data_read) */
//AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P3) AM_READWRITE(henry_io_r, henry_io_w)
AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P3) AM_READ(henry_io_r)
@@ -147,24 +147,24 @@ INPUT_PORTS_END
static INPUT_PORTS_START( hprot_jumpers )
/*
-There is a set of 3 jumpers that switch the communications circuitry between a
+There is a set of 3 jumpers that switch the communications circuitry between a
RS232 chip (U8: MAX232AN) and a differential bus transceiver (U7: SN65176BP)
-It seems that all three jumpers must select the same configuration:
+It seems that all three jumpers must select the same configuration:
eighter differential bus or RS232.
And I don't see yet how this could affect the emulation of the device, so, for now, I'll
simply leave this note here but not actually include this details in the driver code.
- PORT_START("jumpers")
- PORT_DIPNAME( 0x01, 0x01, "TX")
- PORT_DIPSETTING( 0x01, "differential bus")
- PORT_DIPSETTING( 0x00, "RS232")
- PORT_DIPNAME( 0x02, 0x02, "RX")
- PORT_DIPSETTING( 0x02, "differential bus")
- PORT_DIPSETTING( 0x00, "RS232")
- PORT_DIPNAME( 0x04, 0x04, "CPU-TX")
- PORT_DIPSETTING( 0x04, "differential bus")
- PORT_DIPSETTING( 0x00, "RS232")
+ PORT_START("jumpers")
+ PORT_DIPNAME( 0x01, 0x01, "TX")
+ PORT_DIPSETTING( 0x01, "differential bus")
+ PORT_DIPSETTING( 0x00, "RS232")
+ PORT_DIPNAME( 0x02, 0x02, "RX")
+ PORT_DIPSETTING( 0x02, "differential bus")
+ PORT_DIPSETTING( 0x00, "RS232")
+ PORT_DIPNAME( 0x04, 0x04, "CPU-TX")
+ PORT_DIPSETTING( 0x04, "differential bus")
+ PORT_DIPSETTING( 0x00, "RS232")
*/
INPUT_PORTS_END
@@ -337,7 +337,7 @@ static MACHINE_CONFIG_DERIVED( hprotr8a, hprot1 )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
/* TODO: add an RS232 interface (emulate MAX232N chip)
- (the board has GND/VCC/RX/TX pins available in a connector) */
+ (the board has GND/VCC/RX/TX pins available in a connector) */
/* TODO: add an I2C interface (the board has GND/VCC/SDA/SCL pins available in a connector) */
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/interact.c b/src/mess/drivers/interact.c
index 57fc76a70df..6db268795e8 100644
--- a/src/mess/drivers/interact.c
+++ b/src/mess/drivers/interact.c
@@ -160,7 +160,7 @@ static MACHINE_CONFIG_START( interact, interact_state )
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MASK_SPEAKER)
MCFG_CASSETTE_INTERFACE("interact_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","interact")
/* printer */
diff --git a/src/mess/drivers/iq151.c b/src/mess/drivers/iq151.c
index 09e22589fd4..f6acd08bdd4 100644
--- a/src/mess/drivers/iq151.c
+++ b/src/mess/drivers/iq151.c
@@ -411,7 +411,7 @@ static MACHINE_CONFIG_START( iq151, iq151_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
MCFG_CASSETTE_INTERFACE("iq151_cass")
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("cassette_timer", iq151_state, cassette_timer, attotime::from_hz(2000))
/* cartridge */
diff --git a/src/mess/drivers/isbc.c b/src/mess/drivers/isbc.c
index 91821010745..64d6c57c5a7 100644
--- a/src/mess/drivers/isbc.c
+++ b/src/mess/drivers/isbc.c
@@ -199,7 +199,7 @@ static MACHINE_CONFIG_START( isbc86, isbc_state )
MCFG_CPU_PROGRAM_MAP(isbc86_mem)
MCFG_CPU_IO_MAP(isbc_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pic_0", pic8259_device, inta_cb)
-
+
MCFG_PIC8259_ADD("pic_0", INPUTLINE(":maincpu", 0), VCC, NULL)
MCFG_DEVICE_ADD("pit", PIT8253, 0)
@@ -231,7 +231,7 @@ static MACHINE_CONFIG_START( rpc86, isbc_state )
MCFG_CPU_PROGRAM_MAP(rpc86_mem)
MCFG_CPU_IO_MAP(rpc86_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pic_0", pic8259_device, inta_cb)
-
+
MCFG_PIC8259_ADD("pic_0", INPUTLINE(":maincpu", 0), VCC, NULL)
MCFG_DEVICE_ADD("pit", PIT8253, 0)
@@ -266,7 +266,7 @@ static MACHINE_CONFIG_START( isbc286, isbc_state )
MCFG_CPU_PROGRAM_MAP(isbc286_mem)
MCFG_CPU_IO_MAP(isbc286_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pic_0", pic8259_device, inta_cb)
-
+
MCFG_PIC8259_ADD("pic_0", INPUTLINE(":maincpu", 0), VCC, READ8(isbc_state, get_slave_ack))
MCFG_PIC8259_ADD("pic_1", DEVWRITELINE("pic_0", pic8259_device, ir7_w), GND, NULL)
diff --git a/src/mess/drivers/kim1.c b/src/mess/drivers/kim1.c
index de24b86d026..97ea902bdcd 100644
--- a/src/mess/drivers/kim1.c
+++ b/src/mess/drivers/kim1.c
@@ -340,7 +340,7 @@ static MACHINE_CONFIG_START( kim1, kim1_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(kim1_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("led_timer", kim1_state, kim1_update_leds, attotime::from_hz(60))
MCFG_TIMER_DRIVER_ADD_PERIODIC("cassette_timer", kim1_state, kim1_cassette_input, attotime::from_hz(44100))
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/lviv.c b/src/mess/drivers/lviv.c
index b1368f650f9..1d46246facc 100644
--- a/src/mess/drivers/lviv.c
+++ b/src/mess/drivers/lviv.c
@@ -466,7 +466,7 @@ static MACHINE_CONFIG_START( lviv, lviv_state )
MCFG_CASSETTE_FORMATS(lviv_lvt_format)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("lviv_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","lviv")
/* internal ram */
diff --git a/src/mess/drivers/mac.c b/src/mess/drivers/mac.c
index c694bd8a7df..9cadd4d57cb 100644
--- a/src/mess/drivers/mac.c
+++ b/src/mess/drivers/mac.c
@@ -2192,8 +2192,8 @@ INPUT_PORTS_END
/*
ROM_START( mactw )
- ROM_REGION16_BE(0x20000, "bootrom", 0)
- ROM_LOAD( "rom4.3t_07-04-83.bin", 0x0000, 0x10000, CRC(d2c42f18) SHA1(f868c09ca70383a69751c37a5a3110a9597462a4) )
+ ROM_REGION16_BE(0x20000, "bootrom", 0)
+ ROM_LOAD( "rom4.3t_07-04-83.bin", 0x0000, 0x10000, CRC(d2c42f18) SHA1(f868c09ca70383a69751c37a5a3110a9597462a4) )
ROM_END
*/
diff --git a/src/mess/drivers/mbc200.c b/src/mess/drivers/mbc200.c
index 95550612393..83799f85b06 100644
--- a/src/mess/drivers/mbc200.c
+++ b/src/mess/drivers/mbc200.c
@@ -140,13 +140,13 @@ INPUT_PORTS_END
void mbc200_state::machine_start()
{
-// floppy_image_device *floppy = NULL;
-// floppy = m_floppy0->get_device();
+// floppy_image_device *floppy = NULL;
+// floppy = m_floppy0->get_device();
// floppy1 not supported currently
-// m_fdc->set_floppy(floppy);
+// m_fdc->set_floppy(floppy);
-// if (floppy)
-// floppy->mon_w(0);
+// if (floppy)
+// floppy->mon_w(0);
m_floppy0->floppy_mon_w(0);
m_floppy1->floppy_mon_w(0);
@@ -169,7 +169,7 @@ static const floppy_interface mbc200_floppy_interface =
};
//static SLOT_INTERFACE_START( mbc200_floppies )
-// SLOT_INTERFACE( "525dd", FLOPPY_525_SSDD )
+// SLOT_INTERFACE( "525dd", FLOPPY_525_SSDD )
//SLOT_INTERFACE_END
MC6845_UPDATE_ROW( mbc200_state::update_row )
diff --git a/src/mess/drivers/mbee.c b/src/mess/drivers/mbee.c
index bf713df5aca..406b4f42e73 100644
--- a/src/mess/drivers/mbee.c
+++ b/src/mess/drivers/mbee.c
@@ -705,7 +705,7 @@ static MACHINE_CONFIG_START( mbee, mbee_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(mbee_cassette_formats)
- MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MACHINE_CONFIG_END
@@ -763,7 +763,7 @@ static MACHINE_CONFIG_START( mbeeic, mbee_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(mbee_cassette_formats)
- MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( mbeepc, mbeeic )
diff --git a/src/mess/drivers/mc1000.c b/src/mess/drivers/mc1000.c
index 0dd3fcdd0f5..665935c669d 100644
--- a/src/mess/drivers/mc1000.c
+++ b/src/mess/drivers/mc1000.c
@@ -449,7 +449,7 @@ static MACHINE_CONFIG_START( mc1000, mc1000_state )
/* devices */
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(mc1000_state, write_centronics_busy))
diff --git a/src/mess/drivers/mikro80.c b/src/mess/drivers/mikro80.c
index 0b5ab473f50..3229e091987 100644
--- a/src/mess/drivers/mikro80.c
+++ b/src/mess/drivers/mikro80.c
@@ -186,7 +186,7 @@ static MACHINE_CONFIG_START( mikro80, mikro80_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(rk8_cassette_formats)
- MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
+ MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( radio99, mikro80 )
diff --git a/src/mess/drivers/mikrosha.c b/src/mess/drivers/mikrosha.c
index ab8bb394308..7e565963cf6 100644
--- a/src/mess/drivers/mikrosha.c
+++ b/src/mess/drivers/mikrosha.c
@@ -237,7 +237,7 @@ static MACHINE_CONFIG_START( mikrosha, mikrosha_state )
MCFG_CASSETTE_FORMATS(rkm_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("mikrosha_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","mikrosha")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/minicom.c b/src/mess/drivers/minicom.c
index 84da9b0a354..6d93e5a8182 100644
--- a/src/mess/drivers/minicom.c
+++ b/src/mess/drivers/minicom.c
@@ -2,8 +2,8 @@
// copyright-holders: Felipe Sanches
/***************************************************************************
- Ultratec Minicom IV
- http://www.ultratec.com/ttys/non-printing/minicom.php
+ Ultratec Minicom IV
+ http://www.ultratec.com/ttys/non-printing/minicom.php
Driver by Felipe Sanches
@@ -26,7 +26,7 @@ Segment data is sent to each 14seg digit by first writing half of the data to po
toggling T0 and then the other half of data is written to P0 again but toggling T1 afterwards.
Changelog:
-
+
2014 JUL 19 [Felipe Sanches]:
* Got the display working except for a few glitches
@@ -71,7 +71,7 @@ void minicom_state::machine_start()
memset(m_p, 0, 4);
m_digit_index = 0;
m_display_data = 0;
-
+
// register for savestates
save_item(NAME(m_p));
save_item(NAME(m_digit_index));
@@ -89,15 +89,15 @@ void minicom_state::machine_reset()
READ8_MEMBER(minicom_state::minicom_io_r)
{
- switch (offset)
- {
+ switch (offset)
+ {
case 1:
//P1.3 seems to be an indicator of whether or not we have a printer device attached.
// at address 0xABF the code checks this flag in order to decide which string to display:
// "MINIPRINT IS RESET" or "MINICOM IS RESET"
return PRINTER_ATTACHED << 3;
- case 2:
-// return 0; //para a palestra no Garoa... :-)
+ case 2:
+// return 0; //para a palestra no Garoa... :-)
return 1; //to skip the "NO POWER" warning. I'm not sure why.
default:
#if LOG_IO_PORTS
@@ -122,22 +122,22 @@ static void printbits(UINT8 v) {
#define P3_UNKNOWN_BITS (0xFF & ~((1 << 4)|(1 << 5)))
WRITE8_MEMBER(minicom_state::minicom_io_w)
{
- switch (offset)
- {
- case 0x00:
- {
- m_p[offset]=data;
- break;
- }
- case 0x01:
- {
- if (data != m_p[offset])
- {
+ switch (offset)
+ {
+ case 0x00:
+ {
+ m_p[offset]=data;
+ break;
+ }
+ case 0x01:
+ {
+ if (data != m_p[offset])
+ {
#if LOG_IO_PORTS
UINT8 changed = m_p[offset] ^ data;
if (changed ^ P1_UNKNOWN_BITS)
{
- printf("Write to P1: %02X changed: ( ) (", data);
+ printf("Write to P1: %02X changed: ( ) (", data);
printbits(changed);
printf(") ( ) ( )\n");
}
@@ -147,36 +147,36 @@ WRITE8_MEMBER(minicom_state::minicom_io_w)
m_digit_index--;
if (m_digit_index<0) m_digit_index = 19;
}
- m_p[offset]=data;
- }
- break;
- }
- case 0x02:
- {
- if (data != m_p[offset])
- {
+ m_p[offset]=data;
+ }
+ break;
+ }
+ case 0x02:
+ {
+ if (data != m_p[offset])
+ {
#if LOG_IO_PORTS
UINT8 changed = m_p[offset] ^ data;
if (changed ^ P2_UNKNOWN_BITS)
{
- printf("Write to P2: %02X changed: ( ) ( ) (", data);
+ printf("Write to P2: %02X changed: ( ) ( ) (", data);
printbits(changed);
printf(") ( )\n");
}
#endif
- m_p[offset]=data;
- }
- break;
- }
- case 0x03:
- {
- if (data != m_p[offset])
- {
+ m_p[offset]=data;
+ }
+ break;
+ }
+ case 0x03:
+ {
+ if (data != m_p[offset])
+ {
UINT8 changed = m_p[offset] ^ data;
#if LOG_IO_PORTS
if (changed ^ P3_UNKNOWN_BITS)
{
- printf("Write to P3: %02X changed: ( ) ( ) ( ) (", data);
+ printf("Write to P3: %02X changed: ( ) ( ) ( ) (", data);
printbits(changed);
printf(")\n");
}
@@ -198,11 +198,11 @@ WRITE8_MEMBER(minicom_state::minicom_io_w)
{
output_set_digit_value(m_digit_index, BITSWAP16(m_display_data, 9, 1, 3, 11, 12, 4, 2, 10, 14, 6, 7, 5, 0, 15, 13, 8) & 0x3FFF);
}
- m_p[offset]=data;
- }
- break;
- }
- }
+ m_p[offset]=data;
+ }
+ break;
+ }
+ }
}
DRIVER_INIT_MEMBER( minicom_state, minicom )
@@ -216,7 +216,7 @@ static MACHINE_CONFIG_START( minicom, minicom_state )
/* video hardware */
/* fluorescent 14-segment display forming a row of 20 characters */
- MCFG_DEFAULT_LAYOUT(layout_minicom)
+ MCFG_DEFAULT_LAYOUT(layout_minicom)
/* TODO: Map the keyboard rows/cols inputs (43-key, 4-row keyboard) */
@@ -230,4 +230,4 @@ ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */
COMP( 1997, minicom, 0, 0, minicom, 0, minicom_state, minicom, "Ultratec", "Minicom IV", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND) /* fw release data: 11th Aug 1997 */
-//COMP( 2002, minicom, 0, 0, minicom, 0, minicom_state, minicom, "Ultratec", "Minicom IV", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND) /* fw release data: 19th Apr 2002 - Seen at a subway station in São Paulo, Brazil (Metrô Trianon MASP) */
+//COMP( 2002, minicom, 0, 0, minicom, 0, minicom_state, minicom, "Ultratec", "Minicom IV", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND) /* fw release data: 19th Apr 2002 - Seen at a subway station in S??o Paulo, Brazil (Metr?? Trianon MASP) */
diff --git a/src/mess/drivers/mmd1.c b/src/mess/drivers/mmd1.c
index e607001db2c..9ba8d15f758 100644
--- a/src/mess/drivers/mmd1.c
+++ b/src/mess/drivers/mmd1.c
@@ -502,10 +502,10 @@ static MACHINE_CONFIG_START( mmd2, mmd1_state )
/* Devices */
MCFG_DEVICE_ADD("i8279", I8279, 400000) // based on divider
- MCFG_I8279_OUT_SL_CB(WRITE8(mmd1_state, mmd2_scanlines_w)) // scan SL lines
- MCFG_I8279_OUT_DISP_CB(WRITE8(mmd1_state, mmd2_digit_w)) // display A&B
- MCFG_I8279_IN_RL_CB(READ8(mmd1_state, mmd2_kbd_r)) // kbd RL lines
- MCFG_I8279_IN_SHIFT_CB(VCC) // Shift key
+ MCFG_I8279_OUT_SL_CB(WRITE8(mmd1_state, mmd2_scanlines_w)) // scan SL lines
+ MCFG_I8279_OUT_DISP_CB(WRITE8(mmd1_state, mmd2_digit_w)) // display A&B
+ MCFG_I8279_IN_RL_CB(READ8(mmd1_state, mmd2_kbd_r)) // kbd RL lines
+ MCFG_I8279_IN_SHIFT_CB(VCC) // Shift key
MCFG_I8279_IN_CTRL_CB(VCC)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/ms0515.c b/src/mess/drivers/ms0515.c
index 37bab7fdc0f..493b15a43fd 100644
--- a/src/mess/drivers/ms0515.c
+++ b/src/mess/drivers/ms0515.c
@@ -134,12 +134,12 @@ static INPUT_PORTS_START( ms0515 )
INPUT_PORTS_END
/*
static LEGACY_FLOPPY_OPTIONS_START(ms0515)
- LEGACY_FLOPPY_OPTION(ms0515, "dsk", "MS0515 disk image", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([80])
- SECTORS([10])
- SECTOR_LENGTH([512])
- FIRST_SECTOR_ID([0]))
+ LEGACY_FLOPPY_OPTION(ms0515, "dsk", "MS0515 disk image", basicdsk_identify_default, basicdsk_construct_default, NULL,
+ HEADS([1])
+ TRACKS([80])
+ SECTORS([10])
+ SECTOR_LENGTH([512])
+ FIRST_SECTOR_ID([0]))
LEGACY_FLOPPY_OPTIONS_END
*/
diff --git a/src/mess/drivers/ms9540.c b/src/mess/drivers/ms9540.c
index 91331dd9393..b5fd4dca4a6 100644
--- a/src/mess/drivers/ms9540.c
+++ b/src/mess/drivers/ms9540.c
@@ -85,7 +85,7 @@ static MACHINE_CONFIG_START( ms9540, ms9540_state )
/* video hardware */
MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0)
MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(ms9540_state, kbd_put))
-
+
MACHINE_CONFIG_END
/* ROM definition */
diff --git a/src/mess/drivers/msx.c b/src/mess/drivers/msx.c
index 20e1b11509e..81e758fd953 100644
--- a/src/mess/drivers/msx.c
+++ b/src/mess/drivers/msx.c
@@ -1224,7 +1224,7 @@ static MACHINE_CONFIG_START( msx, msx_state )
/* cassette */
MCFG_CASSETTE_ADD( "cassette" )
- MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
+ MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
MCFG_CASSETTE_INTERFACE("msx_cass")
@@ -1236,7 +1236,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( msx_ntsc, msx )
/* Video hardware */
MCFG_DEVICE_ADD( "tms9928a", TMS9928A, XTAL_10_738635MHz / 2 )
- MCFG_TMS9928A_VRAM_SIZE(0x4000)
+ MCFG_TMS9928A_VRAM_SIZE(0x4000)
MCFG_TMS9928A_OUT_INT_LINE_CB(WRITELINE(msx_state,msx_irq_source0))
MCFG_TMS9928A_SCREEN_ADD_NTSC( "screen" )
MCFG_SCREEN_UPDATE_DEVICE("tms9928a", tms9928a_device, screen_update)
@@ -1246,7 +1246,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( msx_pal, msx )
/* Video hardware */
MCFG_DEVICE_ADD( "tms9928a", TMS9929A, XTAL_10_738635MHz / 2 )
- MCFG_TMS9928A_VRAM_SIZE(0x4000)
+ MCFG_TMS9928A_VRAM_SIZE(0x4000)
MCFG_TMS9928A_OUT_INT_LINE_CB(WRITELINE(msx_state,msx_irq_source0))
MCFG_TMS9928A_SCREEN_ADD_PAL( "screen" )
MCFG_SCREEN_UPDATE_DEVICE("tms9928a", tms9928a_device, screen_update)
@@ -1316,7 +1316,7 @@ static MACHINE_CONFIG_START( msx2, msx_state )
/* cassette */
MCFG_CASSETTE_ADD( "cassette" )
- MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
+ MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
MCFG_CASSETTE_INTERFACE("msx_cass")
@@ -1384,7 +1384,7 @@ static MACHINE_CONFIG_START( msx2p, msx_state )
/* cassette */
MCFG_CASSETTE_ADD( "cassette" )
- MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
+ MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
MCFG_CASSETTE_INTERFACE("msx_cass")
@@ -1462,9 +1462,9 @@ static MACHINE_CONFIG_DERIVED( canonv10, msx_pal )
// FDC: None, 0 drives
// 2 Cartridge slots
- MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
+ MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0)
- MCFG_MSX_LAYOUT_RAM("ram", 2, 0, 3, 1) /* 16KB RAM */
+ MCFG_MSX_LAYOUT_RAM("ram", 2, 0, 3, 1) /* 16KB RAM */
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot12", 3, 0)
MCFG_FRAGMENT_ADD( msx1_cartlist )
@@ -1481,7 +1481,7 @@ static MACHINE_CONFIG_DERIVED( canonv20, msx_pal )
// FDC: None, 0 drives
// 2 Cartridge slots
- MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
+ MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0)
MCFG_MSX_LAYOUT_RAM("ram", 2, 0, 0, 4) /* 64KB RAM */
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot2", 3, 0)
@@ -1497,7 +1497,7 @@ ROM_START (pv16)
ROM_END
static MACHINE_CONFIG_DERIVED( pv16, msx_ntsc )
- // AY8910
+ // AY8910
// FDC: None, 0 drives
// 1 Cartridge slot
// No printer port
@@ -2540,7 +2540,7 @@ MACHINE_CONFIG_END
ROM_START (svi728)
ROM_REGION (0xc000, "maincpu", 0)
ROM_LOAD ("728bios.rom", 0x0000, 0x8000, CRC(1ce9246c) SHA1(ea6a82cf8c6e65eb30b98755c8577cde8d9186c0))
-// ROM_LOAD ("707disk.rom", 0x8000, 0x4000, CRC(f9978853) SHA1(6aa856cc56eb98863c9da7a566571605682b5c6b))
+// ROM_LOAD ("707disk.rom", 0x8000, 0x4000, CRC(f9978853) SHA1(6aa856cc56eb98863c9da7a566571605682b5c6b))
ROM_END
static MACHINE_CONFIG_DERIVED( svi728, msx_pal )
@@ -4573,7 +4573,7 @@ static MACHINE_CONFIG_DERIVED( hbf500p, msx2_pal )
MCFG_MSX_LAYOUT_RAM("ram2", 0, 2, 0, 2) /* 32KB RAM */
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0)
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot2", 2, 0)
- MCFG_MSX_LAYOUT_ROM("empty", 3, 0, 0, 4, "maincpu", 0x10000) // Empty? or is this the 3rd cartridge/expansion slot ? 0x10000 used to be the "special" loading spot for the fmpac rom
+ MCFG_MSX_LAYOUT_ROM("empty", 3, 0, 0, 4, "maincpu", 0x10000) // Empty? or is this the 3rd cartridge/expansion slot ? 0x10000 used to be the "special" loading spot for the fmpac rom
MCFG_FRAGMENT_ADD( msx2_cartlist )
MACHINE_CONFIG_END
@@ -4730,7 +4730,7 @@ static MACHINE_CONFIG_DERIVED( hbf900, msx2 )
MCFG_MSX_LAYOUT_DISK1("disk", 3, 0, 1, 1, "maincpu", 0xc000)
MCFG_MSX_LAYOUT_RAM_MM("ram_mm", 3, 1, 0x40000) /* 256KB Mapper RAM */
MCFG_MSX_RAMIO_SET_BITS(0x80)
- MCFG_MSX_LAYOUT_ROM("empty", 3, 3, 1, 1, "maincpu", 0x10000) // Empty/unknown, optional fmpac rom used to be loaded here, or should the util rom be loaded?
+ MCFG_MSX_LAYOUT_ROM("empty", 3, 3, 1, 1, "maincpu", 0x10000) // Empty/unknown, optional fmpac rom used to be loaded here, or should the util rom be loaded?
MCFG_FRAGMENT_ADD( msx_wd2793_force_ready )
MCFG_FRAGMENT_ADD( msx_2_35_dd_drive )
@@ -4844,7 +4844,7 @@ static MACHINE_CONFIG_DERIVED( hbf9s, msx2_pal )
// YM2149 (in S-1985 MSX Engine)
// FDC: None, 0 drives
// 2 Cartridge slots
- // S-1985 MSX Engine
+ // S-1985 MSX Engine
MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0)
@@ -4955,7 +4955,7 @@ static MACHINE_CONFIG_DERIVED( tpc310, msx2_pal )
MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_RAM_MM("ram_mm", 1, 0, 0x20000) /* 128KB Mapper RAM */
- MCFG_MSX_RAMIO_SET_BITS(0x80)
+ MCFG_MSX_RAMIO_SET_BITS(0x80)
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot", 2, 0)
MCFG_MSX_LAYOUT_ROM("ext", 3, 0, 0, 1, "maincpu", 0x8000)
MCFG_MSX_LAYOUT_ROM("turbo", 3, 0, 1, 1, "maincpu", 0x20000)
@@ -5210,8 +5210,8 @@ ROM_END
static MACHINE_CONFIG_DERIVED( expert3t, msx2p )
// AY8910
// FDC: wd2793?, 1 or 2? drives
- // 4 Cartridge/Expansion slots?
- // FM/YM2413 built-in
+ // 4 Cartridge/Expansion slots?
+ // FM/YM2413 built-in
MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0)
@@ -5750,9 +5750,9 @@ ROM_END
static MACHINE_CONFIG_DERIVED( fsa1gt, msx2 )
// AY8910/YM2149?
// FDC: tc8566af, 1 3.5" DSDD drive
- // 2 Cartridge slots
- // FM built-in
- // MIDI
+ // 2 Cartridge slots
+ // FM built-in
+ // MIDI
MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_MUSIC("mus", 0, 2, 1, 1, "maincpu", 0x38000)
@@ -5793,8 +5793,8 @@ ROM_END
static MACHINE_CONFIG_DERIVED( fsa1st, msx2 )
// AY8910/YM2149?
// FDC: tc8566af, 1 3.5" DSDD drive
- // 2 Cartridge slots
- // FM built-in
+ // 2 Cartridge slots
+ // FM built-in
MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000)
MCFG_MSX_LAYOUT_MUSIC("mus", 0, 2, 1, 1, "maincpu", 0x38000)
diff --git a/src/mess/drivers/mtx.c b/src/mess/drivers/mtx.c
index 39c5fafdb3c..73fcaa93082 100644
--- a/src/mess/drivers/mtx.c
+++ b/src/mess/drivers/mtx.c
@@ -323,7 +323,7 @@ static MACHINE_CONFIG_START( mtx512, mtx_state )
MCFG_SNAPSHOT_ADD("snapshot", mtx_state, mtx, "mtx", 1)
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("cassette_timer", mtx_state, cassette_tick, attotime::from_hz(44100))
/* internal ram */
diff --git a/src/mess/drivers/myb3k.c b/src/mess/drivers/myb3k.c
index 7b391132004..7a456ea380c 100644
--- a/src/mess/drivers/myb3k.c
+++ b/src/mess/drivers/myb3k.c
@@ -269,7 +269,7 @@ static MACHINE_CONFIG_START( myb3k, myb3k_state )
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(8)
- MCFG_DEVICE_ADD("fdc", MB8877x, 2000000) // unknown type
+ MCFG_DEVICE_ADD("fdc", MB8877x, 2000000) // unknown type
MCFG_FLOPPY_DRIVE_ADD("fdc:0", myb3k_floppies, "8dsdd", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("fdc:1", myb3k_floppies, "8dsdd", floppy_image_device::default_floppy_formats)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/mz2000.c b/src/mess/drivers/mz2000.c
index 528ca67e2c4..b9feb43c83a 100644
--- a/src/mess/drivers/mz2000.c
+++ b/src/mess/drivers/mz2000.c
@@ -829,7 +829,7 @@ static MACHINE_CONFIG_START( mz2000, mz2000_state )
MCFG_CASSETTE_FORMATS(mz700_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("mz_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","mz2000_cass")
/* video hardware */
diff --git a/src/mess/drivers/mz700.c b/src/mess/drivers/mz700.c
index f29e57bda44..636f2f9b066 100644
--- a/src/mess/drivers/mz700.c
+++ b/src/mess/drivers/mz700.c
@@ -367,7 +367,7 @@ static MACHINE_CONFIG_START( mz700, mz_state )
MCFG_CASSETTE_FORMATS(mz700_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("mz_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","mz700_cass")
/* internal ram */
diff --git a/src/mess/drivers/nascom1.c b/src/mess/drivers/nascom1.c
index 768a1acb83b..3f0978b14f0 100644
--- a/src/mess/drivers/nascom1.c
+++ b/src/mess/drivers/nascom1.c
@@ -281,7 +281,7 @@ static MACHINE_CONFIG_START( nascom1, nascom1_state )
MCFG_AY31015_RX_CLOCK(( XTAL_16MHz / 16 ) / 256)
MCFG_AY51013_READ_SI_CB(READ8(nascom1_state, nascom1_hd6402_si))
MCFG_AY51013_WRITE_SO_CB(WRITE8(nascom1_state, nascom1_hd6402_so))
-
+
MCFG_DEVICE_ADD("z80pio", Z80PIO, XTAL_16MHz/8)
/* devices */
diff --git a/src/mess/drivers/nes.c b/src/mess/drivers/nes.c
index 7e263c472b5..9c3183e24ca 100644
--- a/src/mess/drivers/nes.c
+++ b/src/mess/drivers/nes.c
@@ -749,7 +749,7 @@ static MACHINE_CONFIG_DERIVED( famicom, nes )
MCFG_CASSETTE_ADD( "tape" )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("fc_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list", "famicom_cass")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/newbrain.c b/src/mess/drivers/newbrain.c
index 87641f6c55a..47c165d7343 100644
--- a/src/mess/drivers/newbrain.c
+++ b/src/mess/drivers/newbrain.c
@@ -1334,7 +1334,7 @@ static MACHINE_CONFIG_START( newbrain_a, newbrain_state )
// devices
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_CASSETTE_ADD("cassette2")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
diff --git a/src/mess/drivers/next.c b/src/mess/drivers/next.c
index dc6eabb6e7b..ce7f1fcd2d2 100644
--- a/src/mess/drivers/next.c
+++ b/src/mess/drivers/next.c
@@ -13,7 +13,7 @@
- Really implement the MO, it's only faking it for the startup test right now
- - Fix the networking
+ - Fix the networking
- Find out why netbsd goes to hell even before loading the kernel
diff --git a/src/mess/drivers/ng_aes.c b/src/mess/drivers/ng_aes.c
index 7da28235707..7462cea87b0 100644
--- a/src/mess/drivers/ng_aes.c
+++ b/src/mess/drivers/ng_aes.c
@@ -1122,7 +1122,7 @@ MACHINE_RESET_MEMBER(ng_aes_state,neocd)
*************************************/
static ADDRESS_MAP_START( aes_main_map, AS_PROGRAM, 16, ng_aes_state )
-// AM_RANGE(0x000000, 0x00007f) AM_ROMBANK("vectors")
+// AM_RANGE(0x000000, 0x00007f) AM_ROMBANK("vectors")
AM_RANGE(0x000000, 0x00007f) AM_READ(neogeo_slot_rom_low_bectors_r)
AM_RANGE(0x000080, 0x0fffff) AM_ROM
AM_RANGE(0x100000, 0x10ffff) AM_MIRROR(0x0f0000) AM_RAM
@@ -1149,8 +1149,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( neocd_main_map, AS_PROGRAM, 16, ng_aes_state )
-// AM_RANGE(0x000000, 0x00007f) AM_READ_BANK("vectors") // writes will fall through to area below
- AM_RANGE(0x000000, 0x00007f) AM_READ(banked_vectors_r)
+// AM_RANGE(0x000000, 0x00007f) AM_READ_BANK("vectors") // writes will fall through to area below
+ AM_RANGE(0x000000, 0x00007f) AM_READ(banked_vectors_r)
AM_RANGE(0x000000, 0x1fffff) AM_RAM AM_REGION("maincpu", 0x00000)
AM_RANGE(0x300000, 0x300001) AM_MIRROR(0x01fffe) AM_READ(aes_in0_r)
diff --git a/src/mess/drivers/ondra.c b/src/mess/drivers/ondra.c
index fe88d3e595b..899e13514b6 100644
--- a/src/mess/drivers/ondra.c
+++ b/src/mess/drivers/ondra.c
@@ -139,7 +139,7 @@ static MACHINE_CONFIG_START( ondra, ondra_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("ondra_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","ondra")
/* internal ram */
diff --git a/src/mess/drivers/orao.c b/src/mess/drivers/orao.c
index 92055df0489..ca9bd1aeb8c 100644
--- a/src/mess/drivers/orao.c
+++ b/src/mess/drivers/orao.c
@@ -190,7 +190,7 @@ static MACHINE_CONFIG_START( orao, orao_state )
MCFG_CASSETTE_FORMATS(orao_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("orao_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","orao")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/oric.c b/src/mess/drivers/oric.c
index 6299fc972b7..ffc1af80048 100644
--- a/src/mess/drivers/oric.c
+++ b/src/mess/drivers/oric.c
@@ -13,7 +13,7 @@
Apple 2 disc drives for storage.
This driver originally by Paul Cook, rewritten by Kevin Thacker,
- re-rewritten by Olivier Galibert.
+ re-rewritten by Olivier Galibert.
*********************************************************************/
@@ -46,21 +46,21 @@ public:
oric_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_psg(*this, "ay8912"),
- m_centronics(*this, "centronics"),
- m_cent_data_out(*this, "cent_data_out"),
- m_cassette(*this, "cassette"),
- m_via(*this, "via6522"),
- m_ram(*this, "ram"),
- m_rom(*this, "maincpu"),
- m_bank_c000_r(*this, "bank_c000_r"),
- m_bank_e000_r(*this, "bank_e000_r"),
- m_bank_f800_r(*this, "bank_f800_r"),
- m_bank_c000_w(*this, "bank_c000_w"),
- m_bank_e000_w(*this, "bank_e000_w"),
- m_bank_f800_w(*this, "bank_f800_w"),
- m_config(*this, "CONFIG") { }
+ m_maincpu(*this, "maincpu"),
+ m_psg(*this, "ay8912"),
+ m_centronics(*this, "centronics"),
+ m_cent_data_out(*this, "cent_data_out"),
+ m_cassette(*this, "cassette"),
+ m_via(*this, "via6522"),
+ m_ram(*this, "ram"),
+ m_rom(*this, "maincpu"),
+ m_bank_c000_r(*this, "bank_c000_r"),
+ m_bank_e000_r(*this, "bank_e000_r"),
+ m_bank_f800_r(*this, "bank_f800_r"),
+ m_bank_c000_w(*this, "bank_c000_w"),
+ m_bank_e000_w(*this, "bank_e000_w"),
+ m_bank_f800_w(*this, "bank_f800_w"),
+ m_config(*this, "CONFIG") { }
DECLARE_INPUT_CHANGED_MEMBER(nmi_pressed);
DECLARE_WRITE8_MEMBER(via_a_w);
@@ -120,7 +120,7 @@ public:
m_telmon24(*this, "telmon24"),
m_joy1(*this, "JOY1"),
m_joy2(*this, "JOY2")
- { }
+ { }
DECLARE_WRITE8_MEMBER(via2_a_w);
DECLARE_WRITE8_MEMBER(via2_b_w);
@@ -307,7 +307,7 @@ void oric_state::update_irq()
INPUT_CHANGED_MEMBER(oric_state::nmi_pressed)
{
- m_maincpu->set_input_line(m6502_device::NMI_LINE, newval ? ASSERT_LINE : CLEAR_LINE);
+ m_maincpu->set_input_line(m6502_device::NMI_LINE, newval ? ASSERT_LINE : CLEAR_LINE);
}
WRITE8_MEMBER(oric_state::via_a_w)
@@ -323,7 +323,7 @@ WRITE8_MEMBER(oric_state::via_b_w)
update_keyboard();
m_centronics->write_strobe(data & 0x10 ? 1 : 0);
m_cassette->change_state(data & 0x40 ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
- CASSETTE_MOTOR_DISABLED);
+ CASSETTE_MOTOR_DISABLED);
m_cassette->output(data & 0x80 ? -1.0 : +1.0);
}
@@ -426,11 +426,11 @@ void telestrat_state::machine_reset()
void telestrat_state::update_irq()
{
m_maincpu->set_input_line(m6502_device::IRQ_LINE,
- m_via_irq ||
- m_ext_irq ||
- (m_fdc_irq && (m_port_314 & P_IRQEN)) ||
- m_via2_irq ||
- m_acia_irq ? ASSERT_LINE : CLEAR_LINE);
+ m_via_irq ||
+ m_ext_irq ||
+ (m_fdc_irq && (m_port_314 & P_IRQEN)) ||
+ m_via2_irq ||
+ m_acia_irq ? ASSERT_LINE : CLEAR_LINE);
}
WRITE8_MEMBER(telestrat_state::via2_a_w)
@@ -801,7 +801,7 @@ static MACHINE_CONFIG_START( oric, oric_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(oric_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape_timer", oric_state, update_tape, attotime::from_hz(4800))
/* via */
@@ -933,8 +933,8 @@ ROM_END
ROM_START(prav8d)
ROM_REGION(0x4000, "maincpu", 0) /* 0x10000 + 0x04000 + 0x00100 + 0x00200 */
ROM_LOAD( "pravetzt.rom", 0, 0x4000, CRC(58079502) SHA1(7afc276cb118adff72e4f16698f94bf3b2c64146) )
-// ROM_LOAD_OPTIONAL( "8ddoslo.rom", 0x014000, 0x0100, CRC(0c82f636) SHA1(b29d151a0dfa3c7cd50439b51d0a8f95559bc2b6) )
-// ROM_LOAD_OPTIONAL( "8ddoshi.rom", 0x014100, 0x0200, CRC(66309641) SHA1(9c2e82b3c4d385ade6215fcb89f8b92e6fd2bf4b) )
+// ROM_LOAD_OPTIONAL( "8ddoslo.rom", 0x014000, 0x0100, CRC(0c82f636) SHA1(b29d151a0dfa3c7cd50439b51d0a8f95559bc2b6) )
+// ROM_LOAD_OPTIONAL( "8ddoshi.rom", 0x014100, 0x0200, CRC(66309641) SHA1(9c2e82b3c4d385ade6215fcb89f8b92e6fd2bf4b) )
ROM_END
ROM_START(prav8dd)
@@ -943,8 +943,8 @@ ROM_START(prav8dd)
ROMX_LOAD( "8d.rom", 0, 0x4000, CRC(b48973ef) SHA1(fd47c977fc215a3b577596a7483df53e8a1e9c83), ROM_BIOS(1) )
ROM_SYSTEM_BIOS( 1, "radosoft", "RadoSoft Disk ROM, 1992")
ROMX_LOAD( "pravetzd.rom", 0, 0x4000, CRC(f8d23821) SHA1(f87ad3c5832773b6e0614905552a80c98dc8e2a5), ROM_BIOS(2) )
-// ROM_LOAD_OPTIONAL( "8ddoslo.rom", 0x014000, 0x0100, CRC(0c82f636) SHA1(b29d151a0dfa3c7cd50439b51d0a8f95559bc2b6) )
-// ROM_LOAD_OPTIONAL( "8ddoshi.rom", 0x014100, 0x0200, CRC(66309641) SHA1(9c2e82b3c4d385ade6215fcb89f8b92e6fd2bf4b) )
+// ROM_LOAD_OPTIONAL( "8ddoslo.rom", 0x014000, 0x0100, CRC(0c82f636) SHA1(b29d151a0dfa3c7cd50439b51d0a8f95559bc2b6) )
+// ROM_LOAD_OPTIONAL( "8ddoshi.rom", 0x014100, 0x0200, CRC(66309641) SHA1(9c2e82b3c4d385ade6215fcb89f8b92e6fd2bf4b) )
ROM_END
diff --git a/src/mess/drivers/orion.c b/src/mess/drivers/orion.c
index 7382e2083d9..3516d311a77 100644
--- a/src/mess/drivers/orion.c
+++ b/src/mess/drivers/orion.c
@@ -123,7 +123,7 @@ static MACHINE_CONFIG_START( orion128, orion_state )
MCFG_CASSETTE_FORMATS(rko_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("orion_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","orion_cass")
MCFG_FD1793x_ADD("fd1793", XTAL_8MHz / 8)
@@ -202,7 +202,7 @@ static MACHINE_CONFIG_START( orionz80, orion_state )
MCFG_CASSETTE_FORMATS(rko_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("orion_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","orion_cass")
MCFG_FD1793x_ADD("fd1793", XTAL_8MHz / 8)
@@ -277,7 +277,7 @@ static MACHINE_CONFIG_START( orionpro, orion_state )
MCFG_CASSETTE_FORMATS(rko_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("orion_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","orion_cass")
MCFG_FD1793x_ADD("fd1793", XTAL_8MHz / 8)
diff --git a/src/mess/drivers/osbexec.c b/src/mess/drivers/osbexec.c
index 4dcd8d92e9b..05a92102742 100644
--- a/src/mess/drivers/osbexec.c
+++ b/src/mess/drivers/osbexec.c
@@ -437,38 +437,38 @@ WRITE_LINE_MEMBER(osbexec_state::osbexec_pia1_irq)
* - DEC 1820 double density: 40 tracks, 9 sectors per track, 512-byte sectors (180 KByte)
*
*/
- /*
+ /*
static LEGACY_FLOPPY_OPTIONS_START(osbexec )
LEGACY_FLOPPY_OPTION( osd, "img", "Osborne single density", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([10])
- SECTOR_LENGTH([256])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([10])
+ SECTOR_LENGTH([256])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( odd, "img", "Osborne double density", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([5])
- SECTOR_LENGTH([1024])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([5])
+ SECTOR_LENGTH([1024])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( ibm, "img", "IBM Personal Computer", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([8])
- SECTOR_LENGTH([512])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([8])
+ SECTOR_LENGTH([512])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( xerox, "img", "Xerox 820 Computer", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([18])
- SECTOR_LENGTH([128])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([18])
+ SECTOR_LENGTH([128])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( dec, "img", "DEC 1820 double density", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([9])
- SECTOR_LENGTH([512])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([9])
+ SECTOR_LENGTH([512])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTIONS_END
*/
diff --git a/src/mess/drivers/osborne1.c b/src/mess/drivers/osborne1.c
index e9e159b12d0..6f94cec2044 100644
--- a/src/mess/drivers/osborne1.c
+++ b/src/mess/drivers/osborne1.c
@@ -166,38 +166,38 @@ static const z80_daisy_config osborne1_daisy_chain[] =
* - DEC 1820 double density: 40 tracks, 9 sectors per track, 512-byte sectors (180 KByte)
*
*/
- /*
+ /*
static LEGACY_FLOPPY_OPTIONS_START(osborne1 )
LEGACY_FLOPPY_OPTION( osd, "img", "Osborne single density", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([10])
- SECTOR_LENGTH([256])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([10])
+ SECTOR_LENGTH([256])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( odd, "img", "Osborne double density", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([5])
- SECTOR_LENGTH([1024])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([5])
+ SECTOR_LENGTH([1024])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( ibm, "img", "IBM Personal Computer", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([8])
- SECTOR_LENGTH([512])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([8])
+ SECTOR_LENGTH([512])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( xerox, "img", "Xerox 820 Computer", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([18])
- SECTOR_LENGTH([128])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([18])
+ SECTOR_LENGTH([128])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTION( dec, "img", "DEC 1820 double density", basicdsk_identify_default, basicdsk_construct_default, NULL,
- HEADS([1])
- TRACKS([40])
- SECTORS([9])
- SECTOR_LENGTH([512])
- FIRST_SECTOR_ID([1]))
+ HEADS([1])
+ TRACKS([40])
+ SECTORS([9])
+ SECTOR_LENGTH([512])
+ FIRST_SECTOR_ID([1]))
LEGACY_FLOPPY_OPTIONS_END
*/
diff --git a/src/mess/drivers/partner.c b/src/mess/drivers/partner.c
index 0104900bb59..77bc9137783 100644
--- a/src/mess/drivers/partner.c
+++ b/src/mess/drivers/partner.c
@@ -207,7 +207,7 @@ static MACHINE_CONFIG_START( partner, partner_state )
MCFG_CASSETTE_FORMATS(rkp_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("partner_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","partner_cass")
MCFG_FD1793x_ADD("wd1793", XTAL_16MHz / 16)
diff --git a/src/mess/drivers/pasopia7.c b/src/mess/drivers/pasopia7.c
index 77e4de73dc7..d0dfd7926f9 100644
--- a/src/mess/drivers/pasopia7.c
+++ b/src/mess/drivers/pasopia7.c
@@ -938,7 +938,7 @@ static MACHINE_CONFIG_START( p7_base, pasopia7_state )
MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_4MHz)
MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
MCFG_Z80CTC_ZC0_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg1))
- MCFG_Z80CTC_ZC1_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg2)) // beep interface
+ MCFG_Z80CTC_ZC1_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg2)) // beep interface
MCFG_Z80CTC_ZC2_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg3))
MCFG_DEVICE_ADD("z80pio", Z80PIO, XTAL_4MHz)
diff --git a/src/mess/drivers/pc1500.c b/src/mess/drivers/pc1500.c
index 68fa62f51e4..449927a40a9 100644
--- a/src/mess/drivers/pc1500.c
+++ b/src/mess/drivers/pc1500.c
@@ -36,7 +36,7 @@ public:
required_shared_ptr<UINT8> m_lcd_data;
required_ioport_array<8> m_keyboard;
required_ioport m_io_on;
-
+
UINT8 m_kb_matrix;
UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -72,7 +72,7 @@ READ8_MEMBER( pc1500_state::pc1500_kb_r )
UINT8 data = 0xff;
if (!started()) return 0;
-
+
for (int i = 0; i < 8; i++)
{
if (!BIT(m_kb_matrix, i))
diff --git a/src/mess/drivers/pc1512.c b/src/mess/drivers/pc1512.c
index b2afb83e76b..95f3d16b82a 100644
--- a/src/mess/drivers/pc1512.c
+++ b/src/mess/drivers/pc1512.c
@@ -1230,7 +1230,7 @@ static MACHINE_CONFIG_START( pc1512, pc1512_state )
MCFG_I8237_OUT_IOW_0_CB(WRITE8(pc1512_state, iow0_w))
MCFG_I8237_OUT_IOW_1_CB(WRITE8(pc1512_state, iow1_w))
MCFG_I8237_OUT_IOW_2_CB(WRITE8(pc1512_state, iow2_w))
- MCFG_I8237_OUT_IOW_3_CB(WRITE8(pc1512_state, iow3_w))
+ MCFG_I8237_OUT_IOW_3_CB(WRITE8(pc1512_state, iow3_w))
MCFG_I8237_OUT_DACK_0_CB(WRITELINE(pc1512_state, dack0_w))
MCFG_I8237_OUT_DACK_1_CB(WRITELINE(pc1512_state, dack1_w))
MCFG_I8237_OUT_DACK_2_CB(WRITELINE(pc1512_state, dack2_w))
@@ -1257,7 +1257,7 @@ static MACHINE_CONFIG_START( pc1512, pc1512_state )
MCFG_INS8250_OUT_DTR_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
MCFG_INS8250_OUT_RTS_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_rts))
MCFG_INS8250_OUT_INT_CB(DEVWRITELINE(I8259A2_TAG, pic8259_device, ir4_w))
-
+
MCFG_CENTRONICS_ADD("centronics", centronics_printers, "printer")
MCFG_CENTRONICS_ACK_HANDLER(WRITELINE(pc1512_state, write_centronics_ack))
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(pc1512_state, write_centronics_busy))
@@ -1350,7 +1350,7 @@ static MACHINE_CONFIG_START( pc1640, pc1640_state )
MCFG_I8237_OUT_IOW_0_CB(WRITE8(pc1512_state, iow0_w))
MCFG_I8237_OUT_IOW_1_CB(WRITE8(pc1512_state, iow1_w))
MCFG_I8237_OUT_IOW_2_CB(WRITE8(pc1512_state, iow2_w))
- MCFG_I8237_OUT_IOW_3_CB(WRITE8(pc1512_state, iow3_w))
+ MCFG_I8237_OUT_IOW_3_CB(WRITE8(pc1512_state, iow3_w))
MCFG_I8237_OUT_DACK_0_CB(WRITELINE(pc1512_state, dack0_w))
MCFG_I8237_OUT_DACK_1_CB(WRITELINE(pc1512_state, dack1_w))
MCFG_I8237_OUT_DACK_2_CB(WRITELINE(pc1512_state, dack2_w))
@@ -1377,7 +1377,7 @@ static MACHINE_CONFIG_START( pc1640, pc1640_state )
MCFG_INS8250_OUT_DTR_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
MCFG_INS8250_OUT_RTS_CB(DEVWRITELINE(RS232_TAG, rs232_port_device, write_rts))
MCFG_INS8250_OUT_INT_CB(DEVWRITELINE(I8259A2_TAG, pic8259_device, ir4_w))
-
+
MCFG_CENTRONICS_ADD("centronics", centronics_printers, "printer")
MCFG_CENTRONICS_ACK_HANDLER(WRITELINE(pc1512_state, write_centronics_ack))
diff --git a/src/mess/drivers/pc8801.c b/src/mess/drivers/pc8801.c
index b37e67b43d6..a066caedd3b 100644
--- a/src/mess/drivers/pc8801.c
+++ b/src/mess/drivers/pc8801.c
@@ -2608,7 +2608,7 @@ static MACHINE_CONFIG_START( pc8801, pc8801_state )
//MCFG_CENTRONICS_ADD("centronics", centronics_printers, "printer")
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_SOFTWARE_LIST_ADD("tape_list","pc8801_cass")
MCFG_DEVICE_ADD(I8251_TAG, I8251, 0)
diff --git a/src/mess/drivers/pcm.c b/src/mess/drivers/pcm.c
index 9e4bbd6b652..1f27cbb5136 100644
--- a/src/mess/drivers/pcm.c
+++ b/src/mess/drivers/pcm.c
@@ -298,7 +298,7 @@ static MACHINE_CONFIG_START( pcm, pcm_state )
MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
// ZC0 : SIO channel A clock
// ZC1 : SIO channel B clock
- MCFG_Z80CTC_ZC2_CB(WRITELINE(pcm_state, pcm_82_w)) // speaker
+ MCFG_Z80CTC_ZC2_CB(WRITELINE(pcm_state, pcm_82_w)) // speaker
MACHINE_CONFIG_END
/* ROM definition */
diff --git a/src/mess/drivers/pecom.c b/src/mess/drivers/pecom.c
index cfb9aedff9a..8509dd03681 100644
--- a/src/mess/drivers/pecom.c
+++ b/src/mess/drivers/pecom.c
@@ -185,7 +185,7 @@ static MACHINE_CONFIG_START( pecom64, pecom_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("pecom_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","pecom_cass")
/* internal ram */
diff --git a/src/mess/drivers/pet.c b/src/mess/drivers/pet.c
index 9edd25e5fec..4ec2d912c2f 100644
--- a/src/mess/drivers/pet.c
+++ b/src/mess/drivers/pet.c
@@ -1761,7 +1761,7 @@ static MACHINE_CONFIG_DERIVED( cbm4032f, cbm4000 )
MCFG_SCREEN_VISIBLE_AREA(0, 320 - 1, 0, 250 - 1)
MCFG_SCREEN_UPDATE_DEVICE(MC6845_TAG, mc6845_device, screen_update)
MCFG_DEVICE_REMOVE("sync_timer")
-
+
MCFG_MC6845_ADD(MC6845_TAG, MC6845, SCREEN_TAG, XTAL_16MHz/16)
MCFG_MC6845_SHOW_BORDER_AREA(true)
MCFG_MC6845_CHAR_WIDTH(8)
diff --git a/src/mess/drivers/phc25.c b/src/mess/drivers/phc25.c
index 6f6f44b4a8e..bb0a1d1f113 100644
--- a/src/mess/drivers/phc25.c
+++ b/src/mess/drivers/phc25.c
@@ -321,7 +321,7 @@ static MACHINE_CONFIG_START( phc25, phc25_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(phc25_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(phc25_state, write_centronics_busy))
diff --git a/src/mess/drivers/poisk1.c b/src/mess/drivers/poisk1.c
index ad4a98cbb95..fee8029ddfa 100644
--- a/src/mess/drivers/poisk1.c
+++ b/src/mess/drivers/poisk1.c
@@ -239,16 +239,16 @@ static MACHINE_CONFIG_START( poisk1, p1_state )
MCFG_PIC8259_ADD( "pic8259", INPUTLINE(":maincpu", 0), VCC, NULL )
MCFG_DEVICE_ADD("ppi8255n1", I8255A, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(p1_state, p1_ppi_porta_r)) /*60H*/
+ MCFG_I8255_IN_PORTA_CB(READ8(p1_state, p1_ppi_porta_r)) /*60H*/
MCFG_I8255_OUT_PORTA_CB(WRITE8(p1_state, p1_ppi_porta_w))
- MCFG_I8255_IN_PORTB_CB(READ8(p1_state, p1_ppi_portb_r)) /*69H*/
+ MCFG_I8255_IN_PORTB_CB(READ8(p1_state, p1_ppi_portb_r)) /*69H*/
MCFG_I8255_IN_PORTC_CB(READ8(p1_state, p1_ppi_portc_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(p1_state, p1_ppi_portc_w)) /*6AH*/
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(p1_state, p1_ppi_portc_w)) /*6AH*/
MCFG_DEVICE_ADD("ppi8255n2", I8255A, 0)
- MCFG_I8255_OUT_PORTA_CB(WRITE8(p1_state, p1_ppi2_porta_w)) /*68H*/
- MCFG_I8255_OUT_PORTB_CB(WRITE8(p1_state, p1_ppi2_portb_w)) /*61H*/
- MCFG_I8255_IN_PORTC_CB(READ8(p1_state, p1_ppi2_portc_r)) /*62H*/
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(p1_state, p1_ppi2_porta_w)) /*68H*/
+ MCFG_I8255_OUT_PORTB_CB(WRITE8(p1_state, p1_ppi2_portb_w)) /*61H*/
+ MCFG_I8255_IN_PORTC_CB(READ8(p1_state, p1_ppi2_portc_r)) /*62H*/
MCFG_DEVICE_ADD("isa", ISA8, 0)
MCFG_ISA8_CPU(":maincpu")
diff --git a/src/mess/drivers/ptcsol.c b/src/mess/drivers/ptcsol.c
index 7899b33004a..3d679182474 100644
--- a/src/mess/drivers/ptcsol.c
+++ b/src/mess/drivers/ptcsol.c
@@ -750,11 +750,11 @@ static MACHINE_CONFIG_START( sol20, sol20_state )
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(sol20_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_CASSETTE_ADD( "cassette2" )
MCFG_CASSETTE_FORMATS(sol20_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_DEVICE_ADD( "uart", AY31015, 0 )
MCFG_AY31015_TX_CLOCK(4800.0)
MCFG_AY31015_RX_CLOCK(4800.0)
diff --git a/src/mess/drivers/pve500.c b/src/mess/drivers/pve500.c
index 3367357be03..4a2a8562a2f 100644
--- a/src/mess/drivers/pve500.c
+++ b/src/mess/drivers/pve500.c
@@ -11,9 +11,9 @@
Notes:
One can induce the self-diagnose by booting the device holding LEARN and P2-RESET buttons togheter
With the default keyboard map, this can be done by holding keys L and S while pressing F3.
- (Don't forget to unlock the keyboard by using the UI TOGGLE key)
+ (Don't forget to unlock the keyboard by using the UI TOGGLE key)
- This self-diagnose routine displays the value C817, which is the checksum value of the subcpu ROM
+ This self-diagnose routine displays the value C817, which is the checksum value of the subcpu ROM
and afterwards it displays the following message:
SELFdIAG Error___ _F3 F3_CtC3c
@@ -21,17 +21,17 @@
which means it detected an error in the CTC circuitry (it means we're emulating it wrong!)
F3 is the coordinate of the subcpu EEPROM chip in the PCB.
- According to the service manual, this error code means: "ICF3 CTC CH-3 counter operation failure (No interruption)"
+ According to the service manual, this error code means: "ICF3 CTC CH-3 counter operation failure (No interruption)"
Known issues:
There's still an annoying blinking in the 7-seg display.
Changelog:
- 2014 JUN 24 [Felipe Sanches]:
+ 2014 JUN 24 [Felipe Sanches]:
* figured out the multiplexing signals for the 7seg display
- 2014 JUN 23 [Felipe Sanches]:
+ 2014 JUN 23 [Felipe Sanches]:
* hooked-up the RS422 ports
2014 JAN 14 [Felipe Sanches]:
@@ -269,7 +269,7 @@ WRITE8_MEMBER(pve500_state::dualport_ram_right_w)
READ8_MEMBER(pve500_state::io_expander_r)
{
-// printf("READ IO_EXPANDER_PORT%c\n", 'A'+offset);
+// printf("READ IO_EXPANDER_PORT%c\n", 'A'+offset);
switch (offset){
case IO_EXPANDER_PORTA:
return io_SC;
@@ -351,7 +351,7 @@ printf("io_expander_w: PORTA (io_SC=%02X)\n", data);
}
static MACHINE_CONFIG_START( pve500, pve500_state )
- /* Main CPU */
+ /* Main CPU */
MCFG_CPU_ADD("maincpu", TMPZ84C015, XTAL_12MHz / 2) /* TMPZ84C015BF-6 */
MCFG_CPU_PROGRAM_MAP(maincpu_prg)
MCFG_CPU_IO_MAP(maincpu_io)
@@ -369,7 +369,7 @@ static MACHINE_CONFIG_START( pve500, pve500_state )
MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE("player2", rs232_port_device, write_txd))
MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE("edl_inout", rs232_port_device, write_txd))
- /* Secondary CPU */
+ /* Secondary CPU */
MCFG_CPU_ADD("subcpu", TMPZ84C015, XTAL_12MHz / 2) /* TMPZ84C015BF-6 */
MCFG_CPU_PROGRAM_MAP(subcpu_prg)
MCFG_CPU_IO_MAP(subcpu_io)
diff --git a/src/mess/drivers/px4.c b/src/mess/drivers/px4.c
index 0c7f949246a..f6dcff36473 100644
--- a/src/mess/drivers/px4.c
+++ b/src/mess/drivers/px4.c
@@ -1400,7 +1400,7 @@ static MACHINE_CONFIG_START( px4, px4_state )
// external cassette
MCFG_CASSETTE_ADD("extcas")
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_DISABLED)
-
+
MCFG_TIMER_DRIVER_ADD("extcas_timer", px4_state, ext_cassette_read)
// sio port
diff --git a/src/mess/drivers/pyl601.c b/src/mess/drivers/pyl601.c
index 005928fd647..b5c1e50812a 100644
--- a/src/mess/drivers/pyl601.c
+++ b/src/mess/drivers/pyl601.c
@@ -547,7 +547,7 @@ static MACHINE_CONFIG_START( pyl601, pyl601_state )
/* Devices */
MCFG_MC6845_ADD("crtc", MC6845, "screen", XTAL_2MHz)
MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8) /* ? */
+ MCFG_MC6845_CHAR_WIDTH(8) /* ? */
MCFG_MC6845_UPDATE_ROW_CB(pyl601_state, pyl601_update_row)
MCFG_UPD765A_ADD("upd765", true, true)
@@ -569,7 +569,7 @@ static MACHINE_CONFIG_DERIVED( pyl601a, pyl601 )
MCFG_DEVICE_REMOVE("crtc")
MCFG_MC6845_ADD("crtc", MC6845, "screen", XTAL_2MHz)
MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8) /* ? */
+ MCFG_MC6845_CHAR_WIDTH(8) /* ? */
MCFG_MC6845_UPDATE_ROW_CB(pyl601_state, pyl601a_update_row)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/ql.c b/src/mess/drivers/ql.c
index f234779fe38..dfb19dbecb7 100644
--- a/src/mess/drivers/ql.c
+++ b/src/mess/drivers/ql.c
@@ -176,7 +176,7 @@ WRITE8_MEMBER( ql_state::write )
}
if (offset >= 0x20000 && offset < 0x40000)
{
- m_zx8301->data_w(space, offset & 0x1ffff, data);
+ m_zx8301->data_w(space, offset & 0x1ffff, data);
}
if (m_qimi_enabled)
{
diff --git a/src/mess/drivers/qx10.c b/src/mess/drivers/qx10.c
index b1a974b3090..a76a0bdfb8c 100644
--- a/src/mess/drivers/qx10.c
+++ b/src/mess/drivers/qx10.c
@@ -776,7 +776,7 @@ static MACHINE_CONFIG_START( qx10, qx10_state )
MCFG_PIC8259_ADD("pic8259_master", INPUTLINE("maincpu", 0), VCC, READ8(qx10_state, get_slave_ack))
MCFG_PIC8259_ADD("pic8259_slave", DEVWRITELINE("pic8259_master", pic8259_device, ir7_w), GND, NULL)
- MCFG_UPD7201_ADD("upd7201", MAIN_CLK/4, 0, 0, 0, 0) // channel b clock set by pit2 channel 2
+ MCFG_UPD7201_ADD("upd7201", MAIN_CLK/4, 0, 0, 0, 0) // channel b clock set by pit2 channel 2
// Channel A: Keyboard
MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE("kbd", rs232_port_device, write_txd))
// Channel B: RS232
diff --git a/src/mess/drivers/radio86.c b/src/mess/drivers/radio86.c
index 42897b3d2fb..cf7a45102a0 100644
--- a/src/mess/drivers/radio86.c
+++ b/src/mess/drivers/radio86.c
@@ -378,7 +378,7 @@ static MACHINE_CONFIG_START( radio86, radio86_state )
MCFG_CASSETTE_FORMATS(rkr_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("radio86_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","radio86")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/rainbow.c b/src/mess/drivers/rainbow.c
index 4b0df8f2498..73a3264b8c0 100644
--- a/src/mess/drivers/rainbow.c
+++ b/src/mess/drivers/rainbow.c
@@ -13,10 +13,10 @@ RBCONVERT.ZIP has details on how model 'A' differs from version B.
Issues with this driver:
(1) Keyboard emulation incomplete (inhibits the system from booting with ERROR 50).
-(2) IRQ / DMA / arbitration logic should be verified
- DMA (needed for 'Extended communication option') or Z80-8088 arbitration is non-existent (E11/E13 dumps anyone?).
+(2) IRQ / DMA / arbitration logic should be verified
+ DMA (needed for 'Extended communication option') or Z80-8088 arbitration is non-existent (E11/E13 dumps anyone?).
-(3) Read errors when booting CPM 2 / DOS 2.x / DOS 3 (secondary boot loader finds errors on tracks >= 2).
+(3) Read errors when booting CPM 2 / DOS 2.x / DOS 3 (secondary boot loader finds errors on tracks >= 2).
Seek (+ verify) and a number of signals (TRACK > 43 TG43, INDEX etc.) appear to be incorrect (-> diag.disk aborts drive test).
UCSD systems (fort_sys, pas_sys) and diag disks boot!
@@ -28,10 +28,10 @@ UCSD systems (fort_sys, pas_sys) and diag disks boot!
MHFU gets active if the 8088 has not acknowledged a video processor interrupt within approx. 108 milliseconds
- TO BE IMPLEMENTED AS SLOT DEVICES (for now, DIP settings affect 'system_parameter_r' only and are disabled):
- * Color graphics option (uses NEC upd7220 GDC). REFERENCE: Programmer's Reference: AA-AE36A-TV.
- Either 384 x 240 x 16 or 800 x 240 x 4 colors (out of 4096). 8 × 64 K video RAM. Pallette limited to 4 colors on 100-A.
+ * Color graphics option (uses NEC upd7220 GDC). REFERENCE: Programmer's Reference: AA-AE36A-TV.
+ Either 384 x 240 x 16 or 800 x 240 x 4 colors (out of 4096). 8 ? 64 K video RAM. Pallette limited to 4 colors on 100-A.
- * Extended communication option (occupies BUNDLE_OPTION ports) REFERENCE: AA-V172A-TV + Addendum AV-Y890A-TV.
+ * Extended communication option (occupies BUNDLE_OPTION ports) REFERENCE: AA-V172A-TV + Addendum AV-Y890A-TV.
See also NEWCOM1.DOC in RBETECDOC.ZIP. Board connected to the front rightmost expansion slot (1 of the expansion
ports used by the hard disk controller). Thus can't be added to a system that includes the DEC RD50/51.
=> 2 ports, a high-speed RS-422 half-duplex interface (port A) + lower-speed RS-423 full/half-duplex interface
@@ -42,11 +42,11 @@ UCSD systems (fort_sys, pas_sys) and diag disks boot!
Plugs into the NVM chip socket on a 100-A and into the Boot ROM on the 100-B (there is a socket
on the ClikClok for the NVM / ROM chip). Came with software for 'all versions of MS-DOS'.
- * 8087 Numerical Data Coprocessor daughterboard. REFERENCE: EK-PCNDP-IN-PRE
+ * 8087 Numerical Data Coprocessor daughterboard. REFERENCE: EK-PCNDP-IN-PRE
Daughterboard, to be plugged into the expansion port where the memory expansion card usually sits.
If a memory adapter board is present, it has to be plugged into a connector atop the 8087 copro board.
The 8088 is put into the CPU socket on the coprocessor board.
- => see MATH test on 'Design Maturity Diagnostics' disk <=
+ => see MATH test on 'Design Maturity Diagnostics' disk <=
* Suitable Solutions TURBOW286: 12 Mhz, 68-pin, low power AMD N80L286-12 and WAYLAND/EDSUN EL286-88-10-B ( 80286 to 8088 Processor Signal Converter )
plus DC 7174 or DT 7174 (barely readable). Add-on card, replaces main 8088 cpu (via ribbon cable). Patched V5.03 BOOT ROM labeled 'TBSS1.3 - 3ED4'.
@@ -207,8 +207,8 @@ W17 pulls J1 serial port pin 1 to GND when set (chassis to logical GND).
#include "video/vtvideo.h"
#include "machine/wd_fdc.h"
-#include "formats/rx50_dsk.h"
-#include "imagedev/flopdrv.h"
+#include "formats/rx50_dsk.h"
+#include "imagedev/flopdrv.h"
#include "machine/i8251.h"
#include "machine/clock.h"
@@ -218,7 +218,7 @@ W17 pulls J1 serial port pin 1 to GND when set (chassis to logical GND).
#include "rainbow.lh" // BEZEL - LAYOUT with LEDs for diag 1-7, keyboard 8-11 and floppy 20-23
#define LK201_TAG "lk201"
-#define FD1793_TAG "fd1793x"
+#define FD1793_TAG "fd1793x"
#define INVALID_DRIVE 255
class rainbow_state : public driver_device
@@ -243,7 +243,7 @@ public:
m_crtc(*this, "vt100_video"),
m_i8088(*this, "maincpu"),
m_z80(*this, "subcpu"),
- m_fdc(*this, FD1793_TAG),
+ m_fdc(*this, FD1793_TAG),
m_kbd8251(*this, "kbdser"),
m_lk201(*this, LK201_TAG),
m_p_ram(*this, "p_ram"),
@@ -299,21 +299,21 @@ public:
DECLARE_WRITE_LINE_MEMBER(write_keyboard_clock);
TIMER_DEVICE_CALLBACK_MEMBER(motor_tick);
- DECLARE_FLOPPY_FORMATS( floppy_formats );
+ DECLARE_FLOPPY_FORMATS( floppy_formats );
protected:
virtual void machine_start();
private:
enum
{
- IRQ_8088_MAILBOX = 0, // vector 0x27/a7 (lowest priority)
- IRQ_8088_KBD, // vector 0x26/a6 KEYBOARD (8251A) Interrupt
-// IRQ_EXT_COMM, // vector 0x25 [OPTION BOARD] Interrupt from external COMM.BOARD (non DMA)
-// IRQ_COMM_PRN_7201, // vector 0x24 COMM./PRINTER (7201) IRQ
-// IRQ_EXT_DMAC, // vector 0x23 [OPTION BOARD] : from external COMM.BOARD (DMA Control IRQ)
-// IRQ_GRF, // vector 0x22 GRAPHICS IRQ
-// IRQ_SH_10_BDL, // vector 0x21 BUNDLE IRQ (hard disc / COMM.BOARD) : Pin 23 of expansion connector J4
- IRQ_8088_VBL, // vector 0x20/a0 (highest priority)
+ IRQ_8088_MAILBOX = 0, // vector 0x27/a7 (lowest priority)
+ IRQ_8088_KBD, // vector 0x26/a6 KEYBOARD (8251A) Interrupt
+// IRQ_EXT_COMM, // vector 0x25 [OPTION BOARD] Interrupt from external COMM.BOARD (non DMA)
+// IRQ_COMM_PRN_7201, // vector 0x24 COMM./PRINTER (7201) IRQ
+// IRQ_EXT_DMAC, // vector 0x23 [OPTION BOARD] : from external COMM.BOARD (DMA Control IRQ)
+// IRQ_GRF, // vector 0x22 GRAPHICS IRQ
+// IRQ_SH_10_BDL, // vector 0x21 BUNDLE IRQ (hard disc / COMM.BOARD) : Pin 23 of expansion connector J4
+ IRQ_8088_VBL, // vector 0x20/a0 (highest priority)
IRQ_8088_MAX
};
@@ -381,8 +381,8 @@ FLOPPY_FORMATS_MEMBER( rainbow_state::floppy_formats )
FLOPPY_RX50IMG_FORMAT
FLOPPY_FORMATS_END
-static SLOT_INTERFACE_START( rainbow_floppies )
- SLOT_INTERFACE("525qd", FLOPPY_525_SSQD)
+static SLOT_INTERFACE_START( rainbow_floppies )
+ SLOT_INTERFACE("525qd", FLOPPY_525_SSQD)
SLOT_INTERFACE_END
@@ -417,17 +417,17 @@ void rainbow_state::machine_start()
rom[0xf4000 + 0x363b]= 0xeb; // COND => JMPS
- if (rom[0xf4174] == 0x75)
+ if (rom[0xf4174] == 0x75)
{
rom[0xf4174] = 0xeb; // jmps RAINBOW100_LOGO__loc_33D
- rom[0xf4175] = 0x08;
- }
+ rom[0xf4175] = 0x08;
+ }
- if (rom[0xf4000 + 0x3ffc] == 0x31) // 100-B
- rom[0xf4384] = 0xeb; // JMPS => BOOT80
+ if (rom[0xf4000 + 0x3ffc] == 0x31) // 100-B
+ rom[0xf4384] = 0xeb; // JMPS => BOOT80
- if (rom[0xf4000 + 0x3ffc] == 0x35) // v5.05
- rom[0xf437b] = 0xeb;
+ if (rom[0xf4000 + 0x3ffc] == 0x35) // v5.05
+ rom[0xf437b] = 0xeb;
#endif
#ifdef KEYBOARD_WORKAROUND
@@ -482,37 +482,37 @@ static ADDRESS_MAP_START( rainbow8088_io , AS_IO, 8, rainbow_state)
AM_RANGE(0x11, 0x11) AM_DEVREADWRITE("kbdser", i8251_device, status_r, control_w)
// UNMAPPED:
- // 0x20 -> 0x2f ***** EXTENDED COMM. OPTION / Option Select 1.
- // See boot rom @1EA6: 0x27 (<- RESET EXTENDED COMM OPTION )
- // ===========================================================
+ // 0x20 -> 0x2f ***** EXTENDED COMM. OPTION / Option Select 1.
+ // See boot rom @1EA6: 0x27 (<- RESET EXTENDED COMM OPTION )
+ // ===========================================================
// 0x30 -> 0x3f ***** EXTENDED COMM. OPTION / Option Select 3.
// ===========================================================
- // 0x40 COMMUNICATIONS DATA REGISTER (MPSC)
+ // 0x40 COMMUNICATIONS DATA REGISTER (MPSC)
// 0x41 PRINTER DATA REGISTER (MPSC)
// 0x42 COMMUNICATIONS CONTROL / STATUS REGISTER (MPSC)
// 0x43 PRINTER CONTROL / STATUS REGISTER (MPSC)
- // ===========================================================
- // 0x50 - 0x57 ***** COLOR GRAPHICS OPTION:
- // 50h Graphics option software reset. Any write to this
- // port also resynchronizes the read/modify/write memory
- // cycles of the Graphics Option to those of the GDC (*)
+ // ===========================================================
+ // 0x50 - 0x57 ***** COLOR GRAPHICS OPTION:
+ // 50h Graphics option software reset. Any write to this
+ // port also resynchronizes the read/modify/write memory
+ // cycles of the Graphics Option to those of the GDC (*)
// * see boot ROM @1EB4/8
- // 51h Data written to this port is loaded into the area
- // selected by the previous write to port 53h.
+ // 51h Data written to this port is loaded into the area
+ // selected by the previous write to port 53h.
- // 52h Data written to this port is loaded into the Write Buffer.
+ // 52h Data written to this port is loaded into the Write Buffer.
- // 53h Data written to this port provides address selection
- // for indirect addressing (see Indirect Register).
+ // 53h Data written to this port provides address selection
+ // for indirect addressing (see Indirect Register).
- // 54h Data written to this port is loaded into the low-order
- // byte of the Write Mask.
+ // 54h Data written to this port is loaded into the low-order
+ // byte of the Write Mask.
- // 55h Data written to this port is loaded into the high-order
- // byte of the Write Mask.
+ // 55h Data written to this port is loaded into the high-order
+ // byte of the Write Mask.
- // 56h Data written to this port is loaded into the GDC's FIFO
- // Buffer and flagged as a parameter.
+ // 56h Data written to this port is loaded into the GDC's FIFO
+ // Buffer and flagged as a parameter.
// ===========================================================
// 0x60 -> 0x6f ***** EXTENDED COMM. OPTION / Option Select 2.
// ===========================================================
@@ -520,7 +520,7 @@ static ADDRESS_MAP_START( rainbow8088_io , AS_IO, 8, rainbow_state)
// ------ Rainbow uses 'WD 1010 AL' (Western Digital 1983)
// Register compatible to WD2010 (present in MESS)
// R/W REGISTERS 60 - 68 (?)
- AM_RANGE (0x68, 0x68) AM_READ(hd_status_68_r)
+ AM_RANGE (0x68, 0x68) AM_READ(hd_status_68_r)
// ===========================================================
// HARD DISC SIZES AND LIMITS
// HARDWARE:
@@ -551,7 +551,7 @@ static ADDRESS_MAP_START( rainbowz80_io, AS_IO, 8, rainbow_state)
AM_RANGE(0x20, 0x20) AM_READWRITE(z80_generalstat_r, z80_diskdiag_read_w) // read to port 0x20 used by MS-DOS 2.x diskette loader.
AM_RANGE(0x21, 0x21) AM_READWRITE(z80_generalstat_r, z80_diskdiag_write_w)
AM_RANGE(0x40, 0x40) AM_READWRITE(z80_diskstatus_r, z80_diskcontrol_w)
- AM_RANGE(0x60, 0x63) AM_DEVREADWRITE(FD1793_TAG, fd1793_t, read, write)
+ AM_RANGE(0x60, 0x63) AM_DEVREADWRITE(FD1793_TAG, fd1793_t, read, write)
ADDRESS_MAP_END
/* Input ports */
@@ -572,7 +572,7 @@ PORT_DIPSETTING(0x01, "WHITE")
PORT_START("MEMORY PRESENT")
PORT_DIPNAME( 0xF0000, 0x20000, "MEMORY PRESENT")
PORT_DIPSETTING( 0x10000, "64 K (MINIMUM ON 100-A)" ) // see BOARD_RAM
- PORT_DIPSETTING( 0x20000, "128 K (MINIMUM ON 100-B)" )
+ PORT_DIPSETTING( 0x20000, "128 K (MINIMUM ON 100-B)" )
PORT_DIPSETTING( 0x30000, "192 K (MEMORY OPTION)" )
PORT_DIPSETTING( 0x40000, "256 K (MEMORY OPTION)" )
PORT_DIPSETTING( 0x50000, "320 K (MEMORY OPTION)" )
@@ -589,11 +589,11 @@ PORT_DIPSETTING(0x01, "WHITE")
// Floppy is always 'on', BUNDLE + GRAPHICS are not implemented yet:
PORT_START("FLOPPY CONTROLLER")
PORT_DIPNAME( 0x01, 0x01, "FLOPPY CONTROLLER") PORT_TOGGLE
- PORT_DIPSETTING( 0x01, DEF_STR( On ) )
+ PORT_DIPSETTING( 0x01, DEF_STR( On ) )
- // BUNDLE_OPTION: EXT.COMM.card -or- hard disk controller (marketed later).
- // - hard disc and COMM.extension exclude each other!
- // - connector J4 has 4 select lines (Option Select 1-4)
+ // BUNDLE_OPTION: EXT.COMM.card -or- hard disk controller (marketed later).
+ // - hard disc and COMM.extension exclude each other!
+ // - connector J4 has 4 select lines (Option Select 1-4)
PORT_START("BUNDLE OPTION")
PORT_DIPNAME( 0x00, 0x00, "BUNDLE OPTION") PORT_TOGGLE
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
@@ -604,8 +604,8 @@ PORT_DIPSETTING(0x01, "WHITE")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x01, DEF_STR( On ) )
- // W13 - W18 are used for factory tests and affect the boot process -
- PORT_START("W13")
+ // W13 - W18 are used for factory tests and affect the boot process -
+ PORT_START("W13")
PORT_DIPNAME( 0x02, 0x02, "W13 (FACTORY TEST A, LEAVE OFF)") PORT_TOGGLE
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
@@ -644,7 +644,7 @@ void rainbow_state::machine_reset()
/* configure RAM */
address_space &program = m_maincpu->space(AS_PROGRAM);
- if (m_inp8->read() < END_OF_RAM)
+ if (m_inp8->read() < END_OF_RAM)
{
program.unmap_readwrite(m_inp8->read(), END_OF_RAM);
}
@@ -713,7 +713,7 @@ UINT32 rainbow_state::screen_update_rainbow(screen_device &screen, bitmap_ind16
// Interrupt handling and arbitration. See 3.1.3.8 OF PC-100 spec.
void rainbow_state::update_8088_irqs()
{
- static const int vectors[] = { 0x27, 0x26, 0x20 };
+ static const int vectors[] = { 0x27, 0x26, 0x20 };
if (m_irq_mask != 0)
{
@@ -820,11 +820,11 @@ READ8_MEMBER(rainbow_state::system_parameter_r)
B F G M
( 1 means NOT present; 4-7 reserved )
*/
- return ( ((m_inp5->read() == 1) ? 0 : 1) |
- ((m_inp6->read() == 1) ? 0 : 2) |
- ((m_inp7->read() == 1) ? 0 : 4) |
- ((m_inp8->read() > BOARD_RAM) ? 0 : 8) |
- 16 | 32 | 64 | 128 // to be verified.
+ return ( ((m_inp5->read() == 1) ? 0 : 1) |
+ ((m_inp6->read() == 1) ? 0 : 2) |
+ ((m_inp7->read() == 1) ? 0 : 4) |
+ ((m_inp8->read() > BOARD_RAM) ? 0 : 8) |
+ 16 | 32 | 64 | 128 // to be verified.
);
}
@@ -842,9 +842,9 @@ READ8_MEMBER(rainbow_state::comm_control_r)
int data;
if (COLD_BOOT == 2)
data = 0;
- else
+ else
data = m_crtc->MHFU(1);
-
+
return ( ( (data > 0) ? 0x00 : 0x20) |// (L): status of MHFU flag => bit pos.5
( (INT88) ? 0x00 : 0x40 ) | // (L)
( (INTZ80) ? 0x00 : 0x80 ) // (L)
@@ -935,11 +935,11 @@ D2 : INT88 L: (bit reads the INT88 bit sent by Z80 to interrupt 8088)
D1 : INTZ80 L: (bit reads the INTZ80 bit sent by 8088 to interrupt Z80)
D0 : ZFLIP L: (read from the diagnostic control register of Z80A)
*/
- static int last_track;
+ static int last_track;
int track = m_fdc->track_r( space, 0);
int fdc_step = 0;
- int fdc_ready = 0;
- int tk00 = 0;
+ int fdc_ready = 0;
+ int tk00 = 0;
if(m_unit != INVALID_DRIVE)
{
@@ -947,20 +947,20 @@ D0 : ZFLIP L: (read from the diagnostic control register of Z80A)
fdc_step = 1;
last_track = track;
- fdc_ready = m_floppy->ready_r();
- tk00 = ( m_floppy->trk00_r() != CLEAR_LINE );
+ fdc_ready = m_floppy->ready_r();
+ tk00 = ( m_floppy->trk00_r() != CLEAR_LINE );
}
int last_dir = 0; // FAKE LAST_DIR + WRITE_GATE FOR NOW.
int fdc_write_gate = 1;
- // ***** ALL LOW ACTIVE - EXCEPT tk00 :
+ // ***** ALL LOW ACTIVE - EXCEPT tk00 :
int data=(
- ( (fdc_step) ? 0x00 : 0x80 ) |
- ( (fdc_write_gate == 1) ? 0x00 : 0x40 ) |
- ( (tk00) ? 0x20 : 0x00 ) |
- ( (last_dir == 1) ? 0x00 : 0x10 ) |
- ( (fdc_ready) ? 0x00 : 0x08 ) |
+ ( (fdc_step) ? 0x00 : 0x80 ) |
+ ( (fdc_write_gate == 1) ? 0x00 : 0x40 ) |
+ ( (tk00) ? 0x20 : 0x00 ) |
+ ( (last_dir == 1) ? 0x00 : 0x10 ) |
+ ( (fdc_ready) ? 0x00 : 0x08 ) |
( (INT88) ? 0x00 : 0x04 ) |
( (INTZ80) ? 0x00 : 0x02 ) |
( (m_zflip) ? 0x00 : 0x01 )
@@ -1052,16 +1052,16 @@ WRITE8_MEMBER(rainbow_state::z80_diskcontrol_w)
{
m_floppy = con->get_device();
if (m_floppy)
- {
- selected_drive = drive;
+ {
+ selected_drive = drive;
m_fdc->set_floppy(m_floppy); // Sets new _image device_
m_floppy->set_rpm(300.);
// RX50 board has additional 'side select' - ignored by WD emulation?
m_floppy->ss_w((data & 20) ? 1 : 0);
- }
- }
+ }
+ }
output_set_value("driveled0", (selected_drive == 0) ? 1 : 0 );
output_set_value("driveled1", (selected_drive == 1) ? 1 : 0 );
@@ -1074,25 +1074,25 @@ WRITE8_MEMBER(rainbow_state::z80_diskcontrol_w)
m_unit = selected_drive;
if (MOTOR_DISABLE_counter == 0) // "one shot"
- MOTOR_DISABLE_counter = 4800; // 2400 = 500 ms
+ MOTOR_DISABLE_counter = 4800; // 2400 = 500 ms
-// m_fdc->set_force_ready(force_ready);
+// m_fdc->set_force_ready(force_ready);
}
else
{
-// m_fdc->set_force_ready(false);
- }
+// m_fdc->set_force_ready(false);
+ }
for(int f_num=0; f_num <= 3; f_num++)
{
floppy_connector *con = machine().device<floppy_connector>(names[f_num]);
- floppy_image_device *tmp_floppy = con->get_device();
- tmp_floppy->mon_w( (f_num == m_unit) ? CLEAR_LINE : ASSERT_LINE );
+ floppy_image_device *tmp_floppy = con->get_device();
+ tmp_floppy->mon_w( (f_num == m_unit) ? CLEAR_LINE : ASSERT_LINE );
}
if(m_unit == INVALID_DRIVE)
- {
- data = data & (255 -3);
+ {
+ data = data & (255 -3);
data = data | 8; // MOTOR 0 OFF
data = data | 16; // MOTOR 1 OFF
}
@@ -1100,7 +1100,7 @@ WRITE8_MEMBER(rainbow_state::z80_diskcontrol_w)
{
data = (data & (255 - 3)) | m_unit;
- if(m_unit < 2)
+ if(m_unit < 2)
data = data & (255 - 8); // MOTOR 0 (for A or B)
if(m_unit > 1)
@@ -1159,19 +1159,19 @@ WRITE8_MEMBER( rainbow_state::diagnostic_w ) // 8088 (port 0A WRITTEN). Fig.4-28
if(m_unit != INVALID_DRIVE)
{
- if ( (m_diagnostic & 1) && !(data & 1) )
- {
+ if ( (m_diagnostic & 1) && !(data & 1) )
+ {
m_fdc->soft_reset();
- }
+ }
- if ( !(m_diagnostic & 1) && (data & 1) )
- {
+ if ( !(m_diagnostic & 1) && (data & 1) )
+ {
m_fdc->soft_reset(); // See formatter description p.197 or 5-13
}
}
// MISSING BITS (* not vital for normal operation, see diag.disk) -
// BIT 2: GRF VID SEL (0 = system module; 1 = graphics option)
- // BIT 3: PARITY TEST (1 = enables parity test on memory option board)
+ // BIT 3: PARITY TEST (1 = enables parity test on memory option board)
// * BIT 4: DIAG LOOPBACK (0 at power-up; 1 directs RX50 and DC12 output to printer port)
// * BIT 5: PORT LOOPBACK (1 enables loopback for COMM, PRINTER, KEYBOARD ports)
@@ -1308,12 +1308,12 @@ static MACHINE_CONFIG_START( rainbow, rainbow_state )
MCFG_VT_VIDEO_RAM_CALLBACK(READ8(rainbow_state, read_video_ram_r))
MCFG_VT_VIDEO_CLEAR_VIDEO_INTERRUPT_CALLBACK(WRITELINE(rainbow_state, clear_video_interrupt))
- MCFG_FD1793x_ADD(FD1793_TAG, XTAL_24_0734MHz / 24) // no separate 1 Mhz quartz
+ MCFG_FD1793x_ADD(FD1793_TAG, XTAL_24_0734MHz / 24) // no separate 1 Mhz quartz
MCFG_WD_FDC_FORCE_READY
MCFG_FLOPPY_DRIVE_ADD(FD1793_TAG ":0", rainbow_floppies, "525qd", rainbow_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(FD1793_TAG ":1", rainbow_floppies, "525qd", rainbow_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1793_TAG ":2", rainbow_floppies, "525qd", rainbow_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(FD1793_TAG ":3", rainbow_floppies, "525qd", rainbow_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1793_TAG ":2", rainbow_floppies, "525qd", rainbow_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(FD1793_TAG ":3", rainbow_floppies, "525qd", rainbow_state::floppy_formats)
MCFG_SOFTWARE_LIST_ADD("flop_list","rainbow")
MCFG_DEVICE_ADD("kbdser", I8251, 0)
diff --git a/src/mess/drivers/samcoupe.c b/src/mess/drivers/samcoupe.c
index 05cd93a6d45..216949cf53f 100644
--- a/src/mess/drivers/samcoupe.c
+++ b/src/mess/drivers/samcoupe.c
@@ -558,7 +558,7 @@ static MACHINE_CONFIG_START( samcoupe, samcoupe_state )
MCFG_CASSETTE_FORMATS(tzx_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("samcoupe_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","samcoupe_cass")
MCFG_WD1772x_ADD("wd1772", SAMCOUPE_XTAL_X1/3)
diff --git a/src/mess/drivers/saturn.c b/src/mess/drivers/saturn.c
index 293786347c1..eb2a5c4fcbd 100644
--- a/src/mess/drivers/saturn.c
+++ b/src/mess/drivers/saturn.c
@@ -9,7 +9,7 @@
Many thanks to Guru, Fabien, Runik and Charles MacDonald for the help given.
===================================================================================================
-
+
Notes:
-To enter into an Advanced Test Mode,keep pressed the Test Button (F2) on the start-up.
-Memo: Some tests done on the original & working PCB,to be implemented:
diff --git a/src/mess/drivers/sdk85.c b/src/mess/drivers/sdk85.c
index 63db29ef63f..0c03ae1423b 100644
--- a/src/mess/drivers/sdk85.c
+++ b/src/mess/drivers/sdk85.c
@@ -125,11 +125,11 @@ static MACHINE_CONFIG_START( sdk85, sdk85_state )
/* Devices */
MCFG_DEVICE_ADD("i8279", I8279, 3100000) // based on divider
- MCFG_I8279_OUT_IRQ_CB(INPUTLINE("maincpu", I8085_RST55_LINE)) // irq
- MCFG_I8279_OUT_SL_CB(WRITE8(sdk85_state, scanlines_w)) // scan SL lines
- MCFG_I8279_OUT_DISP_CB(WRITE8(sdk85_state, digit_w)) // display A&B
- MCFG_I8279_IN_RL_CB(READ8(sdk85_state, kbd_r)) // kbd RL lines
- MCFG_I8279_IN_SHIFT_CB(VCC) // Shift key
+ MCFG_I8279_OUT_IRQ_CB(INPUTLINE("maincpu", I8085_RST55_LINE)) // irq
+ MCFG_I8279_OUT_SL_CB(WRITE8(sdk85_state, scanlines_w)) // scan SL lines
+ MCFG_I8279_OUT_DISP_CB(WRITE8(sdk85_state, digit_w)) // display A&B
+ MCFG_I8279_IN_RL_CB(READ8(sdk85_state, kbd_r)) // kbd RL lines
+ MCFG_I8279_IN_SHIFT_CB(VCC) // Shift key
MCFG_I8279_IN_CTRL_CB(VCC)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/sdk86.c b/src/mess/drivers/sdk86.c
index f993fb8157a..51bcbd4c954 100644
--- a/src/mess/drivers/sdk86.c
+++ b/src/mess/drivers/sdk86.c
@@ -170,10 +170,10 @@ static MACHINE_CONFIG_START( sdk86, sdk86_state )
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(sdk86_state, write_usart_clock))
MCFG_DEVICE_ADD("i8279", I8279, 2500000) // based on divider
- MCFG_I8279_OUT_SL_CB(WRITE8(sdk86_state, scanlines_w)) // scan SL lines
- MCFG_I8279_OUT_DISP_CB(WRITE8(sdk86_state, digit_w)) // display A&B
- MCFG_I8279_IN_RL_CB(READ8(sdk86_state, kbd_r)) // kbd RL lines
- MCFG_I8279_IN_SHIFT_CB(GND) // Shift key
+ MCFG_I8279_OUT_SL_CB(WRITE8(sdk86_state, scanlines_w)) // scan SL lines
+ MCFG_I8279_OUT_DISP_CB(WRITE8(sdk86_state, digit_w)) // display A&B
+ MCFG_I8279_IN_RL_CB(READ8(sdk86_state, kbd_r)) // kbd RL lines
+ MCFG_I8279_IN_SHIFT_CB(GND) // Shift key
MCFG_I8279_IN_CTRL_CB(GND)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/selz80.c b/src/mess/drivers/selz80.c
index d56b13899c4..996c86f05d8 100644
--- a/src/mess/drivers/selz80.c
+++ b/src/mess/drivers/selz80.c
@@ -164,10 +164,10 @@ static MACHINE_CONFIG_START( selz80, selz80_state )
/* Devices */
MCFG_DEVICE_ADD("i8279", I8279, 2500000) // based on divider
- MCFG_I8279_OUT_SL_CB(WRITE8(selz80_state, scanlines_w)) // scan SL lines
- MCFG_I8279_OUT_DISP_CB(WRITE8(selz80_state, digit_w)) // display A&B
- MCFG_I8279_IN_RL_CB(READ8(selz80_state, kbd_r)) // kbd RL lines
- MCFG_I8279_IN_SHIFT_CB(VCC) // Shift key
+ MCFG_I8279_OUT_SL_CB(WRITE8(selz80_state, scanlines_w)) // scan SL lines
+ MCFG_I8279_OUT_DISP_CB(WRITE8(selz80_state, digit_w)) // display A&B
+ MCFG_I8279_IN_RL_CB(READ8(selz80_state, kbd_r)) // kbd RL lines
+ MCFG_I8279_IN_SHIFT_CB(VCC) // Shift key
MCFG_I8279_IN_CTRL_CB(VCC)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/sg1000.c b/src/mess/drivers/sg1000.c
index 52a8a525d43..a7bc232af58 100644
--- a/src/mess/drivers/sg1000.c
+++ b/src/mess/drivers/sg1000.c
@@ -731,7 +731,7 @@ static MACHINE_CONFIG_START( sg1000, sg1000_state )
/* video hardware */
MCFG_DEVICE_ADD( TMS9918A_TAG, TMS9918A, XTAL_10_738635MHz / 2 )
MCFG_TMS9928A_VRAM_SIZE(0x4000)
- MCFG_TMS9928A_OUT_INT_LINE_CB(WRITELINE(sg1000_state, sg1000_vdp_interrupt))
+ MCFG_TMS9928A_OUT_INT_LINE_CB(WRITELINE(sg1000_state, sg1000_vdp_interrupt))
MCFG_TMS9928A_SCREEN_ADD_NTSC( SCREEN_TAG )
MCFG_SCREEN_UPDATE_DEVICE( TMS9918A_TAG, tms9918a_device, screen_update )
diff --git a/src/mess/drivers/sorcerer.c b/src/mess/drivers/sorcerer.c
index 3cfd198cf2d..789479ed52d 100644
--- a/src/mess/drivers/sorcerer.c
+++ b/src/mess/drivers/sorcerer.c
@@ -423,7 +423,7 @@ static MACHINE_CONFIG_START( sorcerer, sorcerer_state )
MCFG_DEVICE_ADD( "uart", AY31015, 0 )
MCFG_AY31015_TX_CLOCK(4800.0)
MCFG_AY31015_RX_CLOCK(4800.0)
-
+
/* printer */
MCFG_CENTRONICS_ADD("centronics", centronics_printers, "covox")
MCFG_SLOT_OPTION_ADD( "covox", CENTRONICS_COVOX )
@@ -442,7 +442,7 @@ static MACHINE_CONFIG_START( sorcerer, sorcerer_state )
MCFG_CASSETTE_FORMATS(sorcerer_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("sorcerer_cass")
-
+
MCFG_CASSETTE_ADD( "cassette2" )
MCFG_CASSETTE_FORMATS(sorcerer_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
diff --git a/src/mess/drivers/special.c b/src/mess/drivers/special.c
index ddd387ace34..50f7cfb05dc 100644
--- a/src/mess/drivers/special.c
+++ b/src/mess/drivers/special.c
@@ -389,7 +389,7 @@ static MACHINE_CONFIG_START( special, special_state )
MCFG_CASSETTE_FORMATS(rks_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("special_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","special_cass")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/spectrum.c b/src/mess/drivers/spectrum.c
index 04dfda56b9c..3a7479eb71a 100644
--- a/src/mess/drivers/spectrum.c
+++ b/src/mess/drivers/spectrum.c
@@ -716,7 +716,7 @@ MACHINE_CONFIG_START( spectrum_common, spectrum_state )
MCFG_CASSETTE_FORMATS(tzx_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("spectrum_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","spectrum_cass")
/* cartridge */
diff --git a/src/mess/drivers/sun3.c b/src/mess/drivers/sun3.c
index d2db7af7277..28255a78e67 100644
--- a/src/mess/drivers/sun3.c
+++ b/src/mess/drivers/sun3.c
@@ -1,9 +1,9 @@
/***************************************************************************
-
+
sun3.c: preliminary driver for Sun 3 and Sun 3x models.
-
+
status: 3/80 POSTs, 3/460 needs its unique RTC chip (also used by non-3x Sun 3s).
-
+
TODO:
- Z8530 SCC needs to actually speak serial so we can hook up the mouse and keyboard.
- Improve interrupt controller emulation.
@@ -13,8 +13,8 @@
- AM7990 LANCE chip support for everyone.
- Figure out how the parallel printer port maps to Centronics and make it so.
- Much more...
-
-
+
+
Sun-3 Models
------------
@@ -218,7 +218,7 @@
factor. Serial and keyboard ports. External RAM,
framebuffer, and SCSI/ethernet boards
available.
-
+
Sun3X notes from NetBSD and Linux:
RAM_END 0x40000000
@@ -234,7 +234,7 @@
IDPROM1 0x61000c00 (3/470)
MEMREG 0x61001000
INTERREG 0x61001400
- SCC1 0x62000000 (keyboard/mouse)
+ SCC1 0x62000000 (keyboard/mouse)
SCC2 0x62002000 (serial console)
EEPROM 0x64000000
IDPROM2 0x640007d8 (3/80)
@@ -261,7 +261,7 @@
+---+---+---+---+---+---+---+---+---+---+---+---+---+---.---.---+
|BT |FPP|DMA| 0 |VID|RES|FPA|DIA| 0 |CCH|IOC|LBK|DCH| UNUSED |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---.---.---+
-
+
Where: DCH = debug mode for system cache
LBK = VME loopback
IOC = I/O cache enable
@@ -273,9 +273,9 @@
DMA = enable system DVMA
FPP = enable 68881/2 FPU
BT = 0 for boot state, 1 for normal state
-
+
bad '030 MMU mapping: L fef82000 -> P 00000000
-
+
****************************************************************************/
#include "emu.h"
@@ -291,16 +291,16 @@
#include "formats/mfi_dsk.h"
#define TIMEKEEPER_TAG "timekpr"
-#define SCC1_TAG "scc1"
-#define SCC2_TAG "scc2"
-#define ESP_TAG "esp"
-#define FDC_TAG "fdc"
+#define SCC1_TAG "scc1"
+#define SCC2_TAG "scc2"
+#define ESP_TAG "esp"
+#define FDC_TAG "fdc"
class sun3_state : public driver_device
{
public:
sun3_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ : driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_scc1(*this, SCC1_TAG),
m_scc2(*this, SCC2_TAG),
@@ -376,7 +376,7 @@ static ADDRESS_MAP_START(sun3_80_mem, AS_PROGRAM, 32, sun3_state)
AM_RANGE(0x61000800, 0x61000803) AM_READWRITE(diag_r, diag_w)
AM_RANGE(0x61001000, 0x61001003) AM_READWRITE(memreg_r, memreg_w)
AM_RANGE(0x61001004, 0x61001007) AM_READWRITE(memrerraddr_r, memrerraddr_w)
- AM_RANGE(0x61001400, 0x61001403) AM_READWRITE(irqctrl_r, irqctrl_w)
+ AM_RANGE(0x61001400, 0x61001403) AM_READWRITE(irqctrl_r, irqctrl_w)
AM_RANGE(0x62000000, 0x6200000f) AM_READWRITE8(scc1_r, scc1_w, 0xff00ff00)
AM_RANGE(0x62002000, 0x6200200f) AM_READWRITE8(scc2_r, scc2_w, 0xff00ff00)
AM_RANGE(0x63000000, 0x6301ffff) AM_ROM AM_REGION("user1",0)
@@ -400,7 +400,7 @@ static ADDRESS_MAP_START(sun3_460_mem, AS_PROGRAM, 32, sun3_state)
AM_RANGE(0x61000800, 0x61000803) AM_READWRITE(diag_r, diag_w)
AM_RANGE(0x61001000, 0x61001003) AM_READWRITE(memreg_r, memreg_w)
AM_RANGE(0x61001004, 0x61001007) AM_READWRITE(memrerraddr_r, memrerraddr_w)
- AM_RANGE(0x61001400, 0x61001403) AM_READWRITE(irqctrl_r, irqctrl_w)
+ AM_RANGE(0x61001400, 0x61001403) AM_READWRITE(irqctrl_r, irqctrl_w)
AM_RANGE(0x62000000, 0x6200000f) AM_READWRITE8(scc1_r, scc1_w, 0xff00ff00)
AM_RANGE(0x62002000, 0x6200200f) AM_READWRITE8(scc2_r, scc2_w, 0xff00ff00)
AM_RANGE(0x63000000, 0x6301ffff) AM_ROM AM_REGION("user1",0)
@@ -411,7 +411,7 @@ ADDRESS_MAP_END
READ32_MEMBER( sun3_state::p4id_r )
{
- return (1<<24); // 0 = hires bw2 1600x1280, 1 = bw2 1152x900, 0x45 is "Ibis" color, blt 0x68 is "Lego" color
+ return (1<<24); // 0 = hires bw2 1600x1280, 1 = bw2 1152x900, 0x45 is "Ibis" color, blt 0x68 is "Lego" color
}
WRITE32_MEMBER( sun3_state::fdc_control_w )
@@ -491,11 +491,11 @@ WRITE32_MEMBER(sun3_state::ramwrite_w)
m_memreg &= ~0x0c;
break;
- case 0xffffffff: // no address adjust, show all 4 lanes as problematic
+ case 0xffffffff: // no address adjust, show all 4 lanes as problematic
break;
}
- m_bInBusErr = true; // prevent recursion
+ m_bInBusErr = true; // prevent recursion
m_maincpu->set_input_line_and_vector(M68K_IRQ_7, ASSERT_LINE, 2);
}
@@ -535,7 +535,7 @@ READ32_MEMBER(sun3_state::enable_r)
WRITE32_MEMBER(sun3_state::enable_w)
{
-// printf("sun3x: %08x to enable (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to enable (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_enable);
}
@@ -548,7 +548,7 @@ READ32_MEMBER(sun3_state::buserr_r)
WRITE32_MEMBER(sun3_state::buserr_w)
{
-// printf("sun3x: %08x to buserr (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to buserr (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_buserr);
}
@@ -559,7 +559,7 @@ READ32_MEMBER(sun3_state::diag_r)
WRITE32_MEMBER(sun3_state::diag_w)
{
-// printf("sun3x: %08x to diag (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to diag (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_diag);
}
@@ -570,7 +570,7 @@ READ32_MEMBER(sun3_state::printer_r)
WRITE32_MEMBER(sun3_state::printer_w)
{
-// printf("sun3x: %08x to printer (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to printer (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_printer);
}
@@ -581,7 +581,7 @@ READ32_MEMBER(sun3_state::irqctrl_r)
WRITE32_MEMBER(sun3_state::irqctrl_w)
{
-// printf("sun3x: %08x to interrupt control (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to interrupt control (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_irqctrl);
if (data & 0x01000000)
@@ -603,7 +603,7 @@ WRITE32_MEMBER(sun3_state::irqctrl_w)
m_maincpu->set_input_line(M68K_IRQ_7, CLEAR_LINE);
}
}
- else // master enable clear, clear all interrupts
+ else // master enable clear, clear all interrupts
{
m_maincpu->set_input_line(M68K_IRQ_1, CLEAR_LINE);
m_maincpu->set_input_line(M68K_IRQ_2, CLEAR_LINE);
@@ -622,7 +622,7 @@ READ32_MEMBER(sun3_state::memreg_r)
WRITE32_MEMBER(sun3_state::memreg_w)
{
-// printf("sun3x: %08x to memory control (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to memory control (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_memreg);
}
@@ -635,7 +635,7 @@ READ32_MEMBER(sun3_state::memrerraddr_r)
WRITE32_MEMBER(sun3_state::memrerraddr_w)
{
-// printf("sun3x: %08x to memory error address (mask %08x)\n", data, mem_mask);
+// printf("sun3x: %08x to memory error address (mask %08x)\n", data, mem_mask);
COMBINE_DATA(&m_memerraddr);
}
@@ -941,7 +941,7 @@ Sun 3/80 V3.0.3 Bootprom
// default NVRAM: includes valid settings for console on framebuffer, boot from SCSI disk, Ethernet ID, more
ROM_REGION( 0x800, TIMEKEEPER_TAG, 0 )
- ROM_LOAD( "timekpr_380.bin", 0x000000, 0x000800, CRC(e76f1aae) SHA1(8e7c36e3928887a94a8133e8416ee4126c31edd7) )
+ ROM_LOAD( "timekpr_380.bin", 0x000000, 0x000800, CRC(e76f1aae) SHA1(8e7c36e3928887a94a8133e8416ee4126c31edd7) )
ROM_END
ROM_START( sun3_460 )
diff --git a/src/mess/drivers/super80.c b/src/mess/drivers/super80.c
index 353ea9003c9..64e1f53d250 100644
--- a/src/mess/drivers/super80.c
+++ b/src/mess/drivers/super80.c
@@ -732,7 +732,7 @@ static MACHINE_CONFIG_START( super80, super80_state )
/* cassette */
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_p", super80_state, timer_p, attotime::from_hz(40000)) // cass read
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_k", super80_state, timer_k, attotime::from_hz(300)) // keyb scan
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_h", super80_state, timer_h, attotime::from_hz(100)) // half-speed
diff --git a/src/mess/drivers/svi318.c b/src/mess/drivers/svi318.c
index df1f350315d..a64d4bbe043 100644
--- a/src/mess/drivers/svi318.c
+++ b/src/mess/drivers/svi318.c
@@ -433,7 +433,7 @@ static MACHINE_CONFIG_START( svi328_806, svi318_state )
MCFG_MC6845_ADD("crtc", MC6845, "svi806", XTAL_12MHz / 8)
MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8) /* ? */
+ MCFG_MC6845_CHAR_WIDTH(8) /* ? */
MCFG_MC6845_UPDATE_ROW_CB(svi318_state, crtc_update_row)
MCFG_VIDEO_START_OVERRIDE(svi318_state, svi328_806 )
diff --git a/src/mess/drivers/tecnbras.c b/src/mess/drivers/tecnbras.c
index e34a925a1bc..3a0fed674fe 100644
--- a/src/mess/drivers/tecnbras.c
+++ b/src/mess/drivers/tecnbras.c
@@ -5,11 +5,11 @@
TECNBRAS dot matrix display (70x7 pixels)
Driver by Felipe Correa da Silva Sanches <juca@members.fsf.org>
- The display is composed of 14 blocks of 5x7 LEDs
+ The display is composed of 14 blocks of 5x7 LEDs
- These LEDs are driven by several 74xx chips:
- * one 74138
- * several 74164 and ULN2003 chips
+ These LEDs are driven by several 74xx chips:
+ * one 74138
+ * several 74164 and ULN2003 chips
Changelog:
@@ -34,11 +34,11 @@ public:
DECLARE_WRITE8_MEMBER(set_x_position_w);
DECLARE_WRITE8_MEMBER(print_column_w);
-// DECLARE_WRITE8_MEMBER(tecnbras_io_w);
-// DECLARE_READ8_MEMBER(tecnbras_io_r);
+// DECLARE_WRITE8_MEMBER(tecnbras_io_w);
+// DECLARE_READ8_MEMBER(tecnbras_io_r);
DECLARE_DRIVER_INIT(tecnbras);
private:
- int m_xcoord;
+ int m_xcoord;
char m_digit[14][7];
virtual void machine_start();
virtual void machine_reset();
@@ -84,11 +84,11 @@ WRITE8_MEMBER(tecnbras_state::print_column_w)
void tecnbras_state::machine_start()
{
/*
- for (int x=0; x<14; x++){
- for (int y=0; y<7; y++){
- output_set_indexed_value("dmd_", x*7 + y, y);
- }
- }
+ for (int x=0; x<14; x++){
+ for (int y=0; y<7; y++){
+ output_set_indexed_value("dmd_", x*7 + y, y);
+ }
+ }
*/
}
@@ -103,17 +103,17 @@ static MACHINE_CONFIG_START( tecnbras, tecnbras_state )
MCFG_CPU_IO_MAP(i80c31_io)
/* TODO: Add an I2C RTC (Phillips PCF8583P)
- pin 6 (SCL): cpu T0/P3.4 (pin 14)
+ pin 6 (SCL): cpu T0/P3.4 (pin 14)
pin 5 (SDA): cpu T1/P3.5 (pin 15)
*/
/*
- TODO: Add a speaker
- CPU P1.0 (pin 1)
+ TODO: Add a speaker
+ CPU P1.0 (pin 1)
*/
/*
- TODO: Add a communications port to receive commands from the remote control
+ TODO: Add a communications port to receive commands from the remote control
*/
/* video hardware */
diff --git a/src/mess/drivers/ti630.c b/src/mess/drivers/ti630.c
index 2668fcfa71d..62291fca119 100644
--- a/src/mess/drivers/ti630.c
+++ b/src/mess/drivers/ti630.c
@@ -14,18 +14,18 @@
* LCD works
================
- Messages displayed on screen are in brazilian portuguese.
- During boot, it says:
+ Messages displayed on screen are in brazilian portuguese.
+ During boot, it says:
"TI auto-test."
"Wait!"
- Then it says:
+ Then it says:
"Initializing..."
"Wait!"
- And finally:
+ And finally:
"TI did not receive"
"the dial tone"
@@ -108,54 +108,54 @@ READ8_MEMBER(ti630_state::ti630_io_r)
WRITE8_MEMBER(ti630_state::ti630_io_w)
{
- static UINT8 p0=0, p1=0, p2=0, p3=0;
- switch (offset)
- {
- case 0x00:
- {
- if (data != p0)
- {
- p0=data;
+ static UINT8 p0=0, p1=0, p2=0, p3=0;
+ switch (offset)
+ {
+ case 0x00:
+ {
+ if (data != p0)
+ {
+ p0=data;
#if LOG_IO_PORTS
- printf("Write to P0: %02X\n", data);
+ printf("Write to P0: %02X\n", data);
#endif
- }
- break;
- }
- case 0x01:
- {
- if (data != p1)
- {
- p1=data;
+ }
+ break;
+ }
+ case 0x01:
+ {
+ if (data != p1)
+ {
+ p1=data;
#if LOG_IO_PORTS
- printf("Write to P1: %02X\n", data);
+ printf("Write to P1: %02X\n", data);
#endif
- }
- break;
- }
- case 0x02:
- {
- if (data != p2)
- {
- p2=data;
+ }
+ break;
+ }
+ case 0x02:
+ {
+ if (data != p2)
+ {
+ p2=data;
#if LOG_IO_PORTS
- printf("Write to P2: %02X\n", data);
+ printf("Write to P2: %02X\n", data);
#endif
- }
- break;
- }
- case 0x03:
- {
- if (data != p3)
- {
- p3=data;
+ }
+ break;
+ }
+ case 0x03:
+ {
+ if (data != p3)
+ {
+ p3=data;
#if LOG_IO_PORTS
- printf("Write to P3: %02X\n", data);
+ printf("Write to P3: %02X\n", data);
#endif
- }
- break;
- }
- }
+ }
+ break;
+ }
+ }
}
PALETTE_INIT_MEMBER(ti630_state, ti630)
diff --git a/src/mess/drivers/tiki100.c b/src/mess/drivers/tiki100.c
index d357130cabb..05dba98142a 100644
--- a/src/mess/drivers/tiki100.c
+++ b/src/mess/drivers/tiki100.c
@@ -697,7 +697,7 @@ static MACHINE_CONFIG_START( tiki100, tiki100_state )
MCFG_CASSETTE_ADD(CASSETTE_TAG)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
-
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape", tiki100_state, tape_tick, attotime::from_hz(44100))
/* sound hardware */
diff --git a/src/mess/drivers/trs80.c b/src/mess/drivers/trs80.c
index 5c6959463ae..56b42ee6376 100644
--- a/src/mess/drivers/trs80.c
+++ b/src/mess/drivers/trs80.c
@@ -592,7 +592,7 @@ static MACHINE_CONFIG_DERIVED( model1, trs80 ) // model I, level II
MCFG_CASSETTE_MODIFY( "cassette" )
MCFG_CASSETTE_FORMATS(trs80l2_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
-
+
MCFG_QUICKLOAD_ADD("quickload", trs80_state, trs80_cmd, "cmd", 0.5)
MCFG_DEVICE_ADD("wd179x", FD1793, 0) // should be FD1771 or FD1791 but inverted data lines are too tricky to fix now
diff --git a/src/mess/drivers/ut88.c b/src/mess/drivers/ut88.c
index b79fb2e4472..362edb04717 100644
--- a/src/mess/drivers/ut88.c
+++ b/src/mess/drivers/ut88.c
@@ -213,7 +213,7 @@ static MACHINE_CONFIG_START( ut88, ut88_state )
MCFG_CASSETTE_FORMATS(rku_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("ut88_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","ut88")
MACHINE_CONFIG_END
@@ -237,7 +237,7 @@ static MACHINE_CONFIG_START( ut88mini, ut88_state )
MCFG_CASSETTE_FORMATS(rku_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
MCFG_CASSETTE_INTERFACE("ut88_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","ut88")
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/vt100.c b/src/mess/drivers/vt100.c
index cf76256432b..0feca234696 100644
--- a/src/mess/drivers/vt100.c
+++ b/src/mess/drivers/vt100.c
@@ -454,7 +454,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( vt102, vt100 )
MCFG_CPU_REPLACE("maincpu",I8085A, XTAL_24_8832MHz / 9)
MCFG_CPU_PROGRAM_MAP(vt100_mem)
- MCFG_CPU_IO_MAP(vt100_io)
+ MCFG_CPU_IO_MAP(vt100_io)
MCFG_CPU_VBLANK_INT_DRIVER("screen", vt100_state, vt100_vertical_interrupt)
MCFG_CPU_IRQ_ACKNOWLEDGE_DRIVER(vt100_state,vt100_irq_callback)
MACHINE_CONFIG_END
diff --git a/src/mess/drivers/vtech1.c b/src/mess/drivers/vtech1.c
index ad97dc7c3e5..56c517349aa 100644
--- a/src/mess/drivers/vtech1.c
+++ b/src/mess/drivers/vtech1.c
@@ -512,7 +512,7 @@ ROM_START( vz200de )
ROM_END
#define rom_laser200 rom_laser110
-#define rom_fellow rom_laser110
+#define rom_fellow rom_laser110
// It's possible that the Texet TX-8000 came with BASIC V1.0, but this needs to be verified
#define rom_tx8000 rom_laser110
@@ -541,7 +541,7 @@ ROM_START( laser310 )
ROMX_LOAD("vtechv21.u12", 0x0000, 0x4000, CRC(f7df980f) SHA1(5ba14a7a2eedca331b033901080fa5d205e245ea), ROM_BIOS(2))
ROM_END
-#define rom_vz300 rom_laser310
+#define rom_vz300 rom_laser310
#define rom_laser310h rom_laser310
diff --git a/src/mess/drivers/wicat.c b/src/mess/drivers/wicat.c
index a1aedf41df7..10f9aa9a023 100644
--- a/src/mess/drivers/wicat.c
+++ b/src/mess/drivers/wicat.c
@@ -10,9 +10,9 @@ Wicat - various systems.
/*
- TODO:
+ TODO:
- - video DMA is done line by line and needs to be in perfect sync
+ - video DMA is done line by line and needs to be in perfect sync
*/
diff --git a/src/mess/drivers/x1.c b/src/mess/drivers/x1.c
index 9d667d90420..888b9c429dc 100644
--- a/src/mess/drivers/x1.c
+++ b/src/mess/drivers/x1.c
@@ -2499,8 +2499,8 @@ static MACHINE_CONFIG_START( x1, x1_state )
MCFG_CASSETTE_ADD("cassette")
MCFG_CASSETTE_FORMATS(x1_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
- MCFG_CASSETTE_INTERFACE("x1_cass")
-
+ MCFG_CASSETTE_INTERFACE("x1_cass")
+
MCFG_SOFTWARE_LIST_ADD("cass_list","x1_cass")
MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(x1_floppy_interface)
@@ -2531,7 +2531,7 @@ static MACHINE_CONFIG_DERIVED( x1turbo, x1 )
MCFG_DEVICE_REMOVE("fdc")
MCFG_DEVICE_ADD("fdc", MB8877, 0)
MCFG_WD17XX_DEFAULT_DRIVE4_TAGS
- MCFG_WD17XX_DRQ_CALLBACK(WRITELINE(x1_state,fdc_drq_w))
+ MCFG_WD17XX_DRQ_CALLBACK(WRITELINE(x1_state,fdc_drq_w))
MCFG_YM2151_ADD("ym", MAIN_CLOCK/8) //option board
MCFG_SOUND_ROUTE(0, "lspeaker", 0.50)
@@ -2647,4 +2647,4 @@ COMP( 1982, x1, 0, 0, x1, x1, driver_device, 0,
// x1twin in x1twin.c
COMP( 1984, x1turbo, x1, 0, x1turbo, x1turbo, x1_state, x1_kanji, "Sharp", "X1 Turbo (CZ-850C)", GAME_NOT_WORKING ) //model 10
COMP( 1985, x1turbo40, x1, 0, x1turbo, x1turbo, x1_state, x1_kanji, "Sharp", "X1 Turbo (CZ-862C)", 0 ) //model 40
-//COMP( 1986, x1turboz, x1, 0, x1turbo, x1turbo, x1_state, x1_kanji, "Sharp", "X1 TurboZ", GAME_NOT_WORKING ) \ No newline at end of file
+//COMP( 1986, x1turboz, x1, 0, x1turbo, x1turbo, x1_state, x1_kanji, "Sharp", "X1 TurboZ", GAME_NOT_WORKING )
diff --git a/src/mess/drivers/x1twin.c b/src/mess/drivers/x1twin.c
index 8505959262f..42a362a2fa8 100644
--- a/src/mess/drivers/x1twin.c
+++ b/src/mess/drivers/x1twin.c
@@ -501,7 +501,7 @@ static MACHINE_CONFIG_START( x1twin, x1twin_state )
MCFG_CASSETTE_FORMATS(x1_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
MCFG_CASSETTE_INTERFACE("x1_cass")
-
+
MCFG_SOFTWARE_LIST_ADD("cass_list","x1_cass")
MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(x1_floppy_interface)
diff --git a/src/mess/drivers/x68k.c b/src/mess/drivers/x68k.c
index 5d17498d86e..ade8ac624ae 100644
--- a/src/mess/drivers/x68k.c
+++ b/src/mess/drivers/x68k.c
@@ -1636,7 +1636,7 @@ static MACHINE_CONFIG_START( x68000, x68k_state )
MCFG_CPU_ADD("maincpu", M68000, 10000000) /* 10 MHz */
MCFG_CPU_PROGRAM_MAP(x68k_map)
MCFG_CPU_IRQ_ACKNOWLEDGE_DRIVER(x68k_state,x68k_int_ack)
-
+
MCFG_QUANTUM_TIME(attotime::from_hz(60))
MCFG_MACHINE_START_OVERRIDE(x68k_state, x68000 )
@@ -1661,7 +1661,7 @@ static MACHINE_CONFIG_START( x68000, x68k_state )
MCFG_I8255_OUT_PORTC_CB(WRITE8(x68k_state, ppi_port_c_w))
MCFG_DEVICE_ADD("hd63450", HD63450, 0)
- MCFG_HD63450_CPU("maincpu") // CPU - 68000
+ MCFG_HD63450_CPU("maincpu") // CPU - 68000
MCFG_HD63450_CLOCKS(attotime::from_usec(2), attotime::from_nsec(450), attotime::from_usec(4), attotime::from_hz(15625/2))
MCFG_HD63450_BURST_CLOCKS(attotime::from_usec(2), attotime::from_nsec(450), attotime::from_nsec(50), attotime::from_nsec(50))
MCFG_HD63450_DMA_END_CB(WRITE8(x68k_state, dma_end))
diff --git a/src/mess/drivers/xerox820.c b/src/mess/drivers/xerox820.c
index f25722b20f2..23e9c534aa1 100644
--- a/src/mess/drivers/xerox820.c
+++ b/src/mess/drivers/xerox820.c
@@ -328,7 +328,7 @@ WRITE8_MEMBER( xerox820ii_state::rdpio_pb_w )
bit description
- 0 NBSY
+ 0 NBSY
1 NMSG
2 NC/D
3 NREQ
diff --git a/src/mess/drivers/z9001.c b/src/mess/drivers/z9001.c
index e1ccc82c7b8..b25c966fea5 100644
--- a/src/mess/drivers/z9001.c
+++ b/src/mess/drivers/z9001.c
@@ -236,7 +236,7 @@ static MACHINE_CONFIG_START( z9001, z9001_state )
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
MCFG_Z80PIO_OUT_PA_CB(WRITE8(z9001_state, port88_w))
- MCFG_DEVICE_ADD("z80pio2", Z80PIO, XTAL_9_8304MHz / 4) // keyboard PIO
+ MCFG_DEVICE_ADD("z80pio2", Z80PIO, XTAL_9_8304MHz / 4) // keyboard PIO
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_9_8304MHz / 4)
diff --git a/src/mess/drivers/zorba.c b/src/mess/drivers/zorba.c
index 059943cda74..2e4e8b224c6 100644
--- a/src/mess/drivers/zorba.c
+++ b/src/mess/drivers/zorba.c
@@ -322,8 +322,8 @@ static MACHINE_CONFIG_START( zorba, zorba_state )
/* devices */
MCFG_DEVICE_ADD("dma", Z80DMA, XTAL_24MHz/6)
// busack on cpu connects to bai pin
- MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(zorba_state, busreq_w)) //connects to busreq on cpu
- MCFG_Z80DMA_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) // connects to IRQ0 on cpu
+ MCFG_Z80DMA_OUT_BUSREQ_CB(WRITELINE(zorba_state, busreq_w)) //connects to busreq on cpu
+ MCFG_Z80DMA_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) // connects to IRQ0 on cpu
//ba0 - not connected
MCFG_Z80DMA_IN_MREQ_CB(READ8(zorba_state, memory_read_byte))
MCFG_Z80DMA_OUT_MREQ_CB(WRITE8(zorba_state, memory_write_byte))
diff --git a/src/mess/drivers/zx.c b/src/mess/drivers/zx.c
index f6ce222a3b9..48db70d4f2e 100644
--- a/src/mess/drivers/zx.c
+++ b/src/mess/drivers/zx.c
@@ -403,7 +403,7 @@ static MACHINE_CONFIG_DERIVED( zx81, zx80 )
MCFG_GFXDECODE_MODIFY("gfxdecode", zx81)
MCFG_CASSETTE_MODIFY( "cassette" )
- MCFG_CASSETTE_FORMATS(zx81_p_format)
+ MCFG_CASSETTE_FORMATS(zx81_p_format)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( ts1000, zx81 )
diff --git a/src/mess/machine/amstrad.c b/src/mess/machine/amstrad.c
index 00eb19cd089..0040187ec6e 100644
--- a/src/mess/machine/amstrad.c
+++ b/src/mess/machine/amstrad.c
@@ -2822,7 +2822,7 @@ static const UINT8 amstrad_cycle_table_ex[256]=
8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0
};
-#define NEXT_ROM_SLOT m_rom_count++; \
+#define NEXT_ROM_SLOT m_rom_count++; \
if(slot3 && m_rom_count == 3) m_rom_count++; \
if(slot7 && m_rom_count == 7) m_rom_count++;
diff --git a/src/mess/machine/apollo.c b/src/mess/machine/apollo.c
index 805903146b6..03682652d25 100644
--- a/src/mess/machine/apollo.c
+++ b/src/mess/machine/apollo.c
@@ -97,13 +97,13 @@ INPUT_PORTS_START( apollo_config )
PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
PORT_CONFSETTING(APOLLO_CONF_25_YEARS_AGO, DEF_STR ( On ) )
-// PORT_CONFNAME(APOLLO_CONF_NODE_ID, APOLLO_CONF_NODE_ID, "Node ID from Disk")
-// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
-// PORT_CONFSETTING(APOLLO_CONF_NODE_ID, DEF_STR ( On ) )
+// PORT_CONFNAME(APOLLO_CONF_NODE_ID, APOLLO_CONF_NODE_ID, "Node ID from Disk")
+// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
+// PORT_CONFSETTING(APOLLO_CONF_NODE_ID, DEF_STR ( On ) )
-// PORT_CONFNAME(APOLLO_CONF_IDLE_SLEEP, 0x00, "Idle Sleep")
-// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
-// PORT_CONFSETTING(APOLLO_CONF_IDLE_SLEEP, DEF_STR ( On ) )
+// PORT_CONFNAME(APOLLO_CONF_IDLE_SLEEP, 0x00, "Idle Sleep")
+// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
+// PORT_CONFSETTING(APOLLO_CONF_IDLE_SLEEP, DEF_STR ( On ) )
PORT_CONFNAME(APOLLO_CONF_TRAP_TRACE, 0x00, "Trap Trace")
PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
@@ -113,13 +113,13 @@ INPUT_PORTS_START( apollo_config )
PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
PORT_CONFSETTING(APOLLO_CONF_FPU_TRACE, DEF_STR ( On ) )
-// PORT_CONFNAME(APOLLO_CONF_DISK_TRACE, 0x00, "Disk Trace")
-// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
-// PORT_CONFSETTING(APOLLO_CONF_DISK_TRACE, DEF_STR ( On ) )
+// PORT_CONFNAME(APOLLO_CONF_DISK_TRACE, 0x00, "Disk Trace")
+// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
+// PORT_CONFSETTING(APOLLO_CONF_DISK_TRACE, DEF_STR ( On ) )
-// PORT_CONFNAME(APOLLO_CONF_NET_TRACE, 0x00, "Network Trace")
-// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
-// PORT_CONFSETTING(APOLLO_CONF_NET_TRACE, DEF_STR ( On ) )
+// PORT_CONFNAME(APOLLO_CONF_NET_TRACE, 0x00, "Network Trace")
+// PORT_CONFSETTING(0x00, DEF_STR ( Off ) )
+// PORT_CONFSETTING(APOLLO_CONF_NET_TRACE, DEF_STR ( On ) )
INPUT_PORTS_END
@@ -740,7 +740,7 @@ void apollo_sio::device_reset()
ip3_w((input_data & 0x08) ? ASSERT_LINE : CLEAR_LINE);
ip4_w((input_data & 0x10) ? ASSERT_LINE : CLEAR_LINE);
ip5_w((input_data & 0x20) ? ASSERT_LINE : CLEAR_LINE);
-// ip6_w((input_data & 0x40) ? ASSERT_LINE : CLEAR_LINE);
+// ip6_w((input_data & 0x40) ? ASSERT_LINE : CLEAR_LINE);
// MC2681 has IP[6] (instead of /IACK on MC68681)
m_ip6 = (input_data & 0x40) ? ASSERT_LINE : CLEAR_LINE;
@@ -829,7 +829,7 @@ WRITE_LINE_MEMBER(apollo_state::sio_irq_handler)
WRITE8_MEMBER(apollo_state::sio_output)
{
-// CLOG2(("apollo_sio - sio_output %02x", data));
+// CLOG2(("apollo_sio - sio_output %02x", data));
if ((data & 0x80) != (sio_output_data & 0x80))
{
diff --git a/src/mess/machine/apple1.c b/src/mess/machine/apple1.c
index 84268216947..4ffd0f563ae 100644
--- a/src/mess/machine/apple1.c
+++ b/src/mess/machine/apple1.c
@@ -400,5 +400,3 @@ TIMER_CALLBACK_MEMBER(apple1_state::apple1_dsp_ready_end)
another display write. */
pia->cb1_w(1);
}
-
-
diff --git a/src/mess/machine/apple2.c b/src/mess/machine/apple2.c
index c18cc1a8f7f..76105da903d 100644
--- a/src/mess/machine/apple2.c
+++ b/src/mess/machine/apple2.c
@@ -354,7 +354,7 @@ READ8_MEMBER(apple2_state::apple2_c080_r)
offset &= 0xf;
if (offset >= 8 && offset <= 0xb)
{
- return m_acia1->read(space, offset-8);
+ return m_acia1->read(space, offset-8);
}
}
else if (slot == 2)
@@ -362,7 +362,7 @@ READ8_MEMBER(apple2_state::apple2_c080_r)
offset &= 0xf;
if (offset >= 8 && offset <= 0xb)
{
- return m_acia2->read(space, offset-8);
+ return m_acia2->read(space, offset-8);
}
}
}
diff --git a/src/mess/machine/apple3.c b/src/mess/machine/apple3.c
index b48dabe8490..b6acd44537e 100644
--- a/src/mess/machine/apple3.c
+++ b/src/mess/machine/apple3.c
@@ -39,7 +39,7 @@
bits 0-5: 6-bit audio DAC output
bit 6: screen blank
bit 7: OR of NMI from slots
-
+
***************************************************************************/
#include "emu.h"
@@ -157,27 +157,27 @@ READ8_MEMBER(apple3_state::apple3_c0xx_r)
pdl_handler(offset);
break;
- case 0x60: // joystick switch 0
+ case 0x60: // joystick switch 0
case 0x68:
result = (m_joybuttons->read() & 1) ? 0x80 : 0x00;
break;
- case 0x61: // joystick switch 1 (margin switch for Silentype)
+ case 0x61: // joystick switch 1 (margin switch for Silentype)
case 0x69:
result = (m_joybuttons->read() & 4) ? 0x80 : 0x00;
break;
- case 0x62: // joystick switch 2
+ case 0x62: // joystick switch 2
case 0x6a:
result = (m_joybuttons->read() & 2) ? 0x80 : 0x00;
break;
- case 0x63: // joystick switch 3 (serial clock for silentype)
+ case 0x63: // joystick switch 3 (serial clock for silentype)
case 0x6b:
result = (m_joybuttons->read() & 8) ? 0x80 : 0x00;
break;
- case 0x66: // paddle A/D conversion done (bit 7 = 1 while counting, 0 when done)
+ case 0x66: // paddle A/D conversion done (bit 7 = 1 while counting, 0 when done)
case 0x6e:
return m_ramp_active ? 0x80 : 0x00;
break;
@@ -1197,7 +1197,7 @@ void apple3_state::pdl_handler(int offset)
}
m_pdltimer->adjust(attotime::from_hz(1000000.0));
m_ramp_active = true;
- break;
+ break;
case 0x5e:
m_analog_sel &= ~2;
@@ -1231,4 +1231,3 @@ TIMER_DEVICE_CALLBACK_MEMBER(apple3_state::paddle_timer)
m_pdltimer->adjust(attotime::from_hz(1000000.0));
}
}
-
diff --git a/src/mess/machine/beta.c b/src/mess/machine/beta.c
index 998f0963a83..a0f6425618f 100644
--- a/src/mess/machine/beta.c
+++ b/src/mess/machine/beta.c
@@ -142,7 +142,7 @@ WRITE8_MEMBER(beta_disk_device::param_w)
{
const char *floppy_tags[4] = { FLOPPY_0, FLOPPY_1, FLOPPY_2, FLOPPY_3 };
- if (m_betadisk_active == 1)
+ if (m_betadisk_active == 1)
{
m_wd179x->set_drive(data & 3);
m_wd179x->set_side ((data & 0x10) ? 0 : 1 );
diff --git a/src/mess/machine/dec_lk201.c b/src/mess/machine/dec_lk201.c
index ee822b10b8f..c1537b31555 100644
--- a/src/mess/machine/dec_lk201.c
+++ b/src/mess/machine/dec_lk201.c
@@ -230,14 +230,14 @@ const rom_entry *lk201_device::device_rom_region() const
DEC omitted terms like 'Interrupt', 'Break' and 'Data / Talk' on some keyboards,
so Fn numbers are definitely important for end users.
-
+
=== CURRENT SPECIAL KEYS ===
- [PC-AT] ......=> [DEC]
- LEFT CONTROL..=> Control
- LEFT ALT .....=> Compose
-
- RIGHT ALT ....=> Help
- RIGHT CONTROL => Do
+ [PC-AT] ......=> [DEC]
+ LEFT CONTROL..=> Control
+ LEFT ALT .....=> Compose
+
+ RIGHT ALT ....=> Help
+ RIGHT CONTROL => Do
==============================================================================================
=== (PC - AT ) keys above cursor block ===
* KEYCODE_INSERT * KEYCODE_HOME * KEYCODE_PGUP
@@ -249,9 +249,9 @@ const rom_entry *lk201_device::device_rom_region() const
==============================================================================================
=== CURRENT NUM PAD ASSIGNMENTS ===
[PF1] to [PF4] are mapped to NUM LOCK, SLASH etc. (=> 4 keys on top on num pad).
- Num pad '+' gives ',' on the DEC.
+ Num pad '+' gives ',' on the DEC.
',' translates to '.' (=> more or less the layout of model 'LK-201-AG')
-
+
Switch between 'full' and 'partial keyboard emulation' with Scroll Lock.
*/
@@ -276,7 +276,7 @@ INPUT_PORTS_START( lk201 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Compose") PORT_CODE(KEYCODE_LALT)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Caps Lock") PORT_CODE(KEYCODE_CAPSLOCK)
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL)
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL)
PORT_START("KBD2")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)
@@ -369,8 +369,8 @@ INPUT_PORTS_START( lk201 )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_START("KBD11")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH)
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(";") PORT_CODE(KEYCODE_COLON)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH)
+ PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME(";") PORT_CODE(KEYCODE_COLON)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) // FIXME - duplicate "Return"
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("P") PORT_CODE(KEYCODE_P)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("0") PORT_CODE(KEYCODE_0)
@@ -394,7 +394,7 @@ INPUT_PORTS_START( lk201 )
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Previous [^]") PORT_CODE(KEYCODE_END)
- PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Do (F16) [Ausfuehren]") PORT_CODE(KEYCODE_RCONTROL)
+ PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Do (F16) [Ausfuehren]") PORT_CODE(KEYCODE_RCONTROL)
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Insert Here") PORT_CODE(KEYCODE_HOME)
@@ -433,7 +433,7 @@ INPUT_PORTS_START( lk201 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("Num ,") PORT_CODE(KEYCODE_PLUS_PAD)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD ) // PORT_NAME("Num -") = duplicate...see KBD13
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("PF4") PORT_CODE(KEYCODE_MINUS_PAD)
- PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F20")
+ PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F20")
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("F19")
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
@@ -755,4 +755,3 @@ WRITE8_MEMBER( lk201_device::spi_w )
// printf("SPI %02x to %x (PC=%x)\n", data, offset, m_maincpu->pc());
}
-
diff --git a/src/mess/machine/genpc.c b/src/mess/machine/genpc.c
index 7c5139b4d1d..c919cceb077 100644
--- a/src/mess/machine/genpc.c
+++ b/src/mess/machine/genpc.c
@@ -422,7 +422,7 @@ static MACHINE_CONFIG_FRAGMENT( ibm5160_mb_config )
MCFG_I8237_OUT_DACK_1_CB(WRITELINE(ibm5160_mb_device, pc_dack1_w))
MCFG_I8237_OUT_DACK_2_CB(WRITELINE(ibm5160_mb_device, pc_dack2_w))
MCFG_I8237_OUT_DACK_3_CB(WRITELINE(ibm5160_mb_device, pc_dack3_w))
-
+
MCFG_PIC8259_ADD( "pic8259", INPUTLINE(":maincpu", 0), VCC, NULL )
MCFG_DEVICE_ADD("ppi8255", I8255A, 0)
diff --git a/src/mess/machine/hp48.c b/src/mess/machine/hp48.c
index e966887c6b2..275d6a09a71 100644
--- a/src/mess/machine/hp48.c
+++ b/src/mess/machine/hp48.c
@@ -682,7 +682,7 @@ TIMER_CALLBACK_MEMBER(hp48_state::hp48_timer2_cb)
NCE1 256KB ROM 512KB ROM 2MB flash ROM
- - NCE1 (ROM) cannot be configured, it is always visible at addresses
+ - NCE1 (ROM) cannot be configured, it is always visible at addresses
00000-7ffff not covered by higher priority modules.
- only the address of HDW (I/O) can be configured, its size is constant
@@ -712,7 +712,7 @@ void hp48_state::hp48_apply_modules()
LOG(( "hp48_apply_modules: high ROM bank is %i\n", bank_hi ));
space.install_read_bank( 0x00000, 0x3ffff, 0, 0x80000, "bank5" );
space.install_read_bank( 0x40000, 0x7ffff, 0, 0x80000, "bank6" );
- if ( m_rom )
+ if ( m_rom )
{
membank("bank5")->set_base( m_rom + bank_lo * 0x40000 );
membank("bank6")->set_base( m_rom + bank_hi * 0x40000 );
@@ -743,7 +743,7 @@ void hp48_state::hp48_apply_modules()
LOG(( "hp48_apply_modules: A19 disabled, NCE3 %s\n", nce3_enable ? "enabled" : "disabled" ));
space.install_read_bank( 0, 0x7ffff, 0, 0x80000, "bank5" );
}
- if ( m_rom )
+ if ( m_rom )
membank("bank5")->set_base( m_rom );
}
else
diff --git a/src/mess/machine/msx.c b/src/mess/machine/msx.c
index 5cc78cfa073..1c4d2d10f31 100644
--- a/src/mess/machine/msx.c
+++ b/src/mess/machine/msx.c
@@ -527,4 +527,3 @@ WRITE8_MEMBER( msx_state::msx_switched_w )
this->space().write_byte( (m_current_switched_device << 8) | offset, data );
}
}
-
diff --git a/src/mess/machine/msx_matsushita.c b/src/mess/machine/msx_matsushita.c
index fc2540afa02..52c2ea201b1 100644
--- a/src/mess/machine/msx_matsushita.c
+++ b/src/mess/machine/msx_matsushita.c
@@ -165,4 +165,3 @@ WRITE8_MEMBER(msx_matsushita_device::io_write)
break;
}
}
-
diff --git a/src/mess/machine/msx_s1985.c b/src/mess/machine/msx_s1985.c
index 588fb668695..ab1ce03c297 100644
--- a/src/mess/machine/msx_s1985.c
+++ b/src/mess/machine/msx_s1985.c
@@ -62,4 +62,3 @@ WRITE8_MEMBER(msx_s1985_device::io_write)
break;
}
}
-
diff --git a/src/mess/machine/msx_switched.c b/src/mess/machine/msx_switched.c
index 9b416c7df7d..cf81126f94b 100644
--- a/src/mess/machine/msx_switched.c
+++ b/src/mess/machine/msx_switched.c
@@ -18,4 +18,3 @@ void msx_switched_device::device_start()
space.install_read_handler(start, end, read8_delegate(FUNC(msx_switched_device::io_read), this));
space.install_write_handler(start, end, write8_delegate(FUNC(msx_switched_device::io_write), this));
}
-
diff --git a/src/mess/machine/msx_systemflags.c b/src/mess/machine/msx_systemflags.c
index 6f6bb176af6..78b39a9335b 100644
--- a/src/mess/machine/msx_systemflags.c
+++ b/src/mess/machine/msx_systemflags.c
@@ -36,4 +36,3 @@ WRITE8_MEMBER(msx_systemflags_device::write)
{
m_system_flags = data;
}
-
diff --git a/src/mess/machine/nes.c b/src/mess/machine/nes.c
index f0a299cb3e1..7dd99365950 100644
--- a/src/mess/machine/nes.c
+++ b/src/mess/machine/nes.c
@@ -158,7 +158,7 @@ void nes_state::machine_start()
m_ppu->set_latch(ppu2c0x_latch_delegate(FUNC(device_nes_cart_interface::ppu_latch),m_cartslot->m_cart));
// install additional handlers (read_h, read_ex, write_ex)
- if (m_cartslot->get_pcb_id() == STD_EXROM || m_cartslot->get_pcb_id() == STD_NROM368
+ if (m_cartslot->get_pcb_id() == STD_EXROM || m_cartslot->get_pcb_id() == STD_NROM368
|| m_cartslot->get_pcb_id() == GG_NROM || m_cartslot->get_pcb_id() == CAMERICA_ALADDIN || m_cartslot->get_pcb_id() == SUNSOFT_DCS
|| m_cartslot->get_pcb_id() == BANDAI_DATACH || m_cartslot->get_pcb_id() == BANDAI_KARAOKE || m_cartslot->get_pcb_id() == BTL_2A03_PURITANS || m_cartslot->get_pcb_id() == AVE_MAXI15
|| m_cartslot->get_pcb_id() == KAISER_KS7022 || m_cartslot->get_pcb_id() == KAISER_KS7031 || m_cartslot->get_pcb_id() == BMC_VT5201
diff --git a/src/mess/machine/radio86.c b/src/mess/machine/radio86.c
index 21b79efdb94..4e77c33ef15 100644
--- a/src/mess/machine/radio86.c
+++ b/src/mess/machine/radio86.c
@@ -221,4 +221,3 @@ void radio86_state::video_start()
{
m_charmap = memregion("gfx1")->base();
}
-
diff --git a/src/mess/machine/rmnimbus.c b/src/mess/machine/rmnimbus.c
index 8a0bb42f457..2aad7a7ef2c 100644
--- a/src/mess/machine/rmnimbus.c
+++ b/src/mess/machine/rmnimbus.c
@@ -178,7 +178,6 @@ static void decode_dssi_f_rw_sectors(device_t *device,UINT16 ds, UINT16 si, UIN
void rmnimbus_state::external_int(UINT8 vector, bool state)
{
-
if(!state && (vector != m_vector))
return;
diff --git a/src/mess/machine/super80.c b/src/mess/machine/super80.c
index 56e91066006..10123313022 100644
--- a/src/mess/machine/super80.c
+++ b/src/mess/machine/super80.c
@@ -57,15 +57,15 @@ TIMER_DEVICE_CALLBACK_MEMBER( super80_state::timer_k )
}
/* cassette load circuit
- This "emulates" U79 CD4046BCN PLL chip and U1 LM311P op-amp. U79 converts a frequency to a voltage,
- and U1 amplifies that voltage to digital levels. U1 has a trimpot connected, to set the midpoint.
+ This "emulates" U79 CD4046BCN PLL chip and U1 LM311P op-amp. U79 converts a frequency to a voltage,
+ and U1 amplifies that voltage to digital levels. U1 has a trimpot connected, to set the midpoint.
- The MDS homebrew input circuit consists of 2 op-amps followed by a D-flipflop.
- The "read-any-system" cassette circuit is a CA3140 op-amp, the smarts being done in software.
+ The MDS homebrew input circuit consists of 2 op-amps followed by a D-flipflop.
+ The "read-any-system" cassette circuit is a CA3140 op-amp, the smarts being done in software.
- bit 0 = original system (U79 and U1)
- bit 1 = MDS fast system
- bit 2 = CA3140 */
+ bit 0 = original system (U79 and U1)
+ bit 1 = MDS fast system
+ bit 2 = CA3140 */
TIMER_DEVICE_CALLBACK_MEMBER( super80_state::timer_p )
{
UINT8 cass_ws=0;
diff --git a/src/mess/tools/castool/main.c b/src/mess/tools/castool/main.c
index 410a4f6a3ca..3223a69328f 100644
--- a/src/mess/tools/castool/main.c
+++ b/src/mess/tools/castool/main.c
@@ -88,7 +88,7 @@ const struct SupportedCassetteFormats formats[] = {
{"rka", rka_cassette_formats ,"Apogee"},
{"rkm", rkm_cassette_formats ,"Mikrosha"},
{"rkp", rkp_cassette_formats ,"Partner"},
- {"sc3000", sc3000_cassette_formats ,"Sega SC-3000"},
+ {"sc3000", sc3000_cassette_formats ,"Sega SC-3000"},
{"sordm5", sordm5_cassette_formats ,"Sord M5"},
{"svi", svi_cassette_formats ,"SVI"},
{"to7", to7_cassette_formats ,"Thomson TO"},
diff --git a/src/mess/tools/imgtool/modules/hp48.c b/src/mess/tools/imgtool/modules/hp48.c
index 126f389093f..9e0492191ab 100644
--- a/src/mess/tools/imgtool/modules/hp48.c
+++ b/src/mess/tools/imgtool/modules/hp48.c
@@ -21,15 +21,15 @@
Currently, we only support storing host files into backup objects and
retreiving backup objects into files.
- For attached library objects in the memory card, we only show their name, but
+ For attached library objects in the memory card, we only show their name, but
cannot retrieve their contents.
To install a library contained in a host file, copy it with imgtool to
the card; it creates a backup object visible in the "PORTS" menu;
- then evalue the object, store it into some port (e.g, 0 STO),
- turn off the HP48 and back on; the library should now be attached and
- visible in the "LIBRARY" menu.
- (The process is similar to installing a library from a file you get
+ then evalue the object, store it into some port (e.g, 0 STO),
+ turn off the HP48 and back on; the library should now be attached and
+ visible in the "LIBRARY" menu.
+ (The process is similar to installing a library from a file you get
from the serial interface.)
*/
@@ -60,16 +60,16 @@
total length: len+4
- i.e., the backup object is a container containing the object name
- and two objects: the backuped object itself and a system integer
+ i.e., the backup object is a container containing the object name
+ and two objects: the backuped object itself and a system integer
that contains the CRC.
- HP48 host files start with a "HPHP48-X" header (where X can be any
- single letter, which denotes a ROM revision and, implicitly, whether
+ HP48 host files start with a "HPHP48-X" header (where X can be any
+ single letter, which denotes a ROM revision and, implicitly, whether
the program is for the S/SX or the G/GX family).
- When storing a file to the memory card, we strip the header and
+ When storing a file to the memory card, we strip the header and
embed the object into a backup object with the correct CRC.
- When copying from the memory card to a host file, we extract the object
+ When copying from the memory card to a host file, we extract the object
from the backup container, stripping its CRC, and add the HPHP48-X header.
*/
@@ -91,34 +91,34 @@
*****************************************************************************/
-struct hp48_card
+struct hp48_card
{
imgtool_stream *stream;
- int modified;
-
- /* size, in bytes of card data: from 32 KB to 4 MB */
- int size;
-
- /* we store each nibble (4-bit) into its own byte, for simpler addressing;
- hence, data has 2*size
- */
- UINT8* data;
-
+ int modified;
+
+ /* size, in bytes of card data: from 32 KB to 4 MB */
+ int size;
+
+ /* we store each nibble (4-bit) into its own byte, for simpler addressing;
+ hence, data has 2*size
+ */
+ UINT8* data;
+
};
struct hp48_partition
{
- /* pointer to the begining of the partition inside the hp48_card */
- UINT8* data;
+ /* pointer to the begining of the partition inside the hp48_card */
+ UINT8* data;
+
+ /* size, in bytes (128 KB or less) */
+ int size;
- /* size, in bytes (128 KB or less) */
- int size;
-
};
-struct hp48_directory
+struct hp48_directory
{
- int pos;
+ int pos;
};
@@ -146,175 +146,175 @@ static const char hp48_create_optionspec[] = "S32/64/[128]/256/512/1024/2048/409
/*****************************************************************************
Utility functions
*****************************************************************************/
-
+
/* byes to nibbles */
static void unpack(UINT8* dst, UINT8* src, int nsize)
{
- int i;
-
- if ( nsize & 1 )
- {
- dst[nsize-1] = src[nsize/2] & 0xf;
- }
-
- for ( i = nsize/2-1; i >= 0; i-- )
- {
- dst[2*i+1] = src[i] >> 4;
- dst[2*i ] = src[i] & 0xf;
- }
+ int i;
+
+ if ( nsize & 1 )
+ {
+ dst[nsize-1] = src[nsize/2] & 0xf;
+ }
+
+ for ( i = nsize/2-1; i >= 0; i-- )
+ {
+ dst[2*i+1] = src[i] >> 4;
+ dst[2*i ] = src[i] & 0xf;
+ }
}
/* nibbles to bytes */
static void pack(UINT8* dst, UINT8* src, int nsize)
{
- int i;
+ int i;
- for ( i = 0 ; i < nsize/2; i++ )
- {
- dst[i] = (src[2*i] & 0xf) | (src[2*i+1] << 4);
- }
+ for ( i = 0 ; i < nsize/2; i++ )
+ {
+ dst[i] = (src[2*i] & 0xf) | (src[2*i+1] << 4);
+ }
- if ( nsize & 1 )
- {
- dst[nsize/2] = src[nsize-1] & 0xf;
- }
- }
+ if ( nsize & 1 )
+ {
+ dst[nsize/2] = src[nsize-1] & 0xf;
+ }
+ }
static int read20(UINT8* data)
{
- return data[0] | (data[1] << 4) | (data[2] << 8) | (data[3] << 12) | (data[4] << 16);
+ return data[0] | (data[1] << 4) | (data[2] << 8) | (data[3] << 12) | (data[4] << 16);
}
static int read8(UINT8* data)
{
- return data[0] | (data[1] << 4);
+ return data[0] | (data[1] << 4);
}
static void readstring(char* dst, UINT8* data, int nb)
{
- int i;
- for ( i = 0; i < nb; i++ )
- {
- dst[i] = read8( data + 2*i );
- }
- dst[nb] = 0;
+ int i;
+ for ( i = 0; i < nb; i++ )
+ {
+ dst[i] = read8( data + 2*i );
+ }
+ dst[nb] = 0;
}
static void write20(UINT8* data, int v)
{
- data[0] = v & 0xf;
- data[1] = (v >> 4) & 0xf;
- data[2] = (v >> 8) & 0xf;
- data[3] = (v >> 12) & 0xf;
- data[4] = (v >> 16) & 0xf;
+ data[0] = v & 0xf;
+ data[1] = (v >> 4) & 0xf;
+ data[2] = (v >> 8) & 0xf;
+ data[3] = (v >> 12) & 0xf;
+ data[4] = (v >> 16) & 0xf;
}
static void write8(UINT8* data, int v)
{
- data[0] = v & 0xf;
- data[1] = (v >> 4) & 0xf;
+ data[0] = v & 0xf;
+ data[1] = (v >> 4) & 0xf;
}
static void writestring(UINT8* data, const char* str, int nb)
{
- int i;
- for ( i = 0; i < nb; i++ )
- {
- write8( data + 2*i, str[i] );
- }
+ int i;
+ for ( i = 0; i < nb; i++ )
+ {
+ write8( data + 2*i, str[i] );
+ }
}
/* go to the end, return its offset */
static int find_end(hp48_partition* p)
{
- int pos = 0;
- while (1)
- {
- if ( pos + 10 > 2*p->size) break;
-
- int prolog = read20( p->data + pos );
- if ( !IS_OBJECT( prolog )) break;
-
- pos += read20( p->data + pos + 5 ) + 5;
- }
-
- if ( pos > 2*p->size ) pos = 2*p->size;
- return pos;
+ int pos = 0;
+ while (1)
+ {
+ if ( pos + 10 > 2*p->size) break;
+
+ int prolog = read20( p->data + pos );
+ if ( !IS_OBJECT( prolog )) break;
+
+ pos += read20( p->data + pos + 5 ) + 5;
+ }
+
+ if ( pos > 2*p->size ) pos = 2*p->size;
+ return pos;
}
/* find the backup object with the given name, returns its offset or -1 (not found) */
static int find_file(hp48_partition* p, const char* filename, int *ptotalsize, int* pstart, int* pcontentsize)
{
- UINT8* data = p->data;
- int pos = 0;
-
- /* find file */
- while (1)
- {
- if ( pos + 10 > 2*p->size) return -1;
-
- /* get prolog */
- int prolog = read20( data+pos );
- if ( !IS_OBJECT(prolog)) return -1;
-
- /* get size */
- int totalsize = read20( data+pos+5 );
- if ( totalsize < 14) return -1;
- if ( pos + 5 + totalsize > 2*p->size ) return -1;
-
- if ( prolog == PROLOG_BACKUP )
- {
- /* get name */
- int namelen = read8( data + pos + 10 );
- char name[257];
- if ( 9 + 2*namelen > totalsize ) return -1;
- readstring( name, data + pos + 12, namelen );
-
- /* check name */
- if ( !strcmp( name, filename ) )
- {
- /* found! */
- if ( ptotalsize ) *ptotalsize = totalsize;
- if ( pstart ) *pstart = pos + 14 + 2*namelen;
- if ( pcontentsize ) *pcontentsize = totalsize - (9 + 2*namelen);
- return pos;
- }
- else
- {
- /* skip */
- pos += totalsize + 5;
- }
- }
- else
- {
- /* skip */
- pos += totalsize + 5;
- }
-
- }
-
- return -1;
+ UINT8* data = p->data;
+ int pos = 0;
+
+ /* find file */
+ while (1)
+ {
+ if ( pos + 10 > 2*p->size) return -1;
+
+ /* get prolog */
+ int prolog = read20( data+pos );
+ if ( !IS_OBJECT(prolog)) return -1;
+
+ /* get size */
+ int totalsize = read20( data+pos+5 );
+ if ( totalsize < 14) return -1;
+ if ( pos + 5 + totalsize > 2*p->size ) return -1;
+
+ if ( prolog == PROLOG_BACKUP )
+ {
+ /* get name */
+ int namelen = read8( data + pos + 10 );
+ char name[257];
+ if ( 9 + 2*namelen > totalsize ) return -1;
+ readstring( name, data + pos + 12, namelen );
+
+ /* check name */
+ if ( !strcmp( name, filename ) )
+ {
+ /* found! */
+ if ( ptotalsize ) *ptotalsize = totalsize;
+ if ( pstart ) *pstart = pos + 14 + 2*namelen;
+ if ( pcontentsize ) *pcontentsize = totalsize - (9 + 2*namelen);
+ return pos;
+ }
+ else
+ {
+ /* skip */
+ pos += totalsize + 5;
+ }
+ }
+ else
+ {
+ /* skip */
+ pos += totalsize + 5;
+ }
+
+ }
+
+ return -1;
}
-/* CRC computing.
+/* CRC computing.
This is the same CRC that is computed by the HP48 hardware.
*/
static UINT16 crc(UINT8* data, int len)
{
- UINT16 crc = 0;
- int i;
-
- for ( i = 0; i < len; i++ )
- {
- crc = (crc >> 4) ^ (((crc ^ data[i]) & 0xf) * 0x1081);
- }
-
- return crc;
+ UINT16 crc = 0;
+ int i;
+
+ for ( i = 0; i < len; i++ )
+ {
+ crc = (crc >> 4) ^ (((crc ^ data[i]) & 0xf) * 0x1081);
+ }
+
+ return crc;
}
@@ -329,31 +329,31 @@ static imgtoolerr_t hp48_open(imgtool_image *img, imgtool_stream *stream)
hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
int size = stream_size( stream );
- /* check that size is a power of 2 between 32 KB and 4 MG */
- if ( (size < 32 * 1024) ||
- (size > 4 * 1024 * 1024) ||
- (size & (size-1)) )
- {
- return IMGTOOLERR_CORRUPTIMAGE;
- }
+ /* check that size is a power of 2 between 32 KB and 4 MG */
+ if ( (size < 32 * 1024) ||
+ (size > 4 * 1024 * 1024) ||
+ (size & (size-1)) )
+ {
+ return IMGTOOLERR_CORRUPTIMAGE;
+ }
- /* store info */
+ /* store info */
c->stream = stream;
c->modified = 0;
- c->size = size;
- c->data = (UINT8*) malloc( 2 * size );
- if ( !c->data )
- {
- return IMGTOOLERR_READERROR;
- }
-
- /* fully load image */
+ c->size = size;
+ c->data = (UINT8*) malloc( 2 * size );
+ if ( !c->data )
+ {
+ return IMGTOOLERR_READERROR;
+ }
+
+ /* fully load image */
stream_seek( stream, 0, SEEK_SET );
if ( stream_read( stream, c->data, size ) < size )
- {
- return IMGTOOLERR_READERROR;
- }
- unpack( c->data, c->data, 2 * size );
+ {
+ return IMGTOOLERR_READERROR;
+ }
+ unpack( c->data, c->data, 2 * size );
return IMGTOOLERR_SUCCESS;
}
@@ -367,19 +367,19 @@ static imgtoolerr_t hp48_create(imgtool_image* img,
hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
int size;
- size = option_resolution_lookup_int(opts, 'S');
+ size = option_resolution_lookup_int(opts, 'S');
- c->stream = stream;
- c->modified = 1;
- c->size = size * 1024;
- c->data = (UINT8*) malloc( 2 * c->size );
- if ( !c->data )
- {
- return IMGTOOLERR_READERROR;
- }
+ c->stream = stream;
+ c->modified = 1;
+ c->size = size * 1024;
+ c->data = (UINT8*) malloc( 2 * c->size );
+ if ( !c->data )
+ {
+ return IMGTOOLERR_READERROR;
+ }
- /* zeroing the image seems fine */
- memset( c->data, 0, 2 * c->size );
+ /* zeroing the image seems fine */
+ memset( c->data, 0, 2 * c->size );
return IMGTOOLERR_SUCCESS;
}
@@ -390,16 +390,16 @@ static void hp48_close(imgtool_image *img)
{
hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
- if ( c->modified )
- {
- /* save image */
- pack( c->data, c->data, 2 * c->size );
- stream_seek( c->stream, 0, SEEK_SET );
- stream_write( c->stream, c->data, c->size );
- }
+ if ( c->modified )
+ {
+ /* save image */
+ pack( c->data, c->data, 2 * c->size );
+ stream_seek( c->stream, 0, SEEK_SET );
+ stream_write( c->stream, c->data, c->size );
+ }
- /* clean up */
- free( c->data );
+ /* clean up */
+ free( c->data );
stream_close( c->stream );
}
@@ -411,24 +411,24 @@ static void hp48_close(imgtool_image *img)
void hp48_partition_get_info(const imgtool_class *imgclass, UINT32 state, union imgtoolinfo *info);
static imgtoolerr_t hp48_list_partitions(imgtool_image *img,
- imgtool_partition_info *partitions,
- size_t len)
-{
+ imgtool_partition_info *partitions,
+ size_t len)
+{
hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
- int i;
- for ( i = 0; i < len && i * MAX_PORT_SIZE < c->size ; i++ )
- {
- /* offset and size in bytes */
- partitions[i].base_block = i * MAX_PORT_SIZE;
- partitions[i].block_count = c->size - partitions[i].base_block;
- if ( partitions[i].block_count > MAX_PORT_SIZE )
- {
- partitions[i].block_count = MAX_PORT_SIZE;
- }
+ int i;
+ for ( i = 0; i < len && i * MAX_PORT_SIZE < c->size ; i++ )
+ {
+ /* offset and size in bytes */
+ partitions[i].base_block = i * MAX_PORT_SIZE;
+ partitions[i].block_count = c->size - partitions[i].base_block;
+ if ( partitions[i].block_count > MAX_PORT_SIZE )
+ {
+ partitions[i].block_count = MAX_PORT_SIZE;
+ }
- partitions[i].get_info = hp48_partition_get_info;
- }
+ partitions[i].get_info = hp48_partition_get_info;
+ }
return IMGTOOLERR_SUCCESS;
}
@@ -436,17 +436,16 @@ static imgtoolerr_t hp48_list_partitions(imgtool_image *img,
static imgtoolerr_t hp48_open_partition(imgtool_partition *part,
UINT64 first_block, UINT64 block_count)
{
-
imgtool_image* img = imgtool_partition_image( part );
hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
hp48_partition* p = (hp48_partition*) imgtool_partition_extra_bytes( part );
- if ( first_block + block_count > c->size )
- return IMGTOOLERR_INVALIDPARTITION;
+ if ( first_block + block_count > c->size )
+ return IMGTOOLERR_INVALIDPARTITION;
- /* store partition position */
- p->data = c->data + first_block;
- p->size = block_count;
+ /* store partition position */
+ p->data = c->data + first_block;
+ p->size = block_count;
return IMGTOOLERR_SUCCESS;
}
@@ -454,11 +453,11 @@ static imgtoolerr_t hp48_open_partition(imgtool_partition *part,
static imgtoolerr_t hp48_beginenum(imgtool_directory *enumeration,
- const char *path)
+ const char *path)
{
hp48_directory* d = (hp48_directory*) imgtool_directory_extrabytes( enumeration );
- d->pos = 0;
+ d->pos = 0;
return IMGTOOLERR_SUCCESS;
}
@@ -466,7 +465,7 @@ static imgtoolerr_t hp48_beginenum(imgtool_directory *enumeration,
static imgtoolerr_t hp48_nextenum(imgtool_directory *enumeration,
- imgtool_dirent *ent)
+ imgtool_dirent *ent)
{
imgtool_partition *part = imgtool_directory_partition( enumeration );
//imgtool_image* img = imgtool_partition_image( part );
@@ -474,63 +473,63 @@ static imgtoolerr_t hp48_nextenum(imgtool_directory *enumeration,
hp48_partition* p = (hp48_partition*) imgtool_partition_extra_bytes( part );
hp48_directory* d = (hp48_directory*) imgtool_directory_extrabytes( enumeration );
- UINT8* data = p->data;
- int pos = d->pos;
-
- if ( pos < 0 || pos+12 > 2*p->size )
- {
- ent->eof = 1;
- return IMGTOOLERR_SUCCESS;
- }
-
- int prolog = read20( data+pos );
-
- if ( IS_OBJECT(prolog) )
- {
- pos += 5;
- int totalsize = read20( data+pos );
- pos += 5;
-
- int namelen = read8( data+pos );
- pos += 2;
- if ( (pos + 2*namelen > 2*p->size) ||
- (namelen >= sizeof(ent->filename)) )
- {
- ent->eof = 1;
- return IMGTOOLERR_CORRUPTFILE;
- }
- readstring( ent->filename, data+pos, namelen );
-
- /* compute size in bytes, removing name, length & CRC fields */
+ UINT8* data = p->data;
+ int pos = d->pos;
+
+ if ( pos < 0 || pos+12 > 2*p->size )
+ {
+ ent->eof = 1;
+ return IMGTOOLERR_SUCCESS;
+ }
+
+ int prolog = read20( data+pos );
+
+ if ( IS_OBJECT(prolog) )
+ {
+ pos += 5;
+ int totalsize = read20( data+pos );
+ pos += 5;
+
+ int namelen = read8( data+pos );
+ pos += 2;
+ if ( (pos + 2*namelen > 2*p->size) ||
+ (namelen >= sizeof(ent->filename)) )
+ {
+ ent->eof = 1;
+ return IMGTOOLERR_CORRUPTFILE;
+ }
+ readstring( ent->filename, data+pos, namelen );
+
+ /* compute size in bytes, removing name, length & CRC fields */
ent->filesize = ((totalsize - 19 - 2*namelen) + 1) / 2;
- switch (prolog)
- {
- case PROLOG_LIBRARY: strncpy( ent->attr, "LIB", sizeof(ent->attr) ); break;
- case PROLOG_BACKUP: strncpy( ent->attr, "BAK", sizeof(ent->attr) ); break;
- default: strncpy( ent->attr, "?", sizeof(ent->attr) );
- }
-
- d->pos = d->pos + totalsize + 5;
- }
- else
- {
- /* 0 or unknown object => end */
- ent->eof = 1;
- }
+ switch (prolog)
+ {
+ case PROLOG_LIBRARY: strncpy( ent->attr, "LIB", sizeof(ent->attr) ); break;
+ case PROLOG_BACKUP: strncpy( ent->attr, "BAK", sizeof(ent->attr) ); break;
+ default: strncpy( ent->attr, "?", sizeof(ent->attr) );
+ }
+
+ d->pos = d->pos + totalsize + 5;
+ }
+ else
+ {
+ /* 0 or unknown object => end */
+ ent->eof = 1;
+ }
return IMGTOOLERR_SUCCESS;
}
-
+
static imgtoolerr_t hp48_freespace(imgtool_partition *part, UINT64 *size)
{
//imgtool_image* img = imgtool_partition_image( part );
- //hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
+ //hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
hp48_partition* p = (hp48_partition*) imgtool_partition_extra_bytes( part );
- *size = p->size - (find_end(p)+1)/2;
+ *size = p->size - (find_end(p)+1)/2;
return IMGTOOLERR_SUCCESS;
}
@@ -538,70 +537,70 @@ static imgtoolerr_t hp48_freespace(imgtool_partition *part, UINT64 *size)
static imgtoolerr_t hp48_readfile(imgtool_partition *part,
- const char *filename,
- const char *fork,
- imgtool_stream *destf)
+ const char *filename,
+ const char *fork,
+ imgtool_stream *destf)
{
//imgtool_image* img = imgtool_partition_image( part );
//hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
hp48_partition* p = (hp48_partition*) imgtool_partition_extra_bytes( part );
- /* find entry */
- int totalsize, start, size;
- int pos = find_file(p, filename, &totalsize, &start, &size);
- if ( pos == -1 )
- {
- return IMGTOOLERR_FILENOTFOUND;
- }
-
- /* CRC check */
- UINT16 objcrc = read20( p->data + pos + totalsize ) >> 4;
- UINT16 mycrc = crc( p->data + pos + 5, totalsize - 4);
- if ( objcrc != mycrc )
- {
- return IMGTOOLERR_CORRUPTIMAGE;
- }
- size -= 10;
-
- /* save header */
- stream_write( destf, hp48_prefix, 8);
-
- /* save contents to host file */
- int bytesize = (size + 1) / 2;
- UINT8* buf = (UINT8*) malloc( bytesize );
- if (!buf)
- {
- return IMGTOOLERR_FILENOTFOUND;
- }
- pack( buf, p->data + start, size );
- stream_write( destf, buf, bytesize );
- free( buf );
-
- return IMGTOOLERR_SUCCESS;
+ /* find entry */
+ int totalsize, start, size;
+ int pos = find_file(p, filename, &totalsize, &start, &size);
+ if ( pos == -1 )
+ {
+ return IMGTOOLERR_FILENOTFOUND;
+ }
+
+ /* CRC check */
+ UINT16 objcrc = read20( p->data + pos + totalsize ) >> 4;
+ UINT16 mycrc = crc( p->data + pos + 5, totalsize - 4);
+ if ( objcrc != mycrc )
+ {
+ return IMGTOOLERR_CORRUPTIMAGE;
+ }
+ size -= 10;
+
+ /* save header */
+ stream_write( destf, hp48_prefix, 8);
+
+ /* save contents to host file */
+ int bytesize = (size + 1) / 2;
+ UINT8* buf = (UINT8*) malloc( bytesize );
+ if (!buf)
+ {
+ return IMGTOOLERR_FILENOTFOUND;
+ }
+ pack( buf, p->data + start, size );
+ stream_write( destf, buf, bytesize );
+ free( buf );
+
+ return IMGTOOLERR_SUCCESS;
}
static imgtoolerr_t hp48_deletefile(imgtool_partition *part,
- const char *filename)
+ const char *filename)
{
imgtool_image* img = imgtool_partition_image( part );
- hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
+ hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
hp48_partition* p = (hp48_partition*) imgtool_partition_extra_bytes( part );
- /* find entry */
- int totalsize;
- int pos = find_file(p, filename, &totalsize, NULL, NULL );
- if ( pos == -1 )
- {
- return IMGTOOLERR_FILENOTFOUND;
- }
+ /* find entry */
+ int totalsize;
+ int pos = find_file(p, filename, &totalsize, NULL, NULL );
+ if ( pos == -1 )
+ {
+ return IMGTOOLERR_FILENOTFOUND;
+ }
- /* move */
- totalsize += 5;
- memmove( p->data+pos, p->data+pos+totalsize, 2*p->size-(pos+totalsize) );
- memset( p->data + 2*p->size-totalsize, 0, totalsize);
- c->modified = 1;
+ /* move */
+ totalsize += 5;
+ memmove( p->data+pos, p->data+pos+totalsize, 2*p->size-(pos+totalsize) );
+ memset( p->data + 2*p->size-totalsize, 0, totalsize);
+ c->modified = 1;
return IMGTOOLERR_SUCCESS;
}
@@ -609,71 +608,71 @@ static imgtoolerr_t hp48_deletefile(imgtool_partition *part,
static imgtoolerr_t hp48_writefile(imgtool_partition *part,
- const char *filename,
- const char *fork,
- imgtool_stream *sourcef,
- option_resolution *opts)
+ const char *filename,
+ const char *fork,
+ imgtool_stream *sourcef,
+ option_resolution *opts)
{
imgtool_image* img = imgtool_partition_image( part );
- hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
+ hp48_card* c = (hp48_card*) imgtool_image_extra_bytes( img );
hp48_partition* p = (hp48_partition*) imgtool_partition_extra_bytes( part );
- /* check header */
- char head[8];
- stream_read( sourcef, head, 8 );
- if ( memcmp( head, hp48_prefix, 7) )
- {
- return IMGTOOLERR_READERROR;
- }
+ /* check header */
+ char head[8];
+ stream_read( sourcef, head, 8 );
+ if ( memcmp( head, hp48_prefix, 7) )
+ {
+ return IMGTOOLERR_READERROR;
+ }
- /* ensure that the file does not exist */
- /* TODO: resize the existing file instead, to keep it in place? */
- hp48_deletefile( part, filename );
+ /* ensure that the file does not exist */
+ /* TODO: resize the existing file instead, to keep it in place? */
+ hp48_deletefile( part, filename );
- /* goto end */
- //UINT8* data = p->data;
- int pos = find_end(p);
+ /* goto end */
+ //UINT8* data = p->data;
+ int pos = find_end(p);
- int len = strlen( filename );
- if ( len > 255 ) len = 255;
+ int len = strlen( filename );
+ if ( len > 255 ) len = 255;
- /* check size */
+ /* check size */
int filesize = stream_size( sourcef ) - 8;
- if ( pos + 2*filesize + 24 + 2*len > 2 * p->size )
- {
- return IMGTOOLERR_NOSPACE;
- }
-
- /* load file */
- UINT8* buf = (UINT8*) malloc( filesize );
- if ( !buf ) return IMGTOOLERR_NOSPACE;
- stream_read( sourcef, buf, filesize );
-
- /* store backup object */
- int org = pos;
- int totalsize = 2*filesize + 19 + 2*len;
- write20( p->data+pos, PROLOG_BACKUP );
- pos +=5;
- write20( p->data+pos, totalsize );
- pos +=5;
- write8( p->data+pos, len );
- pos += 2;
- writestring( p->data+pos, filename, len );
- pos += 2*len;
- write8( p->data+pos, len );
- pos += 2;
- unpack( p->data+pos, buf, 2*filesize );
- pos += 2*filesize;
-
- /* store crc */
- write20( p->data+pos, PROLOG_SYSINT );
- pos += 5;
- p->data[pos] = 0;
- write20( p->data+pos, crc(p->data+org+5, totalsize-4) << 4 );
-
- free(buf);
-
- c->modified = 1;
+ if ( pos + 2*filesize + 24 + 2*len > 2 * p->size )
+ {
+ return IMGTOOLERR_NOSPACE;
+ }
+
+ /* load file */
+ UINT8* buf = (UINT8*) malloc( filesize );
+ if ( !buf ) return IMGTOOLERR_NOSPACE;
+ stream_read( sourcef, buf, filesize );
+
+ /* store backup object */
+ int org = pos;
+ int totalsize = 2*filesize + 19 + 2*len;
+ write20( p->data+pos, PROLOG_BACKUP );
+ pos +=5;
+ write20( p->data+pos, totalsize );
+ pos +=5;
+ write8( p->data+pos, len );
+ pos += 2;
+ writestring( p->data+pos, filename, len );
+ pos += 2*len;
+ write8( p->data+pos, len );
+ pos += 2;
+ unpack( p->data+pos, buf, 2*filesize );
+ pos += 2*filesize;
+
+ /* store crc */
+ write20( p->data+pos, PROLOG_SYSINT );
+ pos += 5;
+ p->data[pos] = 0;
+ write20( p->data+pos, crc(p->data+org+5, totalsize-4) << 4 );
+
+ free(buf);
+
+ c->modified = 1;
return IMGTOOLERR_SUCCESS;
}
@@ -705,7 +704,7 @@ void hp48_partition_get_info(const imgtool_class *imgclass, UINT32 state, union
case IMGTOOLINFO_PTR_FREE_SPACE: info->free_space = hp48_freespace; break;
case IMGTOOLINFO_PTR_READ_FILE: info->read_file = hp48_readfile; break;
case IMGTOOLINFO_PTR_WRITE_FILE: info->write_file = hp48_writefile; break;
- case IMGTOOLINFO_PTR_DELETE_FILE: info->delete_file = hp48_deletefile; break;
+ case IMGTOOLINFO_PTR_DELETE_FILE: info->delete_file = hp48_deletefile; break;
case IMGTOOLINFO_INT_PARTITION_EXTRA_BYTES: info->i = sizeof(hp48_partition); break;
case IMGTOOLINFO_INT_DIRECTORY_EXTRA_BYTES: info->i = sizeof(hp48_directory); break;
@@ -730,8 +729,8 @@ void hp48_get_info(const imgtool_class *imgclass, UINT32 state, union imgtoolinf
case IMGTOOLINFO_PTR_OPEN: info->open = hp48_open; break;
case IMGTOOLINFO_PTR_CREATE: info->create = hp48_create; break;
case IMGTOOLINFO_PTR_CLOSE: info->close = hp48_close; break;
- case IMGTOOLINFO_PTR_LIST_PARTITIONS: info->list_partitions = hp48_list_partitions; break;
+ case IMGTOOLINFO_PTR_LIST_PARTITIONS: info->list_partitions = hp48_list_partitions; break;
case IMGTOOLINFO_INT_IMAGE_EXTRA_BYTES: info->i = sizeof(hp48_card); break;
- }
+ }
}
diff --git a/src/mess/video/a7800.c b/src/mess/video/a7800.c
index 992fa6d0d66..c3480460d8f 100644
--- a/src/mess/video/a7800.c
+++ b/src/mess/video/a7800.c
@@ -4,8 +4,8 @@
Routines to control the Atari 7800 video hardware
- 2014-05-06 Mike Saarna Added interrupts to DMA cycle eating. Updates to
- LL, OL, and spin accounting for HALT behavior.
+ 2014-05-06 Mike Saarna Added interrupts to DMA cycle eating. Updates to
+ LL, OL, and spin accounting for HALT behavior.
2014-03-24 Mike Saarna Fixed DMA regarding startup, shutdown and
cycle stealing.
@@ -133,13 +133,13 @@ void a7800_state::maria_draw_scanline()
{
if(READ_MEM(m_maria_dll+3) & 0x80)
maria_cycles=40; // DMA + maria interrupt overhead
- else
+ else
maria_cycles=19; // DMA
- }
- else
- {
- maria_cycles = 16; // DMA
- }
+ }
+ else
+ {
+ maria_cycles = 16; // DMA
+ }
cells = 0;
@@ -215,7 +215,7 @@ void a7800_state::maria_draw_scanline()
// Spin the CPU for Maria DMA, if it's not already spinning for WSYNC.
// MARIA generates the 6502 clock by dividing its own clock by 4. It needs to HALT and unHALT
// the 6502 on ths same clock phase, so MARIA will wait until its clock divides evenly by 4.
- // To spin until an even divisor, we just round-up any would-be truncations by adding 3.
+ // To spin until an even divisor, we just round-up any would-be truncations by adding 3.
if ( ! m_maria_wsync )
m_maincpu->spin_until_time(m_maincpu->cycles_to_attotime((maria_cycles+3)/4));
diff --git a/src/mess/video/abc1600.c b/src/mess/video/abc1600.c
index 7f6faee78da..4d4bb6aa1cc 100644
--- a/src/mess/video/abc1600.c
+++ b/src/mess/video/abc1600.c
@@ -165,22 +165,22 @@ MC6845_UPDATE_ROW(abc1600_mover_device::crtc_update_row)
{
int x = 0;
const pen_t *pen = m_palette->pens();
-
+
for (int column = 0; column < x_count; column += 2)
{
UINT16 dma = get_crtca(ma, ra, column);
-
+
// data is read out of video RAM in nibble mode by strobing CAS 4 times
for (int cas = 0; cas < 4; cas++)
{
UINT16 data = read_videoram(dma + cas);
-
+
for (int bit = 0; bit < 16; bit++)
{
int color = ((BIT(data, 15) ^ PIX_POL) && !BLANK) && de;
-
+
bitmap.pix32(vbp + y, hbp + x++) = pen[color];
-
+
data <<= 1;
}
}
diff --git a/src/mess/video/abc806.c b/src/mess/video/abc806.c
index 673f16a586c..9d3f3944adb 100644
--- a/src/mess/video/abc806.c
+++ b/src/mess/video/abc806.c
@@ -10,7 +10,7 @@
TODO:
- - hook up RAD prom
+ - hook up RAD prom
- flashing
- double height
- underline
diff --git a/src/mess/video/bbc.c b/src/mess/video/bbc.c
index f504a1df513..483cd04caba 100644
--- a/src/mess/video/bbc.c
+++ b/src/mess/video/bbc.c
@@ -180,8 +180,8 @@ MC6845_UPDATE_ROW( bbc_state::crtc_update_row )
if (((ma>>13)&1)==0)
{
m_Teletext_Latch=0;
- }
- else
+ }
+ else
{
m_Teletext_Latch=(m_BBC_Video_RAM[calculate_video_address(ma+x_pos,ra)]);
}
diff --git a/src/mess/video/k1ge.c b/src/mess/video/k1ge.c
index b69d2444ff4..8e1c50d483a 100644
--- a/src/mess/video/k1ge.c
+++ b/src/mess/video/k1ge.c
@@ -44,7 +44,7 @@ PALETTE_INIT_MEMBER(k2ge_device, k2ge)
READ8_MEMBER( k1ge_device::read )
{
assert(offset < 0x4000);
-
+
UINT8 data = m_vram[offset];
switch( offset )
@@ -63,7 +63,7 @@ READ8_MEMBER( k1ge_device::read )
WRITE8_MEMBER( k1ge_device::write )
{
assert(offset < 0x4000);
-
+
switch( offset )
{
case 0x000:
diff --git a/src/mess/video/pc1512.c b/src/mess/video/pc1512.c
index 39ae133f0a7..fe13b003d63 100644
--- a/src/mess/video/pc1512.c
+++ b/src/mess/video/pc1512.c
@@ -360,7 +360,7 @@ WRITE8_MEMBER( pc1512_state::vdu_w )
//-------------------------------------------------
-// mc6845
+// mc6845
//-------------------------------------------------
int pc1512_state::get_display_mode(UINT8 mode)
diff --git a/src/mess/video/pc_t1t.c b/src/mess/video/pc_t1t.c
index 54c232e94d7..f9715358fac 100644
--- a/src/mess/video/pc_t1t.c
+++ b/src/mess/video/pc_t1t.c
@@ -427,7 +427,7 @@ MC6845_UPDATE_ROW( pc_t1t_device::crtc_update_row )
{
if (m_update_row_type == -1)
return;
-
+
switch (m_update_row_type)
{
case T1000_TEXT_INTEN:
@@ -456,7 +456,7 @@ MC6845_UPDATE_ROW( pcvideo_pcjr_device::crtc_update_row )
{
if (m_update_row_type == -1)
return;
-
+
switch (m_update_row_type)
{
case PCJX_TEXT:
diff --git a/src/mess/video/rmnimbus.c b/src/mess/video/rmnimbus.c
index f31080aa567..a5d48c4f97b 100644
--- a/src/mess/video/rmnimbus.c
+++ b/src/mess/video/rmnimbus.c
@@ -31,8 +31,8 @@
#define FG_COLOUR (m_colours&0x0F)
#define BG_COLOUR ((m_colours&0xF0)>>4)
-#define SELECT_COL(x,c) (IS_80COL ? ((((x) & 1) ? ((c) << 2) : (c)) & 0xC) : (c))
-#define FILL_WORD(c) (((c) << 12) | ((c) << 8) | ((c) << 4) | (c))
+#define SELECT_COL(x,c) (IS_80COL ? ((((x) & 1) ? ((c) << 2) : (c)) & 0xC) : (c))
+#define FILL_WORD(c) (((c) << 12) | ((c) << 8) | ((c) << 4) | (c))
#define IS_80COL (m_mode&0x10)
#define IS_XOR (m_op&8)
diff --git a/src/mess/video/vtvideo.c b/src/mess/video/vtvideo.c
index 3e93dc17063..13091deb1e5 100644
--- a/src/mess/video/vtvideo.c
+++ b/src/mess/video/vtvideo.c
@@ -21,27 +21,27 @@ FIXME: work out the differences and identify common code between VT and Rainbow.
- REQUIRED TODOS / TESTS :
* do line and character attributes (plus combinations) match real hardware?
* how does the AVO fit in?
-
+
- SCROLLING REGIONS / SPLIT SCREEN SCROLLING UNTESTED (if you open > 1 file with the VAX editor EDT)
See VT100 Technical Manual: 4.7.4 Address Shuffling to 4.7.9 Split Screen Smooth Scrolling.
More on scrolling regions: Rainbow 100 B technical documentation (QV069-GZ) April 1985 page 22
-
+
- NEW - INTERLACED MODE (Rainbow only):
Vertical resolution increases from 240 to 480, while the refresh rate halves (flickers on CRTs).
To accomplish this, the display controller repeats even lines in odd scans.
VTVIDEO activates line doubling in 24 line, interlaced mode only.
-
+
Although the DC12 has the ability to display 48 lines, most units are low on screen RAM and
- won't even show 80 x 48. -> REASON: (83 x 48 = 3984 Byte) > (screen RAM) minus 'scratch area'
+ won't even show 80 x 48. -> REASON: (83 x 48 = 3984 Byte) > (screen RAM) minus 'scratch area'
On a VT-180, BIOS scratch requires up to 700 bytes used for SETUP, flags, SILO, keyboard.
-
+
- POSSIBLE IMPROVEMENTS:
-
+
* exact colors for different VR201 monitors ('paper white', green and amber)
* ACCURATE VIDEO DELAYS:
- Position of the first visible scanline (relative to the vertical reset) depends on
- content of fill bytes at the beginning of screen RAM.
+ Position of the first visible scanline (relative to the vertical reset) depends on
+ content of fill bytes at the beginning of screen RAM.
Six invisible, linked lines are initially provided (at location $EE000+ on a Rainbow).
Real-world DC hardware parses the (circular) chain until interrupted by blanking.
@@ -185,10 +185,10 @@ void rainbow_video_device::device_reset()
m_basic_attribute = 0;
m_columns = 80;
-
- m_frequency = 60;
- m_interlaced = 1;
+ m_frequency = 60;
+
+ m_interlaced = 1;
m_fill_lines = 2; // for 60Hz (not in use any longer -> detected)
recompute_parameters();
}
@@ -210,8 +210,8 @@ void vt100_video_device::recompute_parameters()
int vert_pix_total = ((m_linedoubler == false) ? m_height : m_height_MAX) * 10;
- if (m_columns == 132)
- horiz_pix_total = m_columns * 9; // display 1 less filler pixel in 132 char. mode
+ if (m_columns == 132)
+ horiz_pix_total = m_columns * 9; // display 1 less filler pixel in 132 char. mode
else
horiz_pix_total = m_columns * 10; // normal 80 character mode.
@@ -239,7 +239,6 @@ READ8_MEMBER(vt100_video_device::lba7_r)
// Also used by Rainbow-100 ************
WRITE8_MEMBER(vt100_video_device::dc012_w)
{
-
// TODO: writes to 10C/0C should be treated differently (emulation disables the watchdog too often).
// - see 3.1.3.9.5 DC012 Programming Information (PC-100 spec)
if (data == 0) // MHFU is disabled by writing 00 to port 010C.
@@ -254,7 +253,7 @@ WRITE8_MEMBER(vt100_video_device::dc012_w)
}
}
else
- {
+ {
// RESET
MHFU_FLAG = true;
MHFU_counter = 0;
@@ -343,9 +342,9 @@ WRITE8_MEMBER(vt100_video_device::dc012_w)
// Writing to DC011 resets internal counters (& disturbs display) on real hardware.
WRITE8_MEMBER(vt100_video_device::dc011_w)
{
- if (!BIT(data, 5))
+ if (!BIT(data, 5))
{
- m_interlaced = 1;
+ m_interlaced = 1;
if (!BIT(data, 4))
m_columns = 80;
@@ -359,16 +358,16 @@ WRITE8_MEMBER(vt100_video_device::dc011_w)
if (!BIT(data, 4))
{
m_frequency = 60;
- m_fill_lines = 2;
+ m_fill_lines = 2;
}
else
{
m_frequency = 50;
- m_fill_lines = 5;
+ m_fill_lines = 5;
}
}
- recompute_parameters();
+ recompute_parameters();
}
WRITE8_MEMBER(vt100_video_device::brightness_w)
@@ -534,7 +533,7 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x,
UINT16 y_preset;
- UINT16 CHARPOS_y_preset = y << 3; // CHARPOS_y_preset = y * 10;
+ UINT16 CHARPOS_y_preset = y << 3; // CHARPOS_y_preset = y * 10;
CHARPOS_y_preset += y;
CHARPOS_y_preset += y;
@@ -546,10 +545,10 @@ void rainbow_video_device::display_char(bitmap_ind16 &bitmap, UINT8 code, int x,
int back_intensity, back_default_intensity;
int invert = (display_type & 8) ? 1 : 0; // REVERSE
- int bold = (display_type & 16) ? 0 : 1; // BIT 4
+ int bold = (display_type & 16) ? 0 : 1; // BIT 4
int blink = (display_type & 32) ? 0 : 1; // BIT 5
- int underline = (display_type & 64) ? 0 : 1; // BIT 6
- bool blank = (display_type & 128) ? true : false; // BIT 7
+ int underline = (display_type & 64) ? 0 : 1; // BIT 6
+ bool blank = (display_type & 128) ? true : false; // BIT 7
display_type = display_type & 3;
@@ -730,7 +729,7 @@ void rainbow_video_device::video_update(bitmap_ind16 &bitmap, const rectangle &c
// Skip fill (0xFF) lines and put result in ADDR.
for (int xp = 1; xp <= 6; xp += 1) // beware of circular references
{
- // Fetch LINE ATTRIBUTE before it is gone
+ // Fetch LINE ATTRIBUTE before it is gone
attr_addr = 0x1000 | ((addr + 1) & 0x0fff);
temp = m_read_ram(addr + 2) * 256 + m_read_ram(addr + 1);