mirror of
https://github.com/holub/mame
synced 2025-04-16 21:44:32 +03:00
srcclean and translation regeneration
This commit is contained in:
parent
2101fe044e
commit
c960435d3e
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -13,7 +13,7 @@
|
||||
// MACROS / CONSTANTS
|
||||
//**************************************************************************
|
||||
|
||||
#define UPD7220_TAG "upd7220"
|
||||
#define UPD7220_TAG "upd7220"
|
||||
#define SCREEN_TAG "screen"
|
||||
|
||||
|
||||
|
@ -6,40 +6,40 @@
|
||||
|
||||
**********************************************************************
|
||||
|
||||
Pin COMMON RAM OPTROM Mask ROM
|
||||
32k 64k 128k
|
||||
1 A16
|
||||
2 A15
|
||||
3 VBB VPP NC VPP NC
|
||||
4 A12
|
||||
5 A7
|
||||
6 A6
|
||||
7 A5
|
||||
8 A4
|
||||
9 A3
|
||||
10 A2
|
||||
11 A1
|
||||
12 A0
|
||||
13 D0
|
||||
14 D1
|
||||
15 D2
|
||||
16 GND
|
||||
17 D3
|
||||
18 D4
|
||||
19 D5
|
||||
20 D6
|
||||
21 D7
|
||||
22 CE
|
||||
23 A10
|
||||
24 OE OE OE/VPP OE OE
|
||||
25 A11
|
||||
26 A9
|
||||
27 A8
|
||||
28 A13
|
||||
29 A14
|
||||
30 WE NC NC PGM NC
|
||||
31 VCC
|
||||
32 CDET
|
||||
Pin COMMON RAM OPTROM Mask ROM
|
||||
32k 64k 128k
|
||||
1 A16
|
||||
2 A15
|
||||
3 VBB VPP NC VPP NC
|
||||
4 A12
|
||||
5 A7
|
||||
6 A6
|
||||
7 A5
|
||||
8 A4
|
||||
9 A3
|
||||
10 A2
|
||||
11 A1
|
||||
12 A0
|
||||
13 D0
|
||||
14 D1
|
||||
15 D2
|
||||
16 GND
|
||||
17 D3
|
||||
18 D4
|
||||
19 D5
|
||||
20 D6
|
||||
21 D7
|
||||
22 CE
|
||||
23 A10
|
||||
24 OE OE OE/VPP OE OE
|
||||
25 A11
|
||||
26 A9
|
||||
27 A8
|
||||
28 A13
|
||||
29 A14
|
||||
30 WE NC NC PGM NC
|
||||
31 VCC
|
||||
32 CDET
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
@ -106,7 +106,7 @@ protected:
|
||||
|
||||
class portfolio_memory_card_slot_t : public device_t,
|
||||
public device_slot_interface,
|
||||
public device_image_interface
|
||||
public device_image_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
|
@ -222,7 +222,7 @@ void hpc104_t::nwri_w(address_space &space, offs_t offset, UINT8 data, bool iom,
|
||||
{
|
||||
if (offset >= 0x1f000 && offset < 0x5f000)
|
||||
{
|
||||
m_nvram[offset - 0x1f000] = data;
|
||||
m_nvram[offset - 0x1f000] = data;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
// ======================> portfolio_ram_card_t
|
||||
|
||||
class portfolio_ram_card_t : public device_t,
|
||||
public device_portfolio_memory_card_slot_interface,
|
||||
public device_portfolio_memory_card_slot_interface,
|
||||
public device_nvram_interface
|
||||
{
|
||||
public:
|
||||
|
@ -23,7 +23,7 @@
|
||||
// ======================> portfolio_rom_card_t
|
||||
|
||||
class portfolio_rom_card_t : public device_t,
|
||||
public device_portfolio_memory_card_slot_interface
|
||||
public device_portfolio_memory_card_slot_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
|
@ -9,48 +9,48 @@
|
||||
|
||||
/*
|
||||
* Copied from ALTOCODE24.MU
|
||||
* ;Display Horizontal Task.
|
||||
* ;11 cycles if no block change, 17 if new control block.
|
||||
* ;Display Horizontal Task.
|
||||
* ;11 cycles if no block change, 17 if new control block.
|
||||
*
|
||||
* DHT: MAR← CBA-1;
|
||||
* L← SLC -1, BUS=0;
|
||||
* SLC← L, :DHT0;
|
||||
* DHT: MAR← CBA-1;
|
||||
* L← SLC -1, BUS=0;
|
||||
* SLC← L, :DHT0;
|
||||
*
|
||||
* DHT0: T← 37400; MORE TO DO IN THIS BLOCK
|
||||
* SINK← MD;
|
||||
* L← T← MD AND T, SETMODE;
|
||||
* HTAB← L LCY 8, :NORMODE;
|
||||
* DHT0: T← 37400; MORE TO DO IN THIS BLOCK
|
||||
* SINK← MD;
|
||||
* L← T← MD AND T, SETMODE;
|
||||
* HTAB← L LCY 8, :NORMODE;
|
||||
*
|
||||
* NORMODE:L← T← 377 . T;
|
||||
* AECL← L, :REST;
|
||||
* NORMODE:L← T← 377 . T;
|
||||
* AECL← L, :REST;
|
||||
*
|
||||
* HALFMODE: L← T← 377 . T;
|
||||
* AECL← L, :REST, T← 0;
|
||||
* HALFMODE: L← T← 377 . T;
|
||||
* AECL← L, :REST, T← 0;
|
||||
*
|
||||
* REST: L← DWA + T,TASK; INCREMENT DWA BY 0 OR NWRDS
|
||||
* NDNX: DWA← L, :DHT;
|
||||
* REST: L← DWA + T,TASK; INCREMENT DWA BY 0 OR NWRDS
|
||||
* NDNX: DWA← L, :DHT;
|
||||
*
|
||||
* DHT1: L← T← MD+1, BUS=0;
|
||||
* CBA← L, MAR← T, :MOREB;
|
||||
* DHT1: L← T← MD+1, BUS=0;
|
||||
* CBA← L, MAR← T, :MOREB;
|
||||
*
|
||||
* NOMORE: BLOCK, :DNX;
|
||||
* MOREB: T← 37400;
|
||||
* L← T← MD AND T, SETMODE;
|
||||
* MAR← CBA+1, :NORMX, EVENFIELD;
|
||||
* NOMORE: BLOCK, :DNX;
|
||||
* MOREB: T← 37400;
|
||||
* L← T← MD AND T, SETMODE;
|
||||
* MAR← CBA+1, :NORMX, EVENFIELD;
|
||||
*
|
||||
* NORMX: HTAB← L LCY 8, :NODD;
|
||||
* HALFX: HTAB← L LCY 8, :NEVEN;
|
||||
* NORMX: HTAB← L LCY 8, :NODD;
|
||||
* HALFX: HTAB← L LCY 8, :NEVEN;
|
||||
*
|
||||
* NODD: L←T← 377 . T;
|
||||
* AECL← L, :XREST; ODD FIELD, FULL RESOLUTION
|
||||
* NODD: L←T← 377 . T;
|
||||
* AECL← L, :XREST; ODD FIELD, FULL RESOLUTION
|
||||
*
|
||||
* NEVEN: L← 377 AND T; EVEN FIELD OR HALF RESOLUTION
|
||||
* AECL←L, T←0;
|
||||
* NEVEN: L← 377 AND T; EVEN FIELD OR HALF RESOLUTION
|
||||
* AECL←L, T←0;
|
||||
*
|
||||
* XREST: L← MD+T;
|
||||
* T←MD-1;
|
||||
* DNX: DWA←L, L←T, TASK;
|
||||
* SLC←L, :DHT;
|
||||
* XREST: L← MD+T;
|
||||
* T←MD-1;
|
||||
* DNX: DWA←L, L←T, TASK;
|
||||
* SLC←L, :DHT;
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -10,24 +10,24 @@
|
||||
/*
|
||||
* Copied from ALTOCODE24.MU
|
||||
*
|
||||
* ;Display Vertical Task
|
||||
* ;Display Vertical Task
|
||||
*
|
||||
* DVT: MAR← L← DASTART+1;
|
||||
* CBA← L, L← 0;
|
||||
* CURDATA← L;
|
||||
* SLC← L;
|
||||
* T← MD; CAUSE A VERTICAL FIELD INTERRUPT
|
||||
* L← NWW OR T;
|
||||
* MAR← CURLOC; SET UP THE CURSOR
|
||||
* NWW← L, T← 0-1;
|
||||
* L← MD XOR T; HARDWARE EXPECTS X COMPLEMENTED
|
||||
* T← MD, EVENFIELD;
|
||||
* CURX← L, :DVT1;
|
||||
* DVT: MAR← L← DASTART+1;
|
||||
* CBA← L, L← 0;
|
||||
* CURDATA← L;
|
||||
* SLC← L;
|
||||
* T← MD; CAUSE A VERTICAL FIELD INTERRUPT
|
||||
* L← NWW OR T;
|
||||
* MAR← CURLOC; SET UP THE CURSOR
|
||||
* NWW← L, T← 0-1;
|
||||
* L← MD XOR T; HARDWARE EXPECTS X COMPLEMENTED
|
||||
* T← MD, EVENFIELD;
|
||||
* CURX← L, :DVT1;
|
||||
*
|
||||
* DVT1: L← BIAS-T-1, TASK, :DVT2; BIAS THE Y COORDINATE
|
||||
* DVT11: L← BIAS-T, TASK;
|
||||
*
|
||||
* DVT2: YPOS← L, :DVT;
|
||||
* DVT1: L← BIAS-T-1, TASK, :DVT2; BIAS THE Y COORDINATE
|
||||
* DVT11: L← BIAS-T, TASK;
|
||||
*
|
||||
* DVT2: YPOS← L, :DVT;
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -10,32 +10,32 @@
|
||||
/*
|
||||
* Copied from ALTOCODE24.MU
|
||||
*
|
||||
* ;Display Word Task
|
||||
* ;Display Word Task
|
||||
*
|
||||
* DWT: T← DWA;
|
||||
* T←-3+T+1;
|
||||
* L← AECL+T,BUS=0,TASK; AECL CONTAINS NWRDS AT THIS TIME
|
||||
* AECL←L, :DWTZ;
|
||||
* DWT: T← DWA;
|
||||
* T←-3+T+1;
|
||||
* L← AECL+T,BUS=0,TASK; AECL CONTAINS NWRDS AT THIS TIME
|
||||
* AECL←L, :DWTZ;
|
||||
*
|
||||
* DWTY: BLOCK;
|
||||
* TASK, :DWTF;
|
||||
* DWTY: BLOCK;
|
||||
* TASK, :DWTF;
|
||||
*
|
||||
* DWTZ: L←HTAB-1, BUS=0,TASK;
|
||||
* HTAB←L, :DOTAB;
|
||||
* DWTZ: L←HTAB-1, BUS=0,TASK;
|
||||
* HTAB←L, :DOTAB;
|
||||
*
|
||||
* DOTAB: DDR←0, :DWTZ;
|
||||
* NOTAB: MAR←T←DWA;
|
||||
* L←AECL-T-1;
|
||||
* ALUCY, L←2+T;
|
||||
* DWA←L, :XNOMORE;
|
||||
* DOTAB: DDR←0, :DWTZ;
|
||||
* NOTAB: MAR←T←DWA;
|
||||
* L←AECL-T-1;
|
||||
* ALUCY, L←2+T;
|
||||
* DWA←L, :XNOMORE;
|
||||
*
|
||||
* DOMORE: DDR←MD, TASK;
|
||||
* DDR←MD, :NOTAB;
|
||||
* DOMORE: DDR←MD, TASK;
|
||||
* DDR←MD, :NOTAB;
|
||||
*
|
||||
* XNOMORE:DDR← MD, BLOCK;
|
||||
* DDR← MD, TASK;
|
||||
* XNOMORE:DDR← MD, BLOCK;
|
||||
* DDR← MD, TASK;
|
||||
*
|
||||
* DWTF: :DWT;
|
||||
* DWTF: :DWT;
|
||||
*/
|
||||
|
||||
//! PROM a38 bit O1 is STOPWAKE' (stop DWT if bit is zero)
|
||||
|
@ -282,7 +282,7 @@
|
||||
#define H5(hpb) X_BIT(hpb,8,5) //!< get Hamming code bit 5 from hpb data (really bit 37)
|
||||
#define RH(hpb) X_RDBITS(hpb,8,0,5) //!< get Hamming code from hpb data (bits 32 to 37)
|
||||
#define RP(hpb) X_BIT(hpb,8,6) //!< get parity bit from hpb data (really bit 38)
|
||||
#define RU(hpb) X_BIT(hpb,8,7) //!< get unused bit from hpb data (really bit 39) [unused]
|
||||
#define RU(hpb) X_BIT(hpb,8,7) //!< get unused bit from hpb data (really bit 39) [unused]
|
||||
|
||||
/**
|
||||
* @brief Return even parity of a (masked) 32 bit value.
|
||||
@ -321,7 +321,7 @@ static const int hamming_lut[64] = {
|
||||
* @brief Caluclate a Hamming code after reading or before writing a memory double-word.
|
||||
*
|
||||
* Hamming code generation is according to the schematics described above.
|
||||
*
|
||||
*
|
||||
* It's certainly overkill to do this on a modern PC, but I think we'll
|
||||
* need it for perfect emulation anyways, e.g. Hamming code hardware checking.
|
||||
*
|
||||
@ -374,7 +374,7 @@ UINT32 alto2_cpu_device::hamming_code(bool write, UINT32 dw_addr, UINT32 dw_data
|
||||
|
||||
|
||||
/* a54: HC(3)A HC(4)A HCPA HCPB H(0/2) XX01 WD02 WD03 P PERR ---
|
||||
*
|
||||
*
|
||||
* Note: Here I XOR all the non dw_data inputs into bit 0,
|
||||
* which has the same effect as spreading them over some bits
|
||||
* and then counting them... I hope ;-)
|
||||
@ -636,7 +636,7 @@ void alto2_cpu_device::load_mar(UINT8 rsel, UINT32 addr)
|
||||
m_mem.access = ALTO2_MEM_RAM;
|
||||
// fetch the memory double-word to the read/write latches
|
||||
m_mem.rmdd = m_mem.wmdd = m_mem.ram[m_mem.mar/2];
|
||||
m_mem.cycle = cycle(); // keep track of the current CPU cycle
|
||||
m_mem.cycle = cycle(); // keep track of the current CPU cycle
|
||||
} else {
|
||||
m_mem.access = ALTO2_MEM_INVALID;
|
||||
m_mem.rmdd = m_mem.wmdd = ~0;
|
||||
|
@ -236,7 +236,7 @@ void alto2_cpu_device::f1_late_swmode()
|
||||
UINT16 next;
|
||||
|
||||
switch (m_cram_config) {
|
||||
case 1: // 1K CROM, 1K CRAM
|
||||
case 1: // 1K CROM, 1K CRAM
|
||||
switch (page) {
|
||||
case 0:
|
||||
branch_RAM("ROM0", 0);
|
||||
@ -249,7 +249,7 @@ void alto2_cpu_device::f1_late_swmode()
|
||||
}
|
||||
break;
|
||||
|
||||
case 2: // 2K CROM, 1K CRAM
|
||||
case 2: // 2K CROM, 1K CRAM
|
||||
next = X_RDBITS(m_next2,10,1,1);
|
||||
switch (page) {
|
||||
case 0: /* ROM0 to RAM0 or ROM1 */
|
||||
@ -293,7 +293,7 @@ void alto2_cpu_device::f1_late_swmode()
|
||||
}
|
||||
break;
|
||||
|
||||
case 3: // 1K CROM, 3K CRAM
|
||||
case 3: // 1K CROM, 3K CRAM
|
||||
next = X_RDBITS(m_next2,10,1,2);
|
||||
|
||||
switch (page) {
|
||||
|
@ -2603,7 +2603,7 @@ void alto2_cpu_device::execute_run()
|
||||
case f1_task_13: // f1 13 task specific
|
||||
switch (m_task) {
|
||||
case task_emu: // emulator task
|
||||
if (m_cram_config == 3) // 3K CRAM available?
|
||||
if (m_cram_config == 3) // 3K CRAM available?
|
||||
f1_late_load_rmr();
|
||||
else
|
||||
f1_late_load_srb();
|
||||
@ -2946,18 +2946,18 @@ void alto2_cpu_device::soft_reset()
|
||||
if (config)
|
||||
m_cram_config = (config->read() >> 1) & 3;
|
||||
switch (m_cram_config) {
|
||||
case 0: // invalid, default to 1
|
||||
case 1: // 1K CROM, 1K CRAM, 1 S register bank
|
||||
case 0: // invalid, default to 1
|
||||
case 1: // 1K CROM, 1K CRAM, 1 S register bank
|
||||
m_ucode_rom_pages = 1;
|
||||
m_ucode_ram_pages = 1;
|
||||
m_sreg_banks = 1;
|
||||
break;
|
||||
case 2: // 2K CROM, 1K CRAM, 1 S register bank
|
||||
case 2: // 2K CROM, 1K CRAM, 1 S register bank
|
||||
m_ucode_rom_pages = 2;
|
||||
m_ucode_ram_pages = 1;
|
||||
m_sreg_banks = 1;
|
||||
break;
|
||||
case 3: // 1K CROM, 3K CRAM, 8 S register banks
|
||||
case 3: // 1K CROM, 3K CRAM, 8 S register banks
|
||||
m_ucode_rom_pages = 1;
|
||||
m_ucode_ram_pages = 3;
|
||||
m_sreg_banks = 8;
|
||||
|
@ -142,7 +142,7 @@ READ8_MEMBER(h8_sci_device::tdr_r)
|
||||
WRITE8_MEMBER(h8_sci_device::ssr_w)
|
||||
{
|
||||
cpu->synchronize();
|
||||
|
||||
|
||||
if(!(scr & SCR_TE)) {
|
||||
data |= SSR_TDRE;
|
||||
ssr |= SSR_TDRE;
|
||||
|
@ -3832,8 +3832,8 @@ const dasm_s dasm_s::XX_7807[256] =
|
||||
{DCR, "C" }, // 53: 0101 0011
|
||||
{JMP, "%w" }, // 54: 0101 0100 llll llll hhhh hhhh
|
||||
{OFFIW, "%a,%b" }, // 55: 0101 0101 oooo oooo xxxx xxxx
|
||||
{ACI, "A,%b" }, // 56: 0101 0110 xxxx xxxx
|
||||
{OFFI, "A,%b" }, // 57: 0101 0111 xxxx xxxx
|
||||
{ACI, "A,%b" }, // 56: 0101 0110 xxxx xxxx
|
||||
{OFFI, "A,%b" }, // 57: 0101 0111 xxxx xxxx
|
||||
{SETB, "%i" }, // 58: 0101 1000 bbbb bbbb 7807
|
||||
{NOT, "%i" }, // 59: 0101 1001 bbbb bbbb 7807
|
||||
{MOV, "%i,CY" }, // 5a: 0101 1010 bbbb bbbb 7807
|
||||
@ -3942,7 +3942,7 @@ const dasm_s dasm_s::XX_7807[256] =
|
||||
{STAX, "(DE+%b)" }, // bb: 1011 1011 dddd dddd
|
||||
{STAX, "(HL+A)" }, // bc: 1011 1100
|
||||
{STAX, "(HL+B)" }, // bd: 1011 1101
|
||||
{STAX, "(HL+EA)" }, // be: 1011 1110
|
||||
{STAX, "(HL+EA)" }, // be: 1011 1110
|
||||
{STAX, "(HL+%b)" }, // bf: 1011 1111 dddd dddd
|
||||
|
||||
{JR, "%o" }, // c0: 11oo oooo
|
||||
@ -4867,7 +4867,7 @@ const dasm_s dasm_s::d4C_78c05[256] = {
|
||||
// 0xC0 - 0xFF
|
||||
{ MOV, "A,PA" }, { MOV, "A,PB" }, { MOV, "A,PC" }, { MOV, "A,MK" },
|
||||
{ MOV, "A,MB" }, { MOV, "A,MC" }, { MOV, "A,TM0" }, { MOV, "A,TM1" },
|
||||
{ MOV, "A,S" }, { }, { }, { }, // TODO: Figure out what regsiter C9 indicates
|
||||
{ MOV, "A,S" }, { }, { }, { }, // TODO: Figure out what regsiter C9 indicates
|
||||
{ }, { }, { }, { },
|
||||
|
||||
{ }, { }, { }, { },
|
||||
@ -5403,7 +5403,7 @@ const dasm_s dasm_s::XX_78c05[256] = {
|
||||
};
|
||||
|
||||
|
||||
// register names for bit manipulation instructions
|
||||
// register names for bit manipulation instructions
|
||||
const char *const regname[32] =
|
||||
{
|
||||
"illegal", "illegal", "illegal", "illegal",
|
||||
|
@ -340,7 +340,7 @@ WRITE_LINE_MEMBER( im6402_device::crl_w )
|
||||
else parity = PARITY_ODD;
|
||||
|
||||
set_data_frame(1, data_bit_count, parity, stop_bits);
|
||||
|
||||
|
||||
receive_register_reset();
|
||||
transmit_register_reset();
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
// license:BSD-3-Clause
|
||||
/***************************************************************************
|
||||
|
||||
Sony LDP-1450 laserdisc emulation.
|
||||
Sony LDP-1450 laserdisc emulation.
|
||||
|
||||
TODO:
|
||||
- Dump MCU BIOS(more than one?)
|
||||
TODO:
|
||||
- Dump MCU BIOS(more than one?)
|
||||
- Many players support this command set, split out other device stubs (such as LDP-1550P, PAL)
|
||||
- Text overlay (needed for practically everything)
|
||||
- Text overlay (needed for practically everything)
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
@ -15,14 +15,14 @@
|
||||
#define DUMP_BCD 1
|
||||
#define FIFO_MAX 0x10
|
||||
|
||||
#define LDP_STAT_UNDEF 0x00
|
||||
#define LDP_STAT_COMPLETION 0x01
|
||||
#define LDP_STAT_ERROR 0x02
|
||||
#define LDP_STAT_PGM_END 0x04
|
||||
#define LDP_STAT_NOT_TARGET 0x05
|
||||
#define LDP_STAT_NO_FRAME 0x06
|
||||
#define LDP_STAT_ACK 0x0a
|
||||
#define LDP_STAT_NAK 0x0b
|
||||
#define LDP_STAT_UNDEF 0x00
|
||||
#define LDP_STAT_COMPLETION 0x01
|
||||
#define LDP_STAT_ERROR 0x02
|
||||
#define LDP_STAT_PGM_END 0x04
|
||||
#define LDP_STAT_NOT_TARGET 0x05
|
||||
#define LDP_STAT_NO_FRAME 0x06
|
||||
#define LDP_STAT_ACK 0x0a
|
||||
#define LDP_STAT_NAK 0x0b
|
||||
|
||||
ROM_START( ldp1450 )
|
||||
ROM_REGION( 0x2000, "ldp1450", 0 )
|
||||
@ -78,7 +78,7 @@ void sony_ldp1450_device::device_start()
|
||||
void sony_ldp1450_device::device_reset()
|
||||
{
|
||||
laserdisc_device::device_reset();
|
||||
|
||||
|
||||
for(int i=0;i<0x10;i++)
|
||||
m_internal_bcd[i] = 0;
|
||||
|
||||
@ -156,18 +156,18 @@ UINT32 sony_ldp1450_device::bcd_to_raw()
|
||||
void sony_ldp1450_device::exec_enter_cmd()
|
||||
{
|
||||
const UINT32 saved_frame = bcd_to_raw();
|
||||
|
||||
|
||||
switch(m_player_state)
|
||||
{
|
||||
case player_standby:
|
||||
throw emu_fatalerror("Unimplemented standby state detected");
|
||||
|
||||
|
||||
case player_search:
|
||||
// TODO: move to timer
|
||||
advance_slider(1);
|
||||
set_slider_speed(saved_frame);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
//not handling all states yet
|
||||
break;
|
||||
@ -188,7 +188,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
|
||||
switch(m_command)
|
||||
{
|
||||
|
||||
|
||||
case 0x00: /* text handling (start gotoxy) */
|
||||
if ( m_ld_input_state == LD_INPUT_TEXT_COMMAND )
|
||||
{
|
||||
@ -238,7 +238,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
//30 to 39 handled separately, as they are the frame commands
|
||||
case 0x3a: /* Play (answer should have delay) */
|
||||
printf("play\n");
|
||||
set_new_player_state(player_play);
|
||||
set_new_player_state(player_play);
|
||||
m_status = LDP_STAT_ACK;
|
||||
break;
|
||||
case 0x3b: /* Play fast */
|
||||
@ -262,7 +262,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
break;
|
||||
case 0x41: /* CE */
|
||||
break;
|
||||
|
||||
|
||||
case 0x43: // search
|
||||
printf("Search \n");
|
||||
set_new_player_state(player_search);
|
||||
@ -274,13 +274,13 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
set_new_player_state(player_repeat);
|
||||
m_status = LDP_STAT_ACK;
|
||||
break;
|
||||
|
||||
|
||||
/*
|
||||
audio channels absolute enable / disable
|
||||
---- --x- select channel
|
||||
---- ---x enable channel (active low)
|
||||
audio channels absolute enable / disable
|
||||
---- --x- select channel
|
||||
---- ---x enable channel (active low)
|
||||
*/
|
||||
case 0x46:
|
||||
case 0x46:
|
||||
case 0x47:
|
||||
case 0x48:
|
||||
case 0x49:
|
||||
@ -313,7 +313,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
break;
|
||||
case 0x55: /* 'frame mode' (unknown function) */
|
||||
break;
|
||||
|
||||
|
||||
case 0x56: // Clear All
|
||||
if (m_player_state == player_search)
|
||||
{
|
||||
@ -321,7 +321,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
|
||||
set_new_player_state(player_search_clr);
|
||||
}
|
||||
|
||||
|
||||
m_status = LDP_STAT_ACK;
|
||||
// reset any pending operation here
|
||||
break;
|
||||
@ -335,7 +335,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
break;
|
||||
case 0x62: /* Motor on */
|
||||
break;
|
||||
case 0x6e: // CX enable - anything use it?
|
||||
case 0x6e: // CX enable - anything use it?
|
||||
break;
|
||||
|
||||
case 0x80: /* text start */
|
||||
@ -346,7 +346,7 @@ void sony_ldp1450_device::command_w(UINT8 data)
|
||||
break;
|
||||
case 0x82: /* Turn off text */
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
m_status = LDP_STAT_UNDEF;
|
||||
break;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// license:BSD-3-Clause
|
||||
/***************************************************************************
|
||||
|
||||
Sony LDP-1450 laserdisc emulation.
|
||||
Sony LDP-1450 laserdisc emulation.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
@ -45,7 +45,7 @@ protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
virtual const tiny_rom_entry *device_rom_region() const override;
|
||||
|
||||
|
||||
virtual void player_vsync(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override;
|
||||
virtual INT32 player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override;
|
||||
virtual void player_overlay(bitmap_yuy16 &bitmap) override { }
|
||||
@ -75,7 +75,7 @@ protected:
|
||||
player_stop,
|
||||
player_repeat
|
||||
};
|
||||
|
||||
|
||||
private:
|
||||
UINT8 m_command;
|
||||
UINT8 m_status;
|
||||
@ -87,7 +87,7 @@ private:
|
||||
void exec_enter_cmd();
|
||||
UINT8 m_internal_bcd[0x10];
|
||||
UINT8 m_index_state;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -196,7 +196,7 @@ WRITE8_MEMBER( mc6852_device::write )
|
||||
/* control 2 */
|
||||
if (LOG) logerror("MC6852 '%s' Control 2 %02x\n", tag(), data);
|
||||
m_cr[1] = data;
|
||||
|
||||
|
||||
int data_bit_count = 0;
|
||||
parity_t parity = PARITY_NONE;
|
||||
stop_bits_t stop_bits = STOP_BITS_1;
|
||||
@ -242,7 +242,7 @@ WRITE8_MEMBER( mc6852_device::write )
|
||||
else
|
||||
{
|
||||
if (LOG) logerror("MC6852 '%s' Control 1 %02x\n", tag(), data);
|
||||
|
||||
|
||||
/* receiver reset */
|
||||
if (data & C1_RX_RS)
|
||||
{
|
||||
@ -273,7 +273,7 @@ WRITE8_MEMBER( mc6852_device::write )
|
||||
if (LOG) logerror("MC6852 '%s' Transmitter Reset\n", tag());
|
||||
|
||||
m_status &= ~(S_TUF | S_CTS | S_TDRA);
|
||||
|
||||
|
||||
transmit_register_reset();
|
||||
}
|
||||
|
||||
|
@ -353,7 +353,7 @@ signed short aica_device::DecodeADPCM(int *PrevSignal, unsigned char Delta, int
|
||||
{
|
||||
int x = (*PrevQuant * quant_mul[Delta & 7]) / 8;
|
||||
if (x > 0x7FFF) x = 0x7FFF;
|
||||
if (Delta & 8) x = -x;
|
||||
if (Delta & 8) x = -x;
|
||||
x += *PrevSignal;
|
||||
#if 0 // older implementation
|
||||
int x = *PrevQuant * quant_mul [Delta & 15];
|
||||
|
@ -1,19 +1,19 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:R. Belmont, superctr
|
||||
/*
|
||||
c352.c - Namco C352 custom PCM chip emulation
|
||||
v2.0
|
||||
By R. Belmont
|
||||
Rewritten and improved by superctr
|
||||
Additional code by cync and the hoot development team
|
||||
c352.c - Namco C352 custom PCM chip emulation
|
||||
v2.0
|
||||
By R. Belmont
|
||||
Rewritten and improved by superctr
|
||||
Additional code by cync and the hoot development team
|
||||
|
||||
Thanks to Cap of VivaNonno for info and The_Author for preliminary reverse-engineering
|
||||
Thanks to Cap of VivaNonno for info and The_Author for preliminary reverse-engineering
|
||||
|
||||
Chip specs:
|
||||
32 voices
|
||||
Supports 8-bit linear and 8-bit muLaw samples
|
||||
Output: digital, 16 bit, 4 channels
|
||||
Output sample rate is the input clock / (288 * 2).
|
||||
Chip specs:
|
||||
32 voices
|
||||
Supports 8-bit linear and 8-bit muLaw samples
|
||||
Output: digital, 16 bit, 4 channels
|
||||
Output sample rate is the input clock / (288 * 2).
|
||||
*/
|
||||
|
||||
#include "emu.h"
|
||||
|
@ -94,8 +94,8 @@ private:
|
||||
c352_voice_t m_c352_v[32];
|
||||
INT16 m_mulaw_table[256];
|
||||
|
||||
UINT16 m_random;
|
||||
UINT16 m_control; // control flags, purpose unknown.
|
||||
UINT16 m_random;
|
||||
UINT16 m_control; // control flags, purpose unknown.
|
||||
|
||||
void fetch_sample(c352_voice_t* v);
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// copyright-holders:Curt Coder
|
||||
/**********************************************************************
|
||||
|
||||
PCD3311 DTMF/modem/musical tone generator emulation
|
||||
PCD3311 DTMF/modem/musical tone generator emulation
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
// copyright-holders:Curt Coder
|
||||
/**********************************************************************
|
||||
|
||||
PCD3311 DTMF/modem/musical tone generator emulation
|
||||
PCD3311 DTMF/modem/musical tone generator emulation
|
||||
|
||||
**********************************************************************
|
||||
_____ _____
|
||||
|
@ -51,11 +51,11 @@
|
||||
#define WININ HWLO(0x048) /* 0x4000048 2 R/W Inside of Window 0 and 1 */
|
||||
#define WINOUT HWHI(0x048) /* 0x400004A 2 R/W Inside of OBJ Window & Outside of Windows */
|
||||
#define MOSAIC HWLO(0x04C) /* 0x400004C 2 W Mosaic Size */
|
||||
/* 0x400004E 2 - Unused */
|
||||
/* 0x400004E 2 - Unused */
|
||||
#define BLDCNT HWLO(0x050) /* 0x4000050 2 R/W Color Special Effects Selection */
|
||||
#define BLDALPHA HWHI(0x050) /* 0x4000052 2 W Alpha Blending Coefficients */
|
||||
#define BLDY HWLO(0x054) /* 0x4000054 2 W Brightness (Fade-In/Out) Coefficient */
|
||||
/* 0x4000056 2 - Unused */
|
||||
/* 0x4000056 2 - Unused */
|
||||
|
||||
#define DISPSTAT_SET(val) HWLO_SET(0x004, val)
|
||||
#define DISPSTAT_RESET(val) HWLO_RESET(0x004, val)
|
||||
@ -132,7 +132,7 @@ public:
|
||||
{
|
||||
attr0 = oam[(4 * index) + 0];
|
||||
attr1 = oam[(4 * index) + 1];
|
||||
attr2 = oam[(4 * index) + 2];
|
||||
attr2 = oam[(4 * index) + 2];
|
||||
}
|
||||
|
||||
int pos_y() { return attr0 & 0x00FF; }
|
||||
@ -168,7 +168,7 @@ public:
|
||||
{ { 8, 16 }, { 8, 32 }, { 16, 32 }, { 32, 64 } }, // vertical rect
|
||||
{ { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } } // invalid
|
||||
};
|
||||
|
||||
|
||||
int shape = (attr0 & 0xC000) >> 14;
|
||||
int size = (attr1 & 0xC000) >> 14;
|
||||
|
||||
@ -184,7 +184,7 @@ private:
|
||||
|
||||
UINT16 attr0;
|
||||
UINT16 attr1;
|
||||
UINT16 attr2;
|
||||
UINT16 attr2;
|
||||
};
|
||||
|
||||
inline UINT32 gba_lcd_device::bg_screen_base(UINT32 bgxcnt)
|
||||
@ -204,7 +204,7 @@ inline void gba_lcd_device::bg_screen_size(UINT16 bgxcnt, bool text, int &width,
|
||||
{ { 256, 256 }, { 512, 256 }, { 256, 512 }, { 512, 512 } }, // text mode
|
||||
{ { 128, 128 }, { 256, 256 }, { 512, 512 }, { 1024, 1024 } } // rotation/scaling (roz) mode
|
||||
};
|
||||
|
||||
|
||||
int mode = text ? 0 : 1;
|
||||
int size = (bgxcnt & 0xC000) >> 14;
|
||||
|
||||
|
@ -362,7 +362,7 @@ private:
|
||||
bool m_config_complete; // have we completed our configuration?
|
||||
bool m_started; // true if the start function has succeeded
|
||||
finder_base * m_auto_finder_list; // list of objects to auto-find
|
||||
mutable std::vector<rom_entry> m_rom_entries;
|
||||
mutable std::vector<rom_entry> m_rom_entries;
|
||||
|
||||
// string formatting buffer for logerror
|
||||
mutable util::ovectorstream m_string_buffer;
|
||||
|
@ -1253,7 +1253,7 @@ void device_image_interface::update_names(const device_type device_type, const c
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// find_software_item
|
||||
// find_software_item
|
||||
//-------------------------------------------------
|
||||
|
||||
const software_part *device_image_interface::find_software_item(const std::string &identifier, bool restrict_to_interface, software_list_device **dev) const
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
|
||||
device_rom_interface::device_rom_interface(const machine_config &mconfig, device_t &device, UINT8 addrwidth, endianness_t endian, UINT8 datawidth) :
|
||||
device_memory_interface(mconfig, device),
|
||||
m_rom_config("rom", endian, datawidth, addrwidth)
|
||||
device_memory_interface(mconfig, device),
|
||||
m_rom_config("rom", endian, datawidth, addrwidth)
|
||||
{
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ device_rom_interface::~device_rom_interface()
|
||||
|
||||
const address_space_config *device_rom_interface::memory_space_config(address_spacenum spacenum) const
|
||||
{
|
||||
return spacenum ? nullptr : &m_rom_config;
|
||||
return spacenum ? nullptr : &m_rom_config;
|
||||
}
|
||||
|
||||
void device_rom_interface::set_rom_bank(int bank)
|
||||
|
@ -83,7 +83,7 @@ private:
|
||||
std::vector<offs_t> m_live; // array of live entries by table index
|
||||
std::vector<int> m_fixedpages; // number of pages each fixed entry covers
|
||||
std::vector<vtlb_entry> m_table; // table of entries by address
|
||||
vtlb_entry *m_table_base; // pointer to m_table[0]
|
||||
vtlb_entry *m_table_base; // pointer to m_table[0]
|
||||
};
|
||||
|
||||
|
||||
|
@ -60,7 +60,7 @@ enum
|
||||
XTAL_3_12MHz = 3120000, /* SP0250 clock on Gottlieb games */
|
||||
XTAL_3_5MHz = 3500000, /* Reported by Commodore 65 document, true xtal unchecked on PCB */
|
||||
XTAL_3_52128MHz = 3521280, /* RCA COSMAC VIP */
|
||||
XTAL_3_57864MHz = 3578640, /* Atari Portfolio PCD3311T */
|
||||
XTAL_3_57864MHz = 3578640, /* Atari Portfolio PCD3311T */
|
||||
XTAL_3_579545MHz = 3579545, /* NTSC color subcarrier, extremely common, used on 100's of PCBs (Keytronic custom part #48-300-010 is equivalent) */
|
||||
XTAL_3_6864MHz = 3686400, /* CPS3 */
|
||||
XTAL_4MHz = 4000000,
|
||||
|
@ -355,12 +355,12 @@ constexpr inline enable_enum_t<E>
|
||||
underlying_value(E e) noexcept
|
||||
{
|
||||
return static_cast< typename std::underlying_type<E>::type >( e );
|
||||
}
|
||||
}
|
||||
|
||||
// template function which takes an integral value and returns its representation as enumerator (even strongly typed)
|
||||
template <typename E , typename T>
|
||||
constexpr inline typename std::enable_if_t<std::is_enum<E>::value && std::is_integral<T>::value, E>
|
||||
enum_value(T value) noexcept
|
||||
enum_value(T value) noexcept
|
||||
{
|
||||
return static_cast<E>(value);
|
||||
}
|
||||
|
@ -2,9 +2,9 @@
|
||||
// copyright-holders:Nicola Salmoria,Aaron Giles
|
||||
/*********************************************************************
|
||||
|
||||
romentry.cpp
|
||||
romentry.cpp
|
||||
|
||||
ROM loading functions.
|
||||
ROM loading functions.
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
@ -13,13 +13,13 @@
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
HELPERS
|
||||
HELPERS
|
||||
***************************************************************************/
|
||||
|
||||
//-------------------------------------------------
|
||||
// hashdata_from_tiny_rom_entry - calculates the
|
||||
// proper hashdata string from the value in the
|
||||
// tiny_rom_entry
|
||||
// proper hashdata string from the value in the
|
||||
// tiny_rom_entry
|
||||
//-------------------------------------------------
|
||||
|
||||
static std::string hashdata_from_tiny_rom_entry(const tiny_rom_entry &ent)
|
||||
@ -29,7 +29,7 @@ static std::string hashdata_from_tiny_rom_entry(const tiny_rom_entry &ent)
|
||||
{
|
||||
case ROMENTRYTYPE_FILL:
|
||||
case ROMENTRYTYPE_COPY:
|
||||
// for these types, tiny_rom_entry::hashdata is an integer typecasted to a pointer
|
||||
// for these types, tiny_rom_entry::hashdata is an integer typecasted to a pointer
|
||||
result = string_format("0x%x", (unsigned)(FPTR)ent.hashdata);
|
||||
break;
|
||||
|
||||
@ -43,7 +43,7 @@ static std::string hashdata_from_tiny_rom_entry(const tiny_rom_entry &ent)
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
ROM ENTRY
|
||||
ROM ENTRY
|
||||
***************************************************************************/
|
||||
|
||||
//-------------------------------------------------
|
||||
|
@ -219,7 +219,7 @@ softlist_parser::softlist_parser(util::core_file &file, const std::string &filen
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// line
|
||||
// line
|
||||
//-------------------------------------------------
|
||||
|
||||
int softlist_parser::line() const
|
||||
@ -229,7 +229,7 @@ int softlist_parser::line() const
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// column
|
||||
// column
|
||||
//-------------------------------------------------
|
||||
|
||||
int softlist_parser::column() const
|
||||
@ -239,7 +239,7 @@ int softlist_parser::column() const
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// parser_error
|
||||
// parser_error
|
||||
//-------------------------------------------------
|
||||
|
||||
const char *softlist_parser::parser_error() const
|
||||
@ -822,8 +822,8 @@ void softlist_parser::parse_soft_end(const char *tagname)
|
||||
|
||||
//-------------------------------------------------
|
||||
// software_name_parse - helper that splits a
|
||||
// software identifier (software_list:software:part)
|
||||
// string into separate software_list, software, and part
|
||||
// software identifier (software_list:software:part)
|
||||
// string into separate software_list, software, and part
|
||||
// strings.
|
||||
//
|
||||
// str1:str2:str3 => swlist_name - str1, swname - str2, swpart - str3
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
softlist.h
|
||||
|
||||
Software list file format.
|
||||
Software list file format.
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
@ -190,13 +190,13 @@ private:
|
||||
void parse_soft_end(const char *name);
|
||||
|
||||
// internal parsing state
|
||||
util::core_file & m_file;
|
||||
std::string m_filename;
|
||||
std::list<software_info> & m_infolist;
|
||||
std::ostringstream & m_errors;
|
||||
struct XML_ParserStruct * m_parser;
|
||||
bool m_done;
|
||||
std::string & m_description;
|
||||
util::core_file & m_file;
|
||||
std::string m_filename;
|
||||
std::list<software_info> & m_infolist;
|
||||
std::ostringstream & m_errors;
|
||||
struct XML_ParserStruct * m_parser;
|
||||
bool m_done;
|
||||
std::string & m_description;
|
||||
bool m_data_accum_expected;
|
||||
std::string m_data_accum;
|
||||
software_info * m_current_info;
|
||||
|
@ -2,9 +2,9 @@
|
||||
// copyright-holders:Wilbert Pol
|
||||
/***************************************************************************
|
||||
|
||||
softlist_dev.cpp
|
||||
softlist_dev.cpp
|
||||
|
||||
Software list construction helpers.
|
||||
Software list construction helpers.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
// copyright-holders:Wilbert Pol
|
||||
/*********************************************************************
|
||||
|
||||
softlist_dev.h
|
||||
softlist_dev.h
|
||||
|
||||
Software and software list information.
|
||||
Software and software list information.
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
|
@ -32,8 +32,8 @@ namespace ui {
|
||||
|
||||
//-------------------------------------------------
|
||||
// is_valid_softlist_part_char - returns whether
|
||||
// this character is a valid char for a softlist
|
||||
// part
|
||||
// this character is a valid char for a softlist
|
||||
// part
|
||||
//-------------------------------------------------
|
||||
|
||||
static bool is_valid_softlist_part_char(unicode_char ch)
|
||||
|
@ -909,7 +909,7 @@ cassette_image::error cassette_legacy_construct(cassette_image *cassette,
|
||||
bytes.resize(size);
|
||||
cassette_image_read(cassette, &bytes[0], 0, size);
|
||||
sample_count = args.chunk_sample_calc(&bytes[0], (int)size);
|
||||
|
||||
|
||||
// chunk_sample_calc functions report errors by returning negative numbers
|
||||
if (sample_count < 0)
|
||||
{
|
||||
|
@ -87,12 +87,12 @@ struct cassette_image
|
||||
{
|
||||
enum class error
|
||||
{
|
||||
SUCCESS, // no error
|
||||
INTERNAL, // fatal internal error
|
||||
UNSUPPORTED, // this operation is unsupported
|
||||
OUT_OF_MEMORY, // ran out of memory
|
||||
INVALID_IMAGE, // invalid image
|
||||
READ_WRITE_UNSUPPORTED // read/write is not supported by this image format
|
||||
SUCCESS, // no error
|
||||
INTERNAL, // fatal internal error
|
||||
UNSUPPORTED, // this operation is unsupported
|
||||
OUT_OF_MEMORY, // ran out of memory
|
||||
INVALID_IMAGE, // invalid image
|
||||
READ_WRITE_UNSUPPORTED // read/write is not supported by this image format
|
||||
};
|
||||
|
||||
const struct CassetteFormat *format;
|
||||
|
@ -144,7 +144,7 @@ class NETLIB_NAME(name) : public device_t
|
||||
#define NL_NOEXCEPT
|
||||
#else
|
||||
#define nl_assert(x) do { if (0) if (!(x)) { /*throw nl_exception(plib::pfmt("assert: {1}:{2}: {3}")(__FILE__)(__LINE__)(#x) ); */} } while (0)
|
||||
#define NL_NOEXCEPT noexcept
|
||||
#define NL_NOEXCEPT noexcept
|
||||
#endif
|
||||
#define nl_assert_always(x, msg) do { if (!(x)) throw nl_exception(plib::pfmt("Fatal error: {1}\nCaused by assert: {2}:{3}: {4}")(msg)(__FILE__)(__LINE__)(#x)); } while (0)
|
||||
|
||||
|
@ -492,14 +492,14 @@ void nl_convert_eagle_t::convert(const pstring &contents)
|
||||
|
||||
}
|
||||
|
||||
/* token_id_t m_tok_HFA;
|
||||
token_id_t m_tok_APP;
|
||||
token_id_t m_tok_TIM;
|
||||
token_id_t m_tok_TYP;
|
||||
token_id_t m_tok_ADDC;
|
||||
token_id_t m_tok_ATTC;
|
||||
token_id_t m_tok_NET;
|
||||
token_id_t m_tok_TER;
|
||||
/* token_id_t m_tok_HFA;
|
||||
token_id_t m_tok_APP;
|
||||
token_id_t m_tok_TIM;
|
||||
token_id_t m_tok_TYP;
|
||||
token_id_t m_tok_ADDC;
|
||||
token_id_t m_tok_ATTC;
|
||||
token_id_t m_tok_NET;
|
||||
token_id_t m_tok_TER;
|
||||
*
|
||||
*/
|
||||
void nl_convert_rinf_t::convert(const pstring &contents)
|
||||
|
@ -34,14 +34,14 @@
|
||||
|
||||
TODO:
|
||||
|
||||
- starting from MAME 0.151, the Z80 DMA reads 0x08 as the 257th byte to transfer from disk t0s14 thus failing a comparison @ 37cfa, leading to a watchdog reset
|
||||
changing z80dma.cpp:477 to "done = (m_count == 0);" fixes this but isn't the real reason
|
||||
- abcenix boot stuck in a loop @ 37cfa
|
||||
- starting from MAME 0.151, the Z80 DMA reads 0x08 as the 257th byte to transfer from disk t0s14 thus failing a comparison @ 37cfa, leading to a watchdog reset
|
||||
changing z80dma.cpp:477 to "done = (m_count == 0);" fixes this but isn't the real reason
|
||||
- abcenix boot stuck in a loop @ 37cfa
|
||||
- segment/page RAM addresses are not correctly decoded, "sas/format/format" after abcenix is booted can't find the SASI interface because of this
|
||||
[:mac] ':3f' (08A98) MAC 7e4a2:0004a2 (SEGA 02f SEGD 09 PGA 09c PGD 8000 NONX 1 WP 0)
|
||||
should be
|
||||
[:mac] ':3f' (089A8) MAC 7e4a2:1fe4a2 (SEGA 00f SEGD 0f PGA 0fc PGD 43fc NONX 0 WP 1)
|
||||
|
||||
[:mac] ':3f' (08A98) MAC 7e4a2:0004a2 (SEGA 02f SEGD 09 PGA 09c PGD 8000 NONX 1 WP 0)
|
||||
should be
|
||||
[:mac] ':3f' (089A8) MAC 7e4a2:1fe4a2 (SEGA 00f SEGD 0f PGA 0fc PGD 43fc NONX 0 WP 1)
|
||||
|
||||
- short/long reset (RSTBUT)
|
||||
- CIO
|
||||
- optimize timers!
|
||||
@ -904,7 +904,7 @@ static MACHINE_CONFIG_START( abc1600, abc1600_state )
|
||||
MCFG_NMC9306_ADD(NMC9306_TAG)
|
||||
|
||||
MCFG_E0516_ADD(E050_C16PC_TAG, XTAL_32_768kHz)
|
||||
|
||||
|
||||
MCFG_FD1797_ADD(SAB1797_02P_TAG, XTAL_64MHz/64)
|
||||
MCFG_WD_FDC_INTRQ_CALLBACK(DEVWRITELINE(Z8536B1_TAG, z8536_device, pb7_w))
|
||||
MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(abc1600_state, fdc_drq_w))
|
||||
|
@ -1,7 +1,7 @@
|
||||
// license:LGPL-2.1+
|
||||
// copyright-holders:Tomasz Slanina, Angelo Salese, hap
|
||||
/* Air Raid (aka Cross Shooter) (c) 1987 Seibu
|
||||
|
||||
|
||||
this driver is for the single board version on the S-0087-011A-0 PCB
|
||||
for the version using a S-0086-002-B0 base PCB and separate video board see stfight.cpp
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
Haze's notes
|
||||
- video system is very similar to darkmist.cpp
|
||||
|
||||
|
||||
|
||||
Stephh's notes (based on the game Z80 code and some tests) :
|
||||
|
||||
@ -371,7 +371,7 @@ static MACHINE_CONFIG_START( airraid, airraid_state )
|
||||
SEIBU2_AIRRAID_SOUND_SYSTEM_CPU(XTAL_14_31818MHz/4) /* verified on pcb */
|
||||
SEIBU_SOUND_SYSTEM_ENCRYPTED_LOW()
|
||||
|
||||
MCFG_QUANTUM_PERFECT_CPU("maincpu")
|
||||
MCFG_QUANTUM_PERFECT_CPU("maincpu")
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
|
||||
|
@ -283,8 +283,8 @@ static MACHINE_CONFIG_START( alto2, alto2_state )
|
||||
// Video hardware
|
||||
MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::white)
|
||||
MCFG_SCREEN_RAW_PARAMS(XTAL_20_16MHz,
|
||||
A2_DISP_TOTAL_WIDTH, 0, A2_DISP_WIDTH,
|
||||
A2_DISP_TOTAL_HEIGHT, 0, A2_DISP_HEIGHT)
|
||||
A2_DISP_TOTAL_WIDTH, 0, A2_DISP_WIDTH,
|
||||
A2_DISP_TOTAL_HEIGHT, 0, A2_DISP_HEIGHT)
|
||||
// Two interlaced fields at 60Hz => 30Hz frame rate
|
||||
MCFG_SCREEN_REFRESH_RATE(30)
|
||||
MCFG_SCREEN_UPDATE_DEVICE("maincpu", alto2_cpu_device, screen_update)
|
||||
|
@ -53,7 +53,7 @@ static ADDRESS_MAP_START( audiocpu_map, AS_IO, 8, barni_state )
|
||||
AM_RANGE(0x0000, 0x007f) AM_RAM
|
||||
AM_RANGE(0xc000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static INPUT_PORTS_START( barni )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
@ -177,14 +177,14 @@ Adder hardware:
|
||||
#include "machine/bfm_comn.h"
|
||||
|
||||
#include "sc2ptytm1.lh"
|
||||
#include "sc2cpe.lh"
|
||||
#include "sc2casr2.lh"
|
||||
#include "sc2majes.lh"
|
||||
#include "sc2eggs1.lh"
|
||||
#include "sc2prom.lh"
|
||||
#include "sc2cpg.lh"
|
||||
#include "sc2cpe.lh"
|
||||
#include "sc2casr2.lh"
|
||||
#include "sc2majes.lh"
|
||||
#include "sc2eggs1.lh"
|
||||
#include "sc2prom.lh"
|
||||
#include "sc2cpg.lh"
|
||||
#include "sc2copcl7.lh"
|
||||
#include "sc2town2.lh"
|
||||
#include "sc2town2.lh"
|
||||
#include "sc2suprz1.lh"
|
||||
#include "sc2heypr.lh"
|
||||
#include "sc2prem2.lh"
|
||||
@ -225,7 +225,7 @@ public:
|
||||
required_ioport_array<12> m_strobein;
|
||||
optional_memory_bank m_rombank1;
|
||||
optional_device<ym2413_device> m_ym2413;
|
||||
|
||||
|
||||
|
||||
required_device<upd7759_device> m_upd7759;
|
||||
optional_device<bfm_bd1_t> m_vfd0;
|
||||
@ -722,7 +722,7 @@ WRITE8_MEMBER(bfm_sc2_state::volume_override_w)
|
||||
if ( old != m_volume_override )
|
||||
{
|
||||
ym2413_device *ym = m_ym2413;
|
||||
|
||||
|
||||
if (!m_ym2413)
|
||||
return;
|
||||
|
||||
@ -5555,7 +5555,7 @@ ROM_START( sc2copcl3p )
|
||||
sc2_copcl_sound
|
||||
|
||||
ROM_REGION( 0x20000, "dm01:matrix", 0 )
|
||||
ROM_LOAD( "95000569.bin", 0x0000, 0x010000, CRC(64014f73) SHA1(67d44db91944738fcadc38bfd0d2b7c0536adb9a) )
|
||||
ROM_LOAD( "95000569.bin", 0x0000, 0x010000, CRC(64014f73) SHA1(67d44db91944738fcadc38bfd0d2b7c0536adb9a) )
|
||||
ROM_END
|
||||
|
||||
ROM_START( sc2copcl4 )
|
||||
@ -5573,7 +5573,7 @@ ROM_START( sc2copcl5 )
|
||||
sc2_copcl_sound
|
||||
|
||||
ROM_REGION( 0x20000, "dm01:matrix", 0 )
|
||||
ROM_LOAD( "95000569.bin", 0x0000, 0x010000, CRC(64014f73) SHA1(67d44db91944738fcadc38bfd0d2b7c0536adb9a) )
|
||||
ROM_LOAD( "95000569.bin", 0x0000, 0x010000, CRC(64014f73) SHA1(67d44db91944738fcadc38bfd0d2b7c0536adb9a) )
|
||||
ROM_END
|
||||
|
||||
ROM_START( sc2copcl6 )
|
||||
@ -8514,20 +8514,20 @@ GAME( 1996, sc2luvv1p , sc2luvv , scorpion2_dm01 , luvjub , bfm_sc2_st
|
||||
********************************************************************************************************************************************************************************************************************/
|
||||
|
||||
// PROJECT NUMBER PR6331 PUBLIC ENEMY NO.1 - 26-JUL-1994 09:24:19
|
||||
GAMEL( 1996, sc2cpe3 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 1, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-257
|
||||
GAMEL( 1996, sc2cpe3p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 1, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-257
|
||||
GAMEL( 1996, sc2cpe3 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 1, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-257
|
||||
GAMEL( 1996, sc2cpe3p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 1, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-257
|
||||
// PROJECT NUMBER PR6331 PUBLIC ENEMY NO.1 FIXED 65% - 10-AUG-1994 11:26:30
|
||||
GAMEL( 1996, sc2cpe4 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 2, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-273
|
||||
GAMEL( 1996, sc2cpe4p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 2, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-273
|
||||
GAMEL( 1996, sc2cpe4 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 2, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-273
|
||||
GAMEL( 1996, sc2cpe4p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 2, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-273
|
||||
// PROJECT NUMBER PR6574 PUBLIC ENEMY NO.1 S+P 25P/#250 STENA SEALINK - 3-JAN-1996 12:17:33
|
||||
GAMEL( 1996, sc2cpe2 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 3, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-597
|
||||
GAMEL( 1996, sc2cpe2p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 3, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-597
|
||||
GAMEL( 1996, sc2cpe2 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 3, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-597
|
||||
GAMEL( 1996, sc2cpe2p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 3, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-597
|
||||
// PROJECT NUMBER PR6574 PUBLIC ENEMY NO.1 S+P 25P/#250 FIXED 65% - 3-JAN-1996 12:19:01
|
||||
GAMEL( 1996, sc2cpe1 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 4, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-598
|
||||
GAMEL( 1996, sc2cpe1p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 4, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-598
|
||||
GAMEL( 1996, sc2cpe1 , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 4, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-598
|
||||
GAMEL( 1996, sc2cpe1p , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 4, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-598
|
||||
// PROJECT NUMBER PR6574 PUBLIC ENEMY NO.1 S+P 25P/#250 - 20-AUG-1996 10:05:21
|
||||
GAMEL( 1996, sc2cpe , 0 , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 5, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-846
|
||||
GAMEL( 1996, sc2cpep , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 5, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-846
|
||||
GAMEL( 1996, sc2cpe , 0 , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 5, UK) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-750-846
|
||||
GAMEL( 1996, sc2cpep , sc2cpe , scorpion2_dm01_5m , cpeno1 , bfm_sc2_state, cpeno1 , 0, "BFM", "Club Public Enemy No.1 (set 5, UK, Protocol) (Scorpion 2/3)", GAME_FLAGS, layout_sc2cpe) // GAME No 95-751-846
|
||||
|
||||
/********************************************************************************************************************************************************************************************************************
|
||||
Cops 'n' Robbers
|
||||
|
@ -1191,7 +1191,7 @@ MACHINE_CONFIG_END
|
||||
MACHINE_CONFIG_START( sc4dmd, sc4_state )
|
||||
MCFG_FRAGMENT_ADD(sc4_common)
|
||||
/* video hardware */
|
||||
|
||||
|
||||
//MCFG_DEFAULT_LAYOUT(layout_sc4_dmd)
|
||||
MCFG_DEVICE_ADD("dm01", BF_DM01, 0)
|
||||
MCFG_BF_DM01_BUSY_CB(WRITELINE(sc4_state, bfmdm01_busy))
|
||||
@ -1717,7 +1717,7 @@ DRIVER_INIT_MEMBER(sc4_state,sc4)
|
||||
|
||||
|
||||
// debug helpers to find strings used for inputs and where the buttons map
|
||||
// bfm_sc45_layout_helper(machine());
|
||||
// bfm_sc45_layout_helper(machine());
|
||||
|
||||
}
|
||||
|
||||
|
@ -2622,7 +2622,7 @@ static MACHINE_CONFIG_START( sailormn, cave_state )
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
|
||||
|
||||
// could be a wachdog, but if it is then our watchdog address is incorrect as there are periods where the game doesn't write it.
|
||||
MCFG_TIMER_DRIVER_ADD("startup", cave_state, sailormn_startup)
|
||||
MCFG_TIMER_DRIVER_ADD("startup", cave_state, sailormn_startup)
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, XTAL_8MHz) // Bidirectional Communication
|
||||
MCFG_CPU_PROGRAM_MAP(sailormn_sound_map)
|
||||
@ -2981,7 +2981,7 @@ ROM_START( agalletak )
|
||||
ROM_LOAD16_WORD( "agallet_korea.nv", 0x0000, 0x0080, CRC(7f41c253) SHA1(50793d4da0ad6eb590941d26a729a1cf4b3c25c2) )
|
||||
ROM_END
|
||||
|
||||
ROM_START( agalletat )
|
||||
ROM_START( agalletat )
|
||||
ROMS_AGALLETA
|
||||
|
||||
ROM_REGION16_BE( 0x80, "eeprom", 0 )
|
||||
|
@ -25,7 +25,7 @@
|
||||
Don't try 'fill' - it fills all memory with zeroes, crashing the system.
|
||||
|
||||
ToDo:
|
||||
- Connect up floppy disk (WD1771 fdc, 5.25", single density,
|
||||
- Connect up floppy disk (WD1771 fdc, 5.25", single density,
|
||||
no other info available)
|
||||
|
||||
****************************************************************************/
|
||||
|
@ -161,7 +161,7 @@ static INPUT_PORTS_START( chessmst )
|
||||
PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Color [2]") PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_C)
|
||||
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("Level [1]") PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_L)
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME("New Game [0]") PORT_CODE(KEYCODE_0) PORT_CODE(KEYCODE_ENTER)
|
||||
|
||||
|
||||
PORT_START("EXTRA")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_NAME("Halt") PORT_CODE(KEYCODE_F2) PORT_WRITE_LINE_DEVICE_MEMBER("z80pio1", z80pio_device, strobe_a) // -> PIO(1) ASTB pin
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_KEYPAD ) PORT_NAME("Reset") PORT_CODE(KEYCODE_F1) PORT_CHANGED_MEMBER(DEVICE_SELF, chessmst_state, reset_button, 0) // -> Z80 RESET pin
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user