summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine')
-rw-r--r--src/mame/machine/315-5838_317-0229_comp.cpp24
-rw-r--r--src/mame/machine/esqlcd.cpp328
-rw-r--r--src/mame/machine/gaelco2.cpp8
-rw-r--r--src/mame/machine/pc9801_kbd.h2
-rw-r--r--src/mame/machine/trs80.cpp2
5 files changed, 182 insertions, 182 deletions
diff --git a/src/mame/machine/315-5838_317-0229_comp.cpp b/src/mame/machine/315-5838_317-0229_comp.cpp
index f4c0b69129b..6e703df17ff 100644
--- a/src/mame/machine/315-5838_317-0229_comp.cpp
+++ b/src/mame/machine/315-5838_317-0229_comp.cpp
@@ -4,31 +4,31 @@
315-5838 - Decathlete (ST-V)
317-0229 - Dead or Alive (Model 2A)
- 317-0229 - Name Club / Name Club Ver 2 (ST-V) (tested as RCDD2 in the service menu!)
- 317-0231 - Print Club Love Love / Print Club Love Love Ver 2 (ST-V)
+ 317-0229 - Name Club / Name Club Ver 2 (ST-V) (tested as RCDD2 in the service menu!)
+ 317-0231 - Print Club Love Love / Print Club Love Love Ver 2 (ST-V)
- Several Print Club (ST-V) carts have
- an unpopulated space marked '317-0229' on the PCB
+ Several Print Club (ST-V) carts have
+ an unpopulated space marked '317-0229' on the PCB
Package Type: TQFP100
Decathlete accesses the chip at 2 different addresses, however, I don't think there
- are 2 channels / sets of registers, instead the 2nd set of addresses are just a
- mirror that allows access to a different set of source roms; the tables etc. are
- re-uploaded before every transfer.
+ are 2 channels / sets of registers, instead the 2nd set of addresses are just a
+ mirror that allows access to a different set of source roms; the tables etc. are
+ re-uploaded before every transfer.
Dead of Alive has the source data in RAM, not ROM.
This is similar to how some 5881 games were set up, with the ST-V versions decrypting
data directly from ROM and the Model 2 ones using a RAM source buffer.
- Decathlete decompresses all graphic data with the chip.
+ Decathlete decompresses all graphic data with the chip.
- The Name Club games use the chip for decompressing data for the printer (full size
- versions of the graphics?)
+ The Name Club games use the chip for decompressing data for the printer (full size
+ versions of the graphics?)
- Print Club Love Love decrypts some start up code/data required for booting.
+ Print Club Love Love decrypts some start up code/data required for booting.
- Dead or Alive decrypts a string that is checked on startup, nothing else.
+ Dead or Alive decrypts a string that is checked on startup, nothing else.
Looking at the values read I don't think there is any address based encryption, for
example many blocks where you'd expect a zero fill start with repeating patterns
diff --git a/src/mame/machine/esqlcd.cpp b/src/mame/machine/esqlcd.cpp
index e9b23fa2685..f98d70f9b12 100644
--- a/src/mame/machine/esqlcd.cpp
+++ b/src/mame/machine/esqlcd.cpp
@@ -9,7 +9,7 @@
//#define VERBOSE
-const device_type ESQ2x16_SQ1 = &device_creator<esq2x16_sq1_t>;
+const device_type ESQ2x16_SQ1 = &device_creator<esq2x16_sq1_t>;
// --- SQ1 - Parduz --------------------------------------------------------------------------------------------------------------------------
static MACHINE_CONFIG_FRAGMENT(esq2x16)
@@ -19,147 +19,147 @@ MACHINE_CONFIG_END
/*! \file font5x7.h \brief Graphic LCD Font (Ascii Characters). */
//*****************************************************************************
//
-// File Name : 'font5x7.h'
-// Title : Graphic LCD Font (Ascii Charaters)
-// Author : Pascal Stang
-// Date : 10/19/2001
-// Revised : 10/19/2001
-// Version : 0.1
-// Target MCU : Atmel AVR
-// Editor Tabs : 4
+// File Name : 'font5x7.h'
+// Title : Graphic LCD Font (Ascii Charaters)
+// Author : Pascal Stang
+// Date : 10/19/2001
+// Revised : 10/19/2001
+// Version : 0.1
+// Target MCU : Atmel AVR
+// Editor Tabs : 4
//
//*****************************************************************************
// standard ascii 5x7 font
// defines ascii characters 0x20-0x7F (32-127)
static unsigned char Font5x7[][5] = {
- {0x00, 0x00, 0x08, 0x00, 0x00}, // _Undef_ 0x00 - dots for debug purposes
- {0x01, 0x00, 0x00, 0x00, 0x40}, // _Undef_ 0x01 - dots for debug purposes
- {0x02, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x02
- {0x03, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x03
- {0x04, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x04
- {0x05, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x05
- {0x06, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x06
- {0x07, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x07
- {0x20, 0x70, 0x3F, 0x00, 0x00}, // Croma 0x08
- {0x20, 0x70, 0x3F, 0x02, 0x0C}, // Croma 0x09
- {0x20, 0x70, 0x3F, 0x05, 0x0A}, // Croma 0x0A
- {0x20, 0x70, 0x3F, 0x15, 0x2A}, // Croma 0x0B
- {0x20, 0x50, 0x50, 0x3F, 0x00}, // Croma 0x0C
- {0x0D, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x0D
- {0x0E, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x0E
- {0x0F, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x0F
- {0x10, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x10
- {0x11, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x11
- {0x12, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x12
- {0x13, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x13
- {0x14, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x14
- {0x15, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x15
- {0x16, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x16
- {0x17, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x17
- {0x18, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x18
- {0x19, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x19
- {0x1A, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1A
- {0x1B, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1B
- {0x1C, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1C
- {0x1D, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1D
- {0x1E, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1E
- {0x1F, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1F
- {0x00, 0x00, 0x00, 0x00, 0x00}, // (space) 0x20
- {0x00, 0x00, 0x5F, 0x00, 0x00}, // ! 0x21
- {0x00, 0x07, 0x00, 0x07, 0x00}, // " 0x22
- {0x14, 0x7F, 0x14, 0x7F, 0x14}, // # 0x23
- {0x24, 0x2A, 0x7F, 0x2A, 0x12}, // $ 0x24
- {0x23, 0x13, 0x08, 0x64, 0x62}, // % 0x25
- {0x36, 0x49, 0x55, 0x22, 0x50}, // & 0x26
- {0x00, 0x05, 0x03, 0x00, 0x00}, // ' 0x27
- {0x00, 0x1C, 0x22, 0x41, 0x00}, // ( 0x28
- {0x00, 0x41, 0x22, 0x1C, 0x00}, // ) 0x29
- {0x08, 0x2A, 0x1C, 0x2A, 0x08}, // * 0x2A
- {0x08, 0x08, 0x3E, 0x08, 0x08}, // + 0x2B
- {0x00, 0x50, 0x30, 0x00, 0x00}, // , 0x2C
- {0x08, 0x08, 0x08, 0x08, 0x08}, // - 0x2D
- {0x00, 0x60, 0x60, 0x00, 0x00}, // . 0x2E
- {0x20, 0x10, 0x08, 0x04, 0x02}, // / 0x2F
- {0x3E, 0x51, 0x49, 0x45, 0x3E}, // 0 0x30
- {0x00, 0x42, 0x7F, 0x40, 0x00}, // 1 0x31
- {0x42, 0x61, 0x51, 0x49, 0x46}, // 2 0x32
- {0x21, 0x41, 0x45, 0x4B, 0x31}, // 3 0x33
- {0x18, 0x14, 0x12, 0x7F, 0x10}, // 4 0x34
- {0x27, 0x45, 0x45, 0x45, 0x39}, // 5 0x35
- {0x3C, 0x4A, 0x49, 0x49, 0x30}, // 6 0x36
- {0x01, 0x71, 0x09, 0x05, 0x03}, // 7 0x37
- {0x36, 0x49, 0x49, 0x49, 0x36}, // 8 0x38
- {0x06, 0x49, 0x49, 0x29, 0x1E}, // 9 0x39
- {0x00, 0x36, 0x36, 0x00, 0x00}, // : 0x3A
- {0x00, 0x56, 0x36, 0x00, 0x00}, // ; 0x3B
- {0x00, 0x08, 0x14, 0x22, 0x41}, // < 0x3C
- {0x14, 0x14, 0x14, 0x14, 0x14}, // = 0x3D
- {0x41, 0x22, 0x14, 0x08, 0x00}, // > 0x3E
- {0x02, 0x01, 0x51, 0x09, 0x06}, // ? 0x3F
- {0x32, 0x49, 0x79, 0x41, 0x3E}, // @ 0x40
- {0x7E, 0x11, 0x11, 0x11, 0x7E}, // A 0x41
- {0x7F, 0x49, 0x49, 0x49, 0x36}, // B 0x42
- {0x3E, 0x41, 0x41, 0x41, 0x22}, // C 0x43
- {0x7F, 0x41, 0x41, 0x22, 0x1C}, // D 0x44
- {0x7F, 0x49, 0x49, 0x49, 0x41}, // E 0x45
- {0x7F, 0x09, 0x09, 0x01, 0x01}, // F 0x46
- {0x3E, 0x41, 0x41, 0x51, 0x32}, // G 0x47
- {0x7F, 0x08, 0x08, 0x08, 0x7F}, // H 0x48
- {0x00, 0x41, 0x7F, 0x41, 0x00}, // I 0x49
- {0x20, 0x40, 0x41, 0x3F, 0x01}, // J 0x4A
- {0x7F, 0x08, 0x14, 0x22, 0x41}, // K 0x4B
- {0x7F, 0x40, 0x40, 0x40, 0x40}, // L 0x4C
- {0x7F, 0x02, 0x04, 0x02, 0x7F}, // M 0x4D
- {0x7F, 0x04, 0x08, 0x10, 0x7F}, // N 0x4E
- {0x3E, 0x41, 0x41, 0x41, 0x3E}, // O 0x4F
- {0x7F, 0x09, 0x09, 0x09, 0x06}, // P 0x50
- {0x3E, 0x41, 0x51, 0x21, 0x5E}, // Q 0x51
- {0x7F, 0x09, 0x19, 0x29, 0x46}, // R 0x52
- {0x46, 0x49, 0x49, 0x49, 0x31}, // S 0x53
- {0x01, 0x01, 0x7F, 0x01, 0x01}, // T 0x54
- {0x3F, 0x40, 0x40, 0x40, 0x3F}, // U 0x55
- {0x1F, 0x20, 0x40, 0x20, 0x1F}, // V 0x56
- {0x7F, 0x20, 0x18, 0x20, 0x7F}, // W 0x57
- {0x63, 0x14, 0x08, 0x14, 0x63}, // X 0x58
- {0x03, 0x04, 0x78, 0x04, 0x03}, // Y 0x59
- {0x61, 0x51, 0x49, 0x45, 0x43}, // Z 0x5A
- {0x00, 0x00, 0x7F, 0x41, 0x41}, // [ 0x5B
- {0x02, 0x04, 0x08, 0x10, 0x20}, // \ 0x5C
- {0x41, 0x41, 0x7F, 0x00, 0x00}, // ] 0x5D
- {0x04, 0x02, 0x01, 0x02, 0x04}, // ^ 0x5E
- {0x40, 0x40, 0x40, 0x40, 0x40}, // _ 0x5F
- {0x00, 0x01, 0x02, 0x04, 0x00}, // ` 0x60
- {0x20, 0x54, 0x54, 0x54, 0x78}, // a 0x61
- {0x7F, 0x48, 0x44, 0x44, 0x38}, // b 0x62
- {0x38, 0x44, 0x44, 0x44, 0x20}, // c 0x63
- {0x38, 0x44, 0x44, 0x48, 0x7F}, // d 0x64
- {0x38, 0x54, 0x54, 0x54, 0x18}, // e 0x65
- {0x08, 0x7E, 0x09, 0x01, 0x02}, // f 0x66
- {0x08, 0x14, 0x54, 0x54, 0x3C}, // g 0x67
- {0x7F, 0x08, 0x04, 0x04, 0x78}, // h 0x68
- {0x00, 0x44, 0x7D, 0x40, 0x00}, // i 0x69
- {0x20, 0x40, 0x44, 0x3D, 0x00}, // j 0x6A
- {0x00, 0x7F, 0x10, 0x28, 0x44}, // k 0x6B
- {0x00, 0x41, 0x7F, 0x40, 0x00}, // l 0x6C
- {0x7C, 0x04, 0x18, 0x04, 0x78}, // m 0x6D
- {0x7C, 0x08, 0x04, 0x04, 0x78}, // n 0x6E
- {0x38, 0x44, 0x44, 0x44, 0x38}, // o 0x6F
- {0x7C, 0x14, 0x14, 0x14, 0x08}, // p 0x70
- {0x08, 0x14, 0x14, 0x18, 0x7C}, // q 0x71
- {0x7C, 0x08, 0x04, 0x04, 0x08}, // r 0x72
- {0x48, 0x54, 0x54, 0x54, 0x20}, // s 0x73
- {0x04, 0x3F, 0x44, 0x40, 0x20}, // t 0x74
- {0x3C, 0x40, 0x40, 0x20, 0x7C}, // u 0x75
- {0x1C, 0x20, 0x40, 0x20, 0x1C}, // v 0x76
- {0x3C, 0x40, 0x30, 0x40, 0x3C}, // w 0x77
- {0x44, 0x28, 0x10, 0x28, 0x44}, // x 0x78
- {0x0C, 0x50, 0x50, 0x50, 0x3C}, // y 0x79
- {0x44, 0x64, 0x54, 0x4C, 0x44}, // z 0x7A
- {0x00, 0x08, 0x36, 0x41, 0x00}, // { 0x7B
- {0x00, 0x00, 0x7F, 0x00, 0x00}, // | 0x7C
- {0x00, 0x41, 0x36, 0x08, 0x00}, // } 0x7D
- {0x08, 0x08, 0x2A, 0x1C, 0x08}, // -> 0x7E
- {0x08, 0x1C, 0x2A, 0x08, 0x08} // <- 0x7F
+ {0x00, 0x00, 0x08, 0x00, 0x00}, // _Undef_ 0x00 - dots for debug purposes
+ {0x01, 0x00, 0x00, 0x00, 0x40}, // _Undef_ 0x01 - dots for debug purposes
+ {0x02, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x02
+ {0x03, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x03
+ {0x04, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x04
+ {0x05, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x05
+ {0x06, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x06
+ {0x07, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x07
+ {0x20, 0x70, 0x3F, 0x00, 0x00}, // Croma 0x08
+ {0x20, 0x70, 0x3F, 0x02, 0x0C}, // Croma 0x09
+ {0x20, 0x70, 0x3F, 0x05, 0x0A}, // Croma 0x0A
+ {0x20, 0x70, 0x3F, 0x15, 0x2A}, // Croma 0x0B
+ {0x20, 0x50, 0x50, 0x3F, 0x00}, // Croma 0x0C
+ {0x0D, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x0D
+ {0x0E, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x0E
+ {0x0F, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x0F
+ {0x10, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x10
+ {0x11, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x11
+ {0x12, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x12
+ {0x13, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x13
+ {0x14, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x14
+ {0x15, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x15
+ {0x16, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x16
+ {0x17, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x17
+ {0x18, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x18
+ {0x19, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x19
+ {0x1A, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1A
+ {0x1B, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1B
+ {0x1C, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1C
+ {0x1D, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1D
+ {0x1E, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1E
+ {0x1F, 0x00, 0x00, 0x00, 0x00}, // _Undef_ 0x1F
+ {0x00, 0x00, 0x00, 0x00, 0x00}, // (space) 0x20
+ {0x00, 0x00, 0x5F, 0x00, 0x00}, // ! 0x21
+ {0x00, 0x07, 0x00, 0x07, 0x00}, // " 0x22
+ {0x14, 0x7F, 0x14, 0x7F, 0x14}, // # 0x23
+ {0x24, 0x2A, 0x7F, 0x2A, 0x12}, // $ 0x24
+ {0x23, 0x13, 0x08, 0x64, 0x62}, // % 0x25
+ {0x36, 0x49, 0x55, 0x22, 0x50}, // & 0x26
+ {0x00, 0x05, 0x03, 0x00, 0x00}, // ' 0x27
+ {0x00, 0x1C, 0x22, 0x41, 0x00}, // ( 0x28
+ {0x00, 0x41, 0x22, 0x1C, 0x00}, // ) 0x29
+ {0x08, 0x2A, 0x1C, 0x2A, 0x08}, // * 0x2A
+ {0x08, 0x08, 0x3E, 0x08, 0x08}, // + 0x2B
+ {0x00, 0x50, 0x30, 0x00, 0x00}, // , 0x2C
+ {0x08, 0x08, 0x08, 0x08, 0x08}, // - 0x2D
+ {0x00, 0x60, 0x60, 0x00, 0x00}, // . 0x2E
+ {0x20, 0x10, 0x08, 0x04, 0x02}, // / 0x2F
+ {0x3E, 0x51, 0x49, 0x45, 0x3E}, // 0 0x30
+ {0x00, 0x42, 0x7F, 0x40, 0x00}, // 1 0x31
+ {0x42, 0x61, 0x51, 0x49, 0x46}, // 2 0x32
+ {0x21, 0x41, 0x45, 0x4B, 0x31}, // 3 0x33
+ {0x18, 0x14, 0x12, 0x7F, 0x10}, // 4 0x34
+ {0x27, 0x45, 0x45, 0x45, 0x39}, // 5 0x35
+ {0x3C, 0x4A, 0x49, 0x49, 0x30}, // 6 0x36
+ {0x01, 0x71, 0x09, 0x05, 0x03}, // 7 0x37
+ {0x36, 0x49, 0x49, 0x49, 0x36}, // 8 0x38
+ {0x06, 0x49, 0x49, 0x29, 0x1E}, // 9 0x39
+ {0x00, 0x36, 0x36, 0x00, 0x00}, // : 0x3A
+ {0x00, 0x56, 0x36, 0x00, 0x00}, // ; 0x3B
+ {0x00, 0x08, 0x14, 0x22, 0x41}, // < 0x3C
+ {0x14, 0x14, 0x14, 0x14, 0x14}, // = 0x3D
+ {0x41, 0x22, 0x14, 0x08, 0x00}, // > 0x3E
+ {0x02, 0x01, 0x51, 0x09, 0x06}, // ? 0x3F
+ {0x32, 0x49, 0x79, 0x41, 0x3E}, // @ 0x40
+ {0x7E, 0x11, 0x11, 0x11, 0x7E}, // A 0x41
+ {0x7F, 0x49, 0x49, 0x49, 0x36}, // B 0x42
+ {0x3E, 0x41, 0x41, 0x41, 0x22}, // C 0x43
+ {0x7F, 0x41, 0x41, 0x22, 0x1C}, // D 0x44
+ {0x7F, 0x49, 0x49, 0x49, 0x41}, // E 0x45
+ {0x7F, 0x09, 0x09, 0x01, 0x01}, // F 0x46
+ {0x3E, 0x41, 0x41, 0x51, 0x32}, // G 0x47
+ {0x7F, 0x08, 0x08, 0x08, 0x7F}, // H 0x48
+ {0x00, 0x41, 0x7F, 0x41, 0x00}, // I 0x49
+ {0x20, 0x40, 0x41, 0x3F, 0x01}, // J 0x4A
+ {0x7F, 0x08, 0x14, 0x22, 0x41}, // K 0x4B
+ {0x7F, 0x40, 0x40, 0x40, 0x40}, // L 0x4C
+ {0x7F, 0x02, 0x04, 0x02, 0x7F}, // M 0x4D
+ {0x7F, 0x04, 0x08, 0x10, 0x7F}, // N 0x4E
+ {0x3E, 0x41, 0x41, 0x41, 0x3E}, // O 0x4F
+ {0x7F, 0x09, 0x09, 0x09, 0x06}, // P 0x50
+ {0x3E, 0x41, 0x51, 0x21, 0x5E}, // Q 0x51
+ {0x7F, 0x09, 0x19, 0x29, 0x46}, // R 0x52
+ {0x46, 0x49, 0x49, 0x49, 0x31}, // S 0x53
+ {0x01, 0x01, 0x7F, 0x01, 0x01}, // T 0x54
+ {0x3F, 0x40, 0x40, 0x40, 0x3F}, // U 0x55
+ {0x1F, 0x20, 0x40, 0x20, 0x1F}, // V 0x56
+ {0x7F, 0x20, 0x18, 0x20, 0x7F}, // W 0x57
+ {0x63, 0x14, 0x08, 0x14, 0x63}, // X 0x58
+ {0x03, 0x04, 0x78, 0x04, 0x03}, // Y 0x59
+ {0x61, 0x51, 0x49, 0x45, 0x43}, // Z 0x5A
+ {0x00, 0x00, 0x7F, 0x41, 0x41}, // [ 0x5B
+ {0x02, 0x04, 0x08, 0x10, 0x20}, // \ 0x5C
+ {0x41, 0x41, 0x7F, 0x00, 0x00}, // ] 0x5D
+ {0x04, 0x02, 0x01, 0x02, 0x04}, // ^ 0x5E
+ {0x40, 0x40, 0x40, 0x40, 0x40}, // _ 0x5F
+ {0x00, 0x01, 0x02, 0x04, 0x00}, // ` 0x60
+ {0x20, 0x54, 0x54, 0x54, 0x78}, // a 0x61
+ {0x7F, 0x48, 0x44, 0x44, 0x38}, // b 0x62
+ {0x38, 0x44, 0x44, 0x44, 0x20}, // c 0x63
+ {0x38, 0x44, 0x44, 0x48, 0x7F}, // d 0x64
+ {0x38, 0x54, 0x54, 0x54, 0x18}, // e 0x65
+ {0x08, 0x7E, 0x09, 0x01, 0x02}, // f 0x66
+ {0x08, 0x14, 0x54, 0x54, 0x3C}, // g 0x67
+ {0x7F, 0x08, 0x04, 0x04, 0x78}, // h 0x68
+ {0x00, 0x44, 0x7D, 0x40, 0x00}, // i 0x69
+ {0x20, 0x40, 0x44, 0x3D, 0x00}, // j 0x6A
+ {0x00, 0x7F, 0x10, 0x28, 0x44}, // k 0x6B
+ {0x00, 0x41, 0x7F, 0x40, 0x00}, // l 0x6C
+ {0x7C, 0x04, 0x18, 0x04, 0x78}, // m 0x6D
+ {0x7C, 0x08, 0x04, 0x04, 0x78}, // n 0x6E
+ {0x38, 0x44, 0x44, 0x44, 0x38}, // o 0x6F
+ {0x7C, 0x14, 0x14, 0x14, 0x08}, // p 0x70
+ {0x08, 0x14, 0x14, 0x18, 0x7C}, // q 0x71
+ {0x7C, 0x08, 0x04, 0x04, 0x08}, // r 0x72
+ {0x48, 0x54, 0x54, 0x54, 0x20}, // s 0x73
+ {0x04, 0x3F, 0x44, 0x40, 0x20}, // t 0x74
+ {0x3C, 0x40, 0x40, 0x20, 0x7C}, // u 0x75
+ {0x1C, 0x20, 0x40, 0x20, 0x1C}, // v 0x76
+ {0x3C, 0x40, 0x30, 0x40, 0x3C}, // w 0x77
+ {0x44, 0x28, 0x10, 0x28, 0x44}, // x 0x78
+ {0x0C, 0x50, 0x50, 0x50, 0x3C}, // y 0x79
+ {0x44, 0x64, 0x54, 0x4C, 0x44}, // z 0x7A
+ {0x00, 0x08, 0x36, 0x41, 0x00}, // { 0x7B
+ {0x00, 0x00, 0x7F, 0x00, 0x00}, // | 0x7C
+ {0x00, 0x41, 0x36, 0x08, 0x00}, // } 0x7D
+ {0x08, 0x08, 0x2A, 0x1C, 0x08}, // -> 0x7E
+ {0x08, 0x1C, 0x2A, 0x08, 0x08} // <- 0x7F
};
//--------------------------------------------------------------------------------------------------------------------------------------------
machine_config_constructor esq2x16_sq1_t::device_mconfig_additions() const
@@ -174,11 +174,11 @@ void esq2x16_sq1_t::write_char(int data)
// Non-ASCII codes that needs to be treated as ASCII characters
if (
- data == 0x08 ||
- data == 0x09 ||
- data == 0x0A ||
- data == 0x0B ||
- data == 0x0C
+ data == 0x08 ||
+ data == 0x09 ||
+ data == 0x0A ||
+ data == 0x0B ||
+ data == 0x0C
) data = '^'; // musical notes
// Resolve here 2-Bytes commands: the command was saved previously
@@ -221,14 +221,14 @@ void esq2x16_sq1_t::write_char(int data)
case 0x8E:
case 0x8F:
// LED OFF, ON, BLINK
- LedState = m_LcdCommand & 0x03;
+ LedState = m_LcdCommand & 0x03;
if (
- DisplayCode >= 16 || // Out of bounds
- DisplayCode == 6 || // non-existent
- DisplayCode == 7 || // non-existent
- DisplayCode == 14 || // non-existent
- DisplayCode == 15 // non-existent
- )
+ DisplayCode >= 16 || // Out of bounds
+ DisplayCode == 6 || // non-existent
+ DisplayCode == 7 || // non-existent
+ DisplayCode == 14 || // non-existent
+ DisplayCode == 15 // non-existent
+ )
{
#ifdef VERBOSE
printf("LCD %02X: Led %02d does'nt exist - pos=%02X (%d)\n", m_LcdCommand, DisplayCode, m_lcdPos, m_lcdPage);
@@ -236,11 +236,11 @@ void esq2x16_sq1_t::write_char(int data)
}
else
{
- if (m_leds[DisplayCode] != LedState)
+ if (m_leds[DisplayCode] != LedState)
{
m_leds[DisplayCode] = LedState;
- m_ledsDirty[DisplayCode] = 1;
- }
+ m_ledsDirty[DisplayCode] = 1;
+ }
update_display();
}
m_LcdCommand = 0;
@@ -255,26 +255,26 @@ void esq2x16_sq1_t::write_char(int data)
return;
break;
}
-
+
if ((data >= 0x20) && (data <= 0x7f))
{
#ifdef VERBOSE
printf("LCD %02X: \"%c\" - pos=%02X (%d)\n", DisplayCode, data, m_lcdPos, m_lcdPage);
#endif
m_lcdpg[m_lcdPage][m_lcdPos++] = DisplayCode;
- if (m_lcdPos > 31) m_lcdPos = 31;
+ if (m_lcdPos > 31) m_lcdPos = 31;
update_display();
return;
}
-
+
if (DisplayCode >= 0x80)
{
switch (DisplayCode) {
// Known 2-bytes command
- case 0x87: // Go To
- case 0x88: // Save Cursor Position
- case 0x89: // Restore Cursor Position
+ case 0x87: // Go To
+ case 0x88: // Save Cursor Position
+ case 0x89: // Restore Cursor Position
// Save the command for the next byte
m_LcdCommand = DisplayCode;
return;
@@ -354,19 +354,19 @@ void esq2x16_sq1_t::update_display()
for (int led = 0; led < 16; led++)
{
if (m_ledsDirty[led]) {
- machine().output().set_indexed_value("rLed_", led, m_leds[led]);
- m_ledsDirty[led] = 0;
- }
+ machine().output().set_indexed_value("rLed_", led, m_leds[led]);
+ m_ledsDirty[led] = 0;
+ }
}
for (int page = 0; page < 4; page++)
{
for (int pos = 0; pos < 32; pos++)
{
- // stealed from tecnbras.cpp and modified
+ // stealed from tecnbras.cpp and modified
for (int rr=0; rr<7; rr++) {
lcdCharRow = RotateLcdChar(m_lcdpg[page][pos],rr);
- machine().output().set_indexed_value("pg_", (page+1)*1000 + pos*7 + rr, 0x1F & lcdCharRow);
+ machine().output().set_indexed_value("pg_", (page+1)*1000 + pos*7 + rr, 0x1F & lcdCharRow);
}
}
}
@@ -377,7 +377,7 @@ void esq2x16_sq1_t::device_reset()
//lcd_reset();
m_lcdPage = m_lcdSavedPos = m_lcdPos = m_LcdCommand = 0;
memset(m_leds, 0, sizeof(m_leds));
- memset(m_lcdpg, 1, sizeof(m_lcdpg)); // Set to 1 for debug: to see what "pages" are set to 0 from the firmware
+ memset(m_lcdpg, 1, sizeof(m_lcdpg)); // Set to 1 for debug: to see what "pages" are set to 0 from the firmware
}
//--------------------------------------------------------------------------------------------------------------------------------------------
void esq2x16_sq1_t::lcd_reset()
diff --git a/src/mame/machine/gaelco2.cpp b/src/mame/machine/gaelco2.cpp
index 0ac284242d7..099520b2813 100644
--- a/src/mame/machine/gaelco2.cpp
+++ b/src/mame/machine/gaelco2.cpp
@@ -291,7 +291,7 @@ static UINT32 rol(UINT32 x, unsigned int c)
{
return (x << c) | (x >> (32 - c));
}
-
+
static UINT16 get_lo(UINT32 x)
{
return ((x & 0x00000010) << 1) |
@@ -308,7 +308,7 @@ static UINT16 get_lo(UINT32 x)
((x & 0x00044000) >> 5) |
((x & 0x00000020) >> 1);
}
-
+
static UINT16 get_hi(UINT32 x)
{
return ((x & 0x00001400) >> 0) |
@@ -327,7 +327,7 @@ static UINT16 get_hi(UINT32 x)
((x & 0x00000080) >> 4) |
((x & 0x00000100) >> 1);
}
-
+
static UINT16 get_out(UINT16 x)
{
return ((x & 0xc840) << 0) |
@@ -343,7 +343,7 @@ static UINT16 get_out(UINT16 x)
((x & 0x2000) >> 6) |
((x & 0x0020) >> 2);
}
-
+
UINT16 mangle(UINT32 x)
{
UINT16 a = get_lo(x);
diff --git a/src/mame/machine/pc9801_kbd.h b/src/mame/machine/pc9801_kbd.h
index e776e2b238e..6de22f9fe94 100644
--- a/src/mame/machine/pc9801_kbd.h
+++ b/src/mame/machine/pc9801_kbd.h
@@ -55,7 +55,7 @@ protected:
UINT8 m_rx_buf[0x80];
UINT8 m_keyb_tx;
UINT8 m_keyb_rx;
- bool m_key_avail;
+ bool m_key_avail;
};
diff --git a/src/mame/machine/trs80.cpp b/src/mame/machine/trs80.cpp
index 8c60a20d60a..999a086d466 100644
--- a/src/mame/machine/trs80.cpp
+++ b/src/mame/machine/trs80.cpp
@@ -422,7 +422,7 @@ WRITE8_MEMBER( trs80_state::trs80m4_e9_w )
EEh 9600
FFh 19200
Note: this may be a COM5016 dual baud rate generator, or may be an equivalent circuit embedded in the gate array ASIC on the trs80 model 4
- */
+ */
static const int baud_clock[]={ 800, 1200, 1760, 2152, 2400, 4800, 9600, 19200, 28800, 32000, 38400, 57600, 76800, 115200, 153600, 307200 };
m_ay31015->set_receiver_clock(baud_clock[data & 0x0f]);