src/mess/machine/kay_kbd.c
| r7415 | r7416 | |
| 171 | 171 | static UINT8 beep_on = 0; |
| 172 | 172 | static UINT8 control_status = 0; |
| 173 | 173 | static UINT8 keyrows[10] = { 0,0,0,0,0,0,0,0,0,0 }; |
| 174 | | static const char keyboard[8][10][8] = { |
| 174 | static const UINT8 keyboard[8][10][8] = { |
| 175 | 175 | { /* normal */ |
| 176 | 176 | { 27,'1','2','3','4','5','6','7'}, |
| 177 | 177 | {'8','9','0','-','=','`', 8, 9}, |
src/mess/formats/a26_cas.c
| r7415 | r7416 | |
| 14 | 14 | #define BIT_ONE_LENGTH 15 |
| 15 | 15 | #define ZEROS_ONES 2755 |
| 16 | 16 | |
| 17 | | static const INT16 one_wave[BIT_ONE_LENGTH] = { |
| 17 | static const UINT16 one_wave[BIT_ONE_LENGTH] = { |
| 18 | 18 | 0x2AE5, 0x4E60, 0x644E, 0x68E4, 0x5B56, 0x3DFE, 0x15ED, 0xEA13, 0xC202, 0xA4AA, |
| 19 | 19 | 0x971C, 0x9BB2, 0xB1A0, 0xD51B, 0x0000 |
| 20 | 20 | }; |
| 21 | 21 | |
| 22 | | static const INT16 zero_wave[BIT_ZERO_LENGTH] = { |
| 22 | static const UINT16 zero_wave[BIT_ZERO_LENGTH] = { |
| 23 | 23 | 0x3DFE, 0x644E, 0x644E, 0x3DFE, 0x0000, 0xC202, 0x9BB2, 0x9BB2, 0xC202, 0x0000 |
| 24 | 24 | }; |
| 25 | 25 | |
| r7415 | r7416 | |
| 38 | 38 | static int a26_cas_output_bit( INT16 **buffer, int bit ) { |
| 39 | 39 | int size = 0; |
| 40 | 40 | int bit_size = bit ? BIT_ONE_LENGTH : BIT_ZERO_LENGTH; |
| 41 | | const INT16 *p = bit ? one_wave : zero_wave; |
| 41 | const INT16 *p = bit ? (const INT16 *)one_wave : (const INT16 *)zero_wave; |
| 42 | 42 | int i; |
| 43 | 43 | |
| 44 | 44 | for ( i = 0; i < bit_size; i++ ) { |
src/mess/drivers/fmtowns.c
| r7415 | r7416 | |
| 206 | 206 | { |
| 207 | 207 | // TODO: init serial ROM contents |
| 208 | 208 | int x; |
| 209 | | char code[8] = { 0x04,0x65,0x54,0xA4,0x95,0x45,0x35,0x5F }; |
| 209 | UINT8 code[8] = { 0x04,0x65,0x54,0xA4,0x95,0x45,0x35,0x5F }; |
| 210 | 210 | UINT8* srom = memory_region(machine,"serial"); |
| 211 | 211 | |
| 212 | 212 | memset(towns_serial_rom,0,256/8); |