mirror of
https://github.com/holub/mame
synced 2025-06-10 23:02:38 +03:00
Spacing and version bump.
This commit is contained in:
parent
4741ad3a7e
commit
b96aa2fb5c
@ -192,7 +192,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
memset(&v, 0, sizeof(v));
|
memset(&v, 0, sizeof(v));
|
||||||
build = BUILD_WINDOWS;
|
build = BUILD_WINDOWS;
|
||||||
|
|
||||||
// validate parameters
|
// validate parameters
|
||||||
opt = 1;
|
opt = 1;
|
||||||
while (opt < argc && *argv[opt] == '-')
|
while (opt < argc && *argv[opt] == '-')
|
||||||
@ -213,7 +213,7 @@ int main(int argc, char *argv[])
|
|||||||
return usage(argv[0]);
|
return usage(argv[0]);
|
||||||
opt++;
|
opt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt != argc-1 )
|
if (opt != argc-1 )
|
||||||
{
|
{
|
||||||
return usage(argv[0]);
|
return usage(argv[0]);
|
||||||
@ -271,7 +271,7 @@ int main(int argc, char *argv[])
|
|||||||
v.internal_name = "MAMEUI";
|
v.internal_name = "MAMEUI";
|
||||||
v.original_filename = "MAMEUI";
|
v.original_filename = "MAMEUI";
|
||||||
v.product_name = "MAMEUI";
|
v.product_name = "MAMEUI";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// MAME
|
// MAME
|
||||||
|
@ -3962,7 +3962,7 @@ static const struct dasm_s dasmXX_7807[256] =
|
|||||||
* uPD7801
|
* uPD7801
|
||||||
*
|
*
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
||||||
static const struct dasm_s dasm48_7801[256] = {
|
static const struct dasm_s dasm48_7801[256] = {
|
||||||
/* 0x00 - 0x3F */
|
/* 0x00 - 0x3F */
|
||||||
{ SKIT, "F0" }, { SKIT, "FT" }, { SKIT, "F1" }, { SKIT, "F2" },
|
{ SKIT, "F0" }, { SKIT, "FT" }, { SKIT, "F1" }, { SKIT, "F2" },
|
||||||
@ -4567,43 +4567,43 @@ static const struct dasm_s dasm74_7801[256] = {
|
|||||||
|
|
||||||
static const struct dasm_s dasmXX_7801[256] = {
|
static const struct dasm_s dasmXX_7801[256] = {
|
||||||
/* 0x00 - 0x3F */
|
/* 0x00 - 0x3F */
|
||||||
{ NOP, 0 }, { HALT, 0 }, { INX, "SP" }, { DCX, "SP" },
|
{ NOP, 0 }, { HALT, 0 }, { INX, "SP" }, { DCX, "SP" },
|
||||||
{ LXI, "SP,%w" }, { ANIW, "%a,%b" }, { illegal, 0 }, { ANI, "A,%b" },
|
{ LXI, "SP,%w" }, { ANIW, "%a,%b" }, { illegal, 0 }, { ANI, "A,%b" },
|
||||||
{ RET, 0 }, { SIO, 0 }, { MOV, "A,B" }, { MOV, "A,C" },
|
{ RET, 0 }, { SIO, 0 }, { MOV, "A,B" }, { MOV, "A,C" },
|
||||||
{ MOV, "A,D" }, { MOV, "A,E" }, { MOV, "A,H" }, { MOV, "A,L" },
|
{ MOV, "A,D" }, { MOV, "A,E" }, { MOV, "A,H" }, { MOV, "A,L" },
|
||||||
|
|
||||||
{ EX, 0 }, { EXX, 0 }, { INX, "BC" }, { DCX, "BC" },
|
{ EX, 0 }, { EXX, 0 }, { INX, "BC" }, { DCX, "BC" },
|
||||||
{ LXI, "BC,%w" }, { ORIW, "%a,%b" }, { XRI, "A,%b" }, { ORI, "A,%b" },
|
{ LXI, "BC,%w" }, { ORIW, "%a,%b" }, { XRI, "A,%b" }, { ORI, "A,%b" },
|
||||||
{ RETS, 0 }, { STM, 0 }, { MOV, "B,A" }, { MOV, "C,A" },
|
{ RETS, 0 }, { STM, 0 }, { MOV, "B,A" }, { MOV, "C,A" },
|
||||||
{ MOV, "D,A" }, { MOV, "E,A" }, { MOV, "H,A" }, { MOV, "L,A" },
|
{ MOV, "D,A" }, { MOV, "E,A" }, { MOV, "H,A" }, { MOV, "L,A" },
|
||||||
|
|
||||||
{ INRW, "%a" }, { TABLE, 0 }, { INX, "DE" }, { DCX, "DE" },
|
{ INRW, "%a" }, { TABLE, 0 }, { INX, "DE" }, { DCX, "DE" },
|
||||||
{ LXI, "DE,%w" }, { GTIW, "%a,%b" }, { ADINC, "A,%b" }, { GTI, "A,%b" },
|
{ LXI, "DE,%w" }, { GTIW, "%a,%b" }, { ADINC, "A,%b" }, { GTI, "A,%b" },
|
||||||
{ LDAW, "%a" }, { LDAX, "BC" }, { LDAX, "DE" }, { LDAX, "HL" },
|
{ LDAW, "%a" }, { LDAX, "BC" }, { LDAX, "DE" }, { LDAX, "HL" },
|
||||||
{ LDAX, "DE+" }, { LDAX, "HL+" }, { LDAX, "DE-" }, { LDAX, "HL-" },
|
{ LDAX, "DE+" }, { LDAX, "HL+" }, { LDAX, "DE-" }, { LDAX, "HL-" },
|
||||||
|
|
||||||
{ DCRW, "%a" }, { BLOCK, 0 }, { INX, "HL" }, { DCX, "HL" },
|
{ DCRW, "%a" }, { BLOCK, 0 }, { INX, "HL" }, { DCX, "HL" },
|
||||||
{ LXI, "HL,%w" }, { LTIW, "%a,%b" }, { SUINB, "A,%b" }, { LTI, "A,%b" },
|
{ LXI, "HL,%w" }, { LTIW, "%a,%b" }, { SUINB, "A,%b" }, { LTI, "A,%b" },
|
||||||
{ STAW, "%a" }, { STAX, "BC" }, { STAX, "DE" }, { STAX, "HL" },
|
{ STAW, "%a" }, { STAX, "BC" }, { STAX, "DE" }, { STAX, "HL" },
|
||||||
{ STAX, "DE+" }, { STAX, "HL+" }, { STAX, "DE-" }, { STAX, "HL-" },
|
{ STAX, "DE+" }, { STAX, "HL+" }, { STAX, "DE-" }, { STAX, "HL-" },
|
||||||
|
|
||||||
/* 0x40 - 0x7F */
|
/* 0x40 - 0x7F */
|
||||||
{ illegal, 0 }, { INR, "A" }, { INR, "B" }, { INR, "C" },
|
{ illegal, 0 }, { INR, "A" }, { INR, "B" }, { INR, "C" },
|
||||||
{ CALL, "%w" }, { ONIW, "%a,%b" }, { ADI, "A,%b" }, { ONI, "A,%b" },
|
{ CALL, "%w" }, { ONIW, "%a,%b" }, { ADI, "A,%b" }, { ONI, "A,%b" },
|
||||||
{ 0, dasm48_7801 }, { MVIX, "BC,%b" }, { MVIX, "DE,%b" }, { MVIX, "HL,%b" },
|
{ 0, dasm48_7801 }, { MVIX, "BC,%b" }, { MVIX, "DE,%b" }, { MVIX, "HL,%b" },
|
||||||
{ 0, dasm4c_7801 }, { 0, dasm4d_7801 }, { JRE, "%d" }, { JRE, "%d" },
|
{ 0, dasm4c_7801 }, { 0, dasm4d_7801 }, { JRE, "%d" }, { JRE, "%d" },
|
||||||
|
|
||||||
{ illegal, 0 }, { DCR, "A" }, { DCR, "B" }, { DCR, "C" },
|
{ illegal, 0 }, { DCR, "A" }, { DCR, "B" }, { DCR, "C" },
|
||||||
{ JMP, "%w" }, { OFFIW, "%a,%b" }, { ACI, "A,%b" }, { OFFI, "A,%b" },
|
{ JMP, "%w" }, { OFFIW, "%a,%b" }, { ACI, "A,%b" }, { OFFI, "A,%b" },
|
||||||
{ BIT, "0,%a" }, { BIT, "1,%a" }, { BIT," 2,%a" }, { BIT, "3,%a" },
|
{ BIT, "0,%a" }, { BIT, "1,%a" }, { BIT," 2,%a" }, { BIT, "3,%a" },
|
||||||
{ BIT, "4,%a" }, { BIT, "5,%a" }, { BIT, "6,%a" }, { BIT, "7,%a" },
|
{ BIT, "4,%a" }, { BIT, "5,%a" }, { BIT, "6,%a" }, { BIT, "7,%a" },
|
||||||
|
|
||||||
{ 0, dasm60_7801 }, { DAA, 0 }, { RETI, 0 }, { CALB, 0 },
|
{ 0, dasm60_7801 }, { DAA, 0 }, { RETI, 0 }, { CALB, 0 },
|
||||||
{ 0, dasm64_7801 }, { NEIW, "%a,%b" }, { SUI, "A,%b" }, { NEI, "A,%b" },
|
{ 0, dasm64_7801 }, { NEIW, "%a,%b" }, { SUI, "A,%b" }, { NEI, "A,%b" },
|
||||||
{ MVI, "V,%b?" }, { MVI, "A,%b" }, { MVI, "B,%b" }, { MVI, "C,%b" },
|
{ MVI, "V,%b?" }, { MVI, "A,%b" }, { MVI, "B,%b" }, { MVI, "C,%b" },
|
||||||
{ MVI, "D,%b" }, { MVI, "E,%b" }, { MVI, "H,%b" }, { MVI, "L,%b" },
|
{ MVI, "D,%b" }, { MVI, "E,%b" }, { MVI, "H,%b" }, { MVI, "L,%b" },
|
||||||
|
|
||||||
{ 0, dasm70_7801 }, { MVIW, "%a,%b" }, { SOFTI, 0 }, { JB, 0 },
|
{ 0, dasm70_7801 }, { MVIW, "%a,%b" }, { SOFTI, 0 }, { JB, 0 },
|
||||||
{ 0, dasm74_7801 }, { EQIW, "%a,%b" }, { SBI, "A,%b" }, { EQI, "A,%b" },
|
{ 0, dasm74_7801 }, { EQIW, "%a,%b" }, { SBI, "A,%b" }, { EQI, "A,%b" },
|
||||||
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
||||||
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
||||||
@ -4656,7 +4656,7 @@ static const struct dasm_s dasmXX_7801[256] = {
|
|||||||
* uPD7801
|
* uPD7801
|
||||||
*
|
*
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
|
|
||||||
static const struct dasm_s dasm48_78c05[256] = {
|
static const struct dasm_s dasm48_78c05[256] = {
|
||||||
/* 0x00 - 0x3F */
|
/* 0x00 - 0x3F */
|
||||||
{ SKIT, "F0" }, { SKIT, "FT" }, { SKIT, "F1" }, { illegal, 0 }, /* TODO: PDF doesn't mention SKIT and SK */
|
{ SKIT, "F0" }, { SKIT, "FT" }, { SKIT, "F1" }, { illegal, 0 }, /* TODO: PDF doesn't mention SKIT and SK */
|
||||||
@ -5261,43 +5261,43 @@ static const struct dasm_s dasm74_78c05[256] = {
|
|||||||
|
|
||||||
static const struct dasm_s dasmXX_78c05[256] = {
|
static const struct dasm_s dasmXX_78c05[256] = {
|
||||||
/* 0x00 - 0x3F */
|
/* 0x00 - 0x3F */
|
||||||
{ NOP, 0 }, { HALT, 0 }, { INX, "SP" }, { DCX, "SP" },
|
{ NOP, 0 }, { HALT, 0 }, { INX, "SP" }, { DCX, "SP" },
|
||||||
{ LXI, "SP,%w" }, { ANIW, "%a,%b" }, { illegal, 0 }, { ANI, "A,%b" },
|
{ LXI, "SP,%w" }, { ANIW, "%a,%b" }, { illegal, 0 }, { ANI, "A,%b" },
|
||||||
{ RET, 0 }, { SIO, 0 }, { MOV, "A,B" }, { MOV, "A,C" },
|
{ RET, 0 }, { SIO, 0 }, { MOV, "A,B" }, { MOV, "A,C" },
|
||||||
{ MOV, "A,D" }, { MOV, "A,E" }, { MOV, "A,H" }, { MOV, "A,L" },
|
{ MOV, "A,D" }, { MOV, "A,E" }, { MOV, "A,H" }, { MOV, "A,L" },
|
||||||
|
|
||||||
{ illegal, 0 }, { illegal, 0 }, { INX, "BC" }, { DCX, "BC" },
|
{ illegal, 0 }, { illegal, 0 }, { INX, "BC" }, { DCX, "BC" },
|
||||||
{ LXI, "BC,%w" }, { ORIW, "%a,%b" }, { XRI, "A,%b" }, { ORI, "A,%b" },
|
{ LXI, "BC,%w" }, { ORIW, "%a,%b" }, { XRI, "A,%b" }, { ORI, "A,%b" },
|
||||||
{ RETS, 0 }, { STM, 0 }, { MOV, "B,A" }, { MOV, "C,A" },
|
{ RETS, 0 }, { STM, 0 }, { MOV, "B,A" }, { MOV, "C,A" },
|
||||||
{ MOV, "D,A" }, { MOV, "E,A" }, { MOV, "H,A" }, { MOV, "L,A" },
|
{ MOV, "D,A" }, { MOV, "E,A" }, { MOV, "H,A" }, { MOV, "L,A" },
|
||||||
|
|
||||||
{ INRW, "%a" }, { illegal, 0 }, { INX, "DE" }, { DCX, "DE" },
|
{ INRW, "%a" }, { illegal, 0 }, { INX, "DE" }, { DCX, "DE" },
|
||||||
{ LXI, "DE,%w" }, { GTIW, "%a,%b" }, { ADINC, "A,%b" }, { GTI, "A,%b" },
|
{ LXI, "DE,%w" }, { GTIW, "%a,%b" }, { ADINC, "A,%b" }, { GTI, "A,%b" },
|
||||||
{ LDAW, "%a" }, { LDAX, "BC" }, { LDAX, "DE" }, { LDAX, "HL" },
|
{ LDAW, "%a" }, { LDAX, "BC" }, { LDAX, "DE" }, { LDAX, "HL" },
|
||||||
{ LDAX, "DE+" }, { LDAX, "HL+" }, { LDAX, "DE-" }, { LDAX, "HL-" },
|
{ LDAX, "DE+" }, { LDAX, "HL+" }, { LDAX, "DE-" }, { LDAX, "HL-" },
|
||||||
|
|
||||||
{ DCRW, "%a" }, { illegal, 0 }, { INX, "HL" }, { DCX, "HL" },
|
{ DCRW, "%a" }, { illegal, 0 }, { INX, "HL" }, { DCX, "HL" },
|
||||||
{ LXI, "HL,%w" }, { LTIW, "%a,%b" }, { SUINB, "A,%b" }, { LTI, "A,%b" },
|
{ LXI, "HL,%w" }, { LTIW, "%a,%b" }, { SUINB, "A,%b" }, { LTI, "A,%b" },
|
||||||
{ STAW, "%a" }, { STAX, "BC" }, { STAX, "DE" }, { STAX, "HL" },
|
{ STAW, "%a" }, { STAX, "BC" }, { STAX, "DE" }, { STAX, "HL" },
|
||||||
{ STAX, "DE+" }, { STAX, "HL+" }, { STAX, "DE-" }, { STAX, "HL-" },
|
{ STAX, "DE+" }, { STAX, "HL+" }, { STAX, "DE-" }, { STAX, "HL-" },
|
||||||
|
|
||||||
/* 0x40 - 0x7F */
|
/* 0x40 - 0x7F */
|
||||||
{ illegal, 0 }, { INR, "A" }, { INR, "B" }, { INR, "C" },
|
{ illegal, 0 }, { INR, "A" }, { INR, "B" }, { INR, "C" },
|
||||||
{ CALL, "%w" }, { ONIW, "%a,%b" }, { ADI, "A,%b" }, { ONI, "A,%b" },
|
{ CALL, "%w" }, { ONIW, "%a,%b" }, { ADI, "A,%b" }, { ONI, "A,%b" },
|
||||||
{ 0, dasm48_78c05 }, { illegal, 0 }, { illegal, 0 }, { illegal, 0 },
|
{ 0, dasm48_78c05 }, { illegal, 0 }, { illegal, 0 }, { illegal, 0 },
|
||||||
{ 0, dasm4c_78c05 }, { 0, dasm4d_78c05 }, { JRE, "%d" }, { JRE, "%d" },
|
{ 0, dasm4c_78c05 }, { 0, dasm4d_78c05 }, { JRE, "%d" }, { JRE, "%d" },
|
||||||
|
|
||||||
{ illegal, 0 }, { DCR, "A" }, { DCR, "B" }, { DCR, "C" },
|
{ illegal, 0 }, { DCR, "A" }, { DCR, "B" }, { DCR, "C" },
|
||||||
{ JMP, "%w" }, { OFFIW, "%a,%b" }, { ACI, "A,%b" }, { OFFI, "A,%b" },
|
{ JMP, "%w" }, { OFFIW, "%a,%b" }, { ACI, "A,%b" }, { OFFI, "A,%b" },
|
||||||
{ illegal, 0 }, { illegal, 0 }, { illegal, 0 }, { illegal, 0 },
|
{ illegal, 0 }, { illegal, 0 }, { illegal, 0 }, { illegal, 0 },
|
||||||
{ illegal, 0 }, { illegal, 0 }, { illegal, 0 }, { illegal, 0 },
|
{ illegal, 0 }, { illegal, 0 }, { illegal, 0 }, { illegal, 0 },
|
||||||
|
|
||||||
{ 0, dasm60_78c05 }, { DAA, 0 }, { RETI, 0 }, { CALB, 0 },
|
{ 0, dasm60_78c05 }, { DAA, 0 }, { RETI, 0 }, { CALB, 0 },
|
||||||
{ 0, dasm64_78c05 }, { NEIW, "%a,%b" }, { SUI, "A,%b" }, { NEI, "A,%b" },
|
{ 0, dasm64_78c05 }, { NEIW, "%a,%b" }, { SUI, "A,%b" }, { NEI, "A,%b" },
|
||||||
{ illegal, 0 }, { MVI, "A,%b" }, { MVI, "B,%b" }, { MVI, "C,%b" },
|
{ illegal, 0 }, { MVI, "A,%b" }, { MVI, "B,%b" }, { MVI, "C,%b" },
|
||||||
{ MVI, "D,%b" }, { MVI, "E,%b" }, { MVI, "H,%b" }, { MVI, "L,%b" },
|
{ MVI, "D,%b" }, { MVI, "E,%b" }, { MVI, "H,%b" }, { MVI, "L,%b" },
|
||||||
|
|
||||||
{ 0, dasm70_78c05 }, { MVIW, "%a,%b" }, { SOFTI, 0 }, { JB, 0 },
|
{ 0, dasm70_78c05 }, { MVIW, "%a,%b" }, { SOFTI, 0 }, { JB, 0 },
|
||||||
{ 0, dasm74_78c05 }, { EQIW, "%a,%b" }, { SBI, "A,%b" }, { EQI, "A,%b" },
|
{ 0, dasm74_78c05 }, { EQIW, "%a,%b" }, { SBI, "A,%b" }, { EQI, "A,%b" },
|
||||||
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
||||||
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
{ CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" }, { CALF, "%f" },
|
||||||
|
@ -3538,7 +3538,7 @@ static const struct opcode_s opXX_7807[256] =
|
|||||||
* uPD7801
|
* uPD7801
|
||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
static const struct opcode_s op48_7801[256] =
|
static const struct opcode_s op48_7801[256] =
|
||||||
{
|
{
|
||||||
/* 0x00 - 0x1F */
|
/* 0x00 - 0x1F */
|
||||||
@ -3645,7 +3645,7 @@ static const struct opcode_s op48_7801[256] =
|
|||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
|
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
@ -4896,7 +4896,7 @@ static const struct opcode_s op48_78c05[256] =
|
|||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
|
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
@ -5022,7 +5022,7 @@ static const struct opcode_s op4C_78c05[256] =
|
|||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
|
|
||||||
/* 0x80 - 0x9F */
|
/* 0x80 - 0x9F */
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
{illegal2, 2, 8, 8,L0|L1}, {illegal2, 2, 8, 8,L0|L1},
|
||||||
@ -6146,7 +6146,7 @@ static const struct opcode_s op48_78c06[256] =
|
|||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
|
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
@ -6272,7 +6272,7 @@ static const struct opcode_s op4C_78c06[256] =
|
|||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
|
|
||||||
/* 0x80 - 0x9F */
|
/* 0x80 - 0x9F */
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
{illegal2, 2,12,12,L0|L1}, {illegal2, 2,12,12,L0|L1},
|
||||||
|
@ -1522,7 +1522,7 @@ static void upd78c05_timers(int cycles)
|
|||||||
if (upd7810.config.io_callback)
|
if (upd7810.config.io_callback)
|
||||||
(*upd7810.config.io_callback)(UPD7810_TO,TO);
|
(*upd7810.config.io_callback)(UPD7810_TO,TO);
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( upd7810.ovc0 <= 0 ) {
|
while ( upd7810.ovc0 <= 0 ) {
|
||||||
upd7810.ovc0 += ( ( TMM & 0x04 ) ? 16 * 8 : 8 ) * TM0;
|
upd7810.ovc0 += ( ( TMM & 0x04 ) ? 16 * 8 : 8 ) * TM0;
|
||||||
}
|
}
|
||||||
|
@ -744,7 +744,7 @@ static void print_game_display(FILE *out, const game_driver *game, const machine
|
|||||||
/* and had raw parameters specified */
|
/* and had raw parameters specified */
|
||||||
if ((scrconfig->type != SCREEN_TYPE_VECTOR) && !scrconfig->defstate.oldstyle_vblank_supplied)
|
if ((scrconfig->type != SCREEN_TYPE_VECTOR) && !scrconfig->defstate.oldstyle_vblank_supplied)
|
||||||
{
|
{
|
||||||
int pixclock = scrconfig->defstate.width * scrconfig->defstate.height
|
int pixclock = scrconfig->defstate.width * scrconfig->defstate.height
|
||||||
* ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh);
|
* ATTOSECONDS_TO_HZ(scrconfig->defstate.refresh);
|
||||||
|
|
||||||
fprintf(out, " pixclock=\"%d\"", pixclock);
|
fprintf(out, " pixclock=\"%d\"", pixclock);
|
||||||
|
@ -1935,7 +1935,7 @@ static void input_port_detokenize(input_port_init_params *param, const input_por
|
|||||||
while (entrytype != INPUT_TOKEN_END)
|
while (entrytype != INPUT_TOKEN_END)
|
||||||
{
|
{
|
||||||
UINT32 mask, defval, type, val;
|
UINT32 mask, defval, type, val;
|
||||||
|
|
||||||
/* unpack the token from the first entry */
|
/* unpack the token from the first entry */
|
||||||
TOKEN_GET_UINT32_UNPACK1(ipt, entrytype, 8);
|
TOKEN_GET_UINT32_UNPACK1(ipt, entrytype, 8);
|
||||||
switch (entrytype)
|
switch (entrytype)
|
||||||
|
@ -791,13 +791,13 @@ struct _ext_inp_header
|
|||||||
|
|
||||||
#define PORT_DIPSETTING(_default,_name) \
|
#define PORT_DIPSETTING(_default,_name) \
|
||||||
TOKEN_UINT64_PACK2(INPUT_TOKEN_DIPSETTING, 8, _default, 32), \
|
TOKEN_UINT64_PACK2(INPUT_TOKEN_DIPSETTING, 8, _default, 32), \
|
||||||
TOKEN_STRING(_name),
|
TOKEN_STRING(_name),
|
||||||
|
|
||||||
/* physical location, of the form: name:[!]sw,[name:][!]sw,... */
|
/* physical location, of the form: name:[!]sw,[name:][!]sw,... */
|
||||||
/* note that these are specified LSB-first */
|
/* note that these are specified LSB-first */
|
||||||
#define PORT_DIPLOCATION(_location) \
|
#define PORT_DIPLOCATION(_location) \
|
||||||
TOKEN_UINT32_PACK1(INPUT_TOKEN_DIPLOCATION, 8), \
|
TOKEN_UINT32_PACK1(INPUT_TOKEN_DIPLOCATION, 8), \
|
||||||
TOKEN_STRING(_location),
|
TOKEN_STRING(_location),
|
||||||
|
|
||||||
/* conditionals for dip switch settings */
|
/* conditionals for dip switch settings */
|
||||||
#define PORT_CONDITION(_tag,_mask,_condition,_value) \
|
#define PORT_CONDITION(_tag,_mask,_condition,_value) \
|
||||||
@ -808,7 +808,7 @@ struct _ext_inp_header
|
|||||||
/* analog adjuster definition */
|
/* analog adjuster definition */
|
||||||
#define PORT_ADJUSTER(_default,_name) \
|
#define PORT_ADJUSTER(_default,_name) \
|
||||||
TOKEN_UINT64_PACK2(INPUT_TOKEN_ADJUSTER, 8, _default, 32), \
|
TOKEN_UINT64_PACK2(INPUT_TOKEN_ADJUSTER, 8, _default, 32), \
|
||||||
TOKEN_STRING(_name),
|
TOKEN_STRING(_name),
|
||||||
|
|
||||||
/* config definition */
|
/* config definition */
|
||||||
#define PORT_CONFNAME(_mask,_default,_name) \
|
#define PORT_CONFNAME(_mask,_default,_name) \
|
||||||
@ -818,7 +818,7 @@ struct _ext_inp_header
|
|||||||
|
|
||||||
#define PORT_CONFSETTING(_default,_name) \
|
#define PORT_CONFSETTING(_default,_name) \
|
||||||
TOKEN_UINT64_PACK2(INPUT_TOKEN_CONFSETTING, 8, _default, 32), \
|
TOKEN_UINT64_PACK2(INPUT_TOKEN_CONFSETTING, 8, _default, 32), \
|
||||||
TOKEN_STRING(_name),
|
TOKEN_STRING(_name),
|
||||||
|
|
||||||
#ifdef MESS
|
#ifdef MESS
|
||||||
/* keyboard chars */
|
/* keyboard chars */
|
||||||
@ -836,7 +836,7 @@ struct _ext_inp_header
|
|||||||
|
|
||||||
#define PORT_CATEGORY_ITEM(_default,_name) \
|
#define PORT_CATEGORY_ITEM(_default,_name) \
|
||||||
TOKEN_UINT64_PACK2(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32), \
|
TOKEN_UINT64_PACK2(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32), \
|
||||||
TOKEN_STRING(_name),
|
TOKEN_STRING(_name),
|
||||||
#endif /* MESS */
|
#endif /* MESS */
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,13 +35,13 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
machine_config *machine_config_alloc(const machine_config_token *tokens)
|
machine_config *machine_config_alloc(const machine_config_token *tokens)
|
||||||
{
|
{
|
||||||
machine_config *config;
|
machine_config *config;
|
||||||
|
|
||||||
/* allocate a new configuration object */
|
/* allocate a new configuration object */
|
||||||
config = malloc_or_die(sizeof(*config));
|
config = malloc_or_die(sizeof(*config));
|
||||||
if (config == NULL)
|
if (config == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
memset(config, 0, sizeof(*config));
|
memset(config, 0, sizeof(*config));
|
||||||
|
|
||||||
/* parse tokens into the config */
|
/* parse tokens into the config */
|
||||||
machine_config_detokenize(config, tokens);
|
machine_config_detokenize(config, tokens);
|
||||||
return config;
|
return config;
|
||||||
@ -203,7 +203,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
device_config *device = NULL;
|
device_config *device = NULL;
|
||||||
cpu_config *cpu = NULL;
|
cpu_config *cpu = NULL;
|
||||||
sound_config *sound = NULL;
|
sound_config *sound = NULL;
|
||||||
|
|
||||||
/* loop over tokens until we hit the end */
|
/* loop over tokens until we hit the end */
|
||||||
while (entrytype != MCONFIG_TOKEN_END)
|
while (entrytype != MCONFIG_TOKEN_END)
|
||||||
{
|
{
|
||||||
@ -212,7 +212,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
int size, offset, type, bits;
|
int size, offset, type, bits;
|
||||||
UINT32 data32, clock, gain;
|
UINT32 data32, clock, gain;
|
||||||
UINT64 data64;
|
UINT64 data64;
|
||||||
|
|
||||||
/* unpack the token from the first entry */
|
/* unpack the token from the first entry */
|
||||||
TOKEN_GET_UINT32_UNPACK1(tokens, entrytype, 8);
|
TOKEN_GET_UINT32_UNPACK1(tokens, entrytype, 8);
|
||||||
switch (entrytype)
|
switch (entrytype)
|
||||||
@ -220,19 +220,19 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
/* end */
|
/* end */
|
||||||
case MCONFIG_TOKEN_END:
|
case MCONFIG_TOKEN_END:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* including */
|
/* including */
|
||||||
case MCONFIG_TOKEN_INCLUDE:
|
case MCONFIG_TOKEN_INCLUDE:
|
||||||
machine_config_detokenize(config, TOKEN_GET_PTR(tokens, tokenptr));
|
machine_config_detokenize(config, TOKEN_GET_PTR(tokens, tokenptr));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* device management */
|
/* device management */
|
||||||
case MCONFIG_TOKEN_DEVICE_ADD:
|
case MCONFIG_TOKEN_DEVICE_ADD:
|
||||||
devtype = TOKEN_GET_PTR(tokens, devtype);
|
devtype = TOKEN_GET_PTR(tokens, devtype);
|
||||||
tag = TOKEN_GET_STRING(tokens);
|
tag = TOKEN_GET_STRING(tokens);
|
||||||
device = device_list_add(&config->devicelist, devtype, tag);
|
device = device_list_add(&config->devicelist, devtype, tag);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_DEVICE_REMOVE:
|
case MCONFIG_TOKEN_DEVICE_REMOVE:
|
||||||
devtype = TOKEN_GET_PTR(tokens, devtype);
|
devtype = TOKEN_GET_PTR(tokens, devtype);
|
||||||
tag = TOKEN_GET_STRING(tokens);
|
tag = TOKEN_GET_STRING(tokens);
|
||||||
@ -247,12 +247,12 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
if (device == NULL)
|
if (device == NULL)
|
||||||
fatalerror("Unable to find device: type=%s tag=%s\n", devtype_name(devtype), tag);
|
fatalerror("Unable to find device: type=%s tag=%s\n", devtype_name(devtype), tag);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_DEVICE_CONFIG:
|
case MCONFIG_TOKEN_DEVICE_CONFIG:
|
||||||
assert(device != NULL);
|
assert(device != NULL);
|
||||||
device->static_config = TOKEN_GET_PTR(tokens, voidptr);
|
device->static_config = TOKEN_GET_PTR(tokens, voidptr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_DEVICE_CONFIG_DATA32:
|
case MCONFIG_TOKEN_DEVICE_CONFIG_DATA32:
|
||||||
assert(device != NULL);
|
assert(device != NULL);
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
@ -265,7 +265,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
case 4: *(UINT32 *)((UINT8 *)device->inline_config + offset) = data32; break;
|
case 4: *(UINT32 *)((UINT8 *)device->inline_config + offset) = data32; break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_DEVICE_CONFIG_DATA64:
|
case MCONFIG_TOKEN_DEVICE_CONFIG_DATA64:
|
||||||
assert(device != NULL);
|
assert(device != NULL);
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
@ -303,7 +303,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
case 8: *(double *)((UINT8 *)device->inline_config + offset) = (double)(INT64)data64 / (double)((UINT64)1 << bits); break;
|
case 8: *(double *)((UINT8 *)device->inline_config + offset) = (double)(INT64)data64 / (double)((UINT64)1 << bits); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
/* add/modify/remove/replace CPUs */
|
/* add/modify/remove/replace CPUs */
|
||||||
case MCONFIG_TOKEN_CPU_ADD:
|
case MCONFIG_TOKEN_CPU_ADD:
|
||||||
@ -312,7 +312,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
tag = TOKEN_GET_STRING(tokens);
|
tag = TOKEN_GET_STRING(tokens);
|
||||||
cpu = machine_config_add_cpu(config, tag, type, clock);
|
cpu = machine_config_add_cpu(config, tag, type, clock);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_MODIFY:
|
case MCONFIG_TOKEN_CPU_MODIFY:
|
||||||
tag = TOKEN_GET_STRING(tokens);
|
tag = TOKEN_GET_STRING(tokens);
|
||||||
cpu = machine_config_find_cpu(config, tag);
|
cpu = machine_config_find_cpu(config, tag);
|
||||||
@ -341,37 +341,37 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, cpu->flags, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, cpu->flags, 24);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_CONFIG:
|
case MCONFIG_TOKEN_CPU_CONFIG:
|
||||||
assert(cpu != NULL);
|
assert(cpu != NULL);
|
||||||
cpu->reset_param = TOKEN_GET_PTR(tokens, voidptr);
|
cpu->reset_param = TOKEN_GET_PTR(tokens, voidptr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_PROGRAM_MAP:
|
case MCONFIG_TOKEN_CPU_PROGRAM_MAP:
|
||||||
assert(cpu != NULL);
|
assert(cpu != NULL);
|
||||||
cpu->construct_map[ADDRESS_SPACE_PROGRAM][0] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
cpu->construct_map[ADDRESS_SPACE_PROGRAM][0] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
||||||
cpu->construct_map[ADDRESS_SPACE_PROGRAM][1] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
cpu->construct_map[ADDRESS_SPACE_PROGRAM][1] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_DATA_MAP:
|
case MCONFIG_TOKEN_CPU_DATA_MAP:
|
||||||
assert(cpu != NULL);
|
assert(cpu != NULL);
|
||||||
cpu->construct_map[ADDRESS_SPACE_DATA][0] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
cpu->construct_map[ADDRESS_SPACE_DATA][0] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
||||||
cpu->construct_map[ADDRESS_SPACE_DATA][1] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
cpu->construct_map[ADDRESS_SPACE_DATA][1] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_IO_MAP:
|
case MCONFIG_TOKEN_CPU_IO_MAP:
|
||||||
assert(cpu != NULL);
|
assert(cpu != NULL);
|
||||||
cpu->construct_map[ADDRESS_SPACE_IO][0] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
cpu->construct_map[ADDRESS_SPACE_IO][0] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
||||||
cpu->construct_map[ADDRESS_SPACE_IO][1] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
cpu->construct_map[ADDRESS_SPACE_IO][1] = (construct_map_t)TOKEN_GET_PTR(tokens, voidptr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_VBLANK_INT:
|
case MCONFIG_TOKEN_CPU_VBLANK_INT:
|
||||||
assert(cpu != NULL);
|
assert(cpu != NULL);
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, cpu->vblank_interrupts_per_frame, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, cpu->vblank_interrupts_per_frame, 24);
|
||||||
cpu->vblank_interrupt = TOKEN_GET_PTR(tokens, interrupt);
|
cpu->vblank_interrupt = TOKEN_GET_PTR(tokens, interrupt);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_CPU_PERIODIC_INT:
|
case MCONFIG_TOKEN_CPU_PERIODIC_INT:
|
||||||
assert(cpu != NULL);
|
assert(cpu != NULL);
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
@ -379,94 +379,94 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
cpu->timed_interrupt_period = HZ_TO_ATTOSECONDS(data32);
|
cpu->timed_interrupt_period = HZ_TO_ATTOSECONDS(data32);
|
||||||
cpu->timed_interrupt = TOKEN_GET_PTR(tokens, interrupt);
|
cpu->timed_interrupt = TOKEN_GET_PTR(tokens, interrupt);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* core parameters */
|
/* core parameters */
|
||||||
case MCONFIG_TOKEN_DRIVER_DATA:
|
case MCONFIG_TOKEN_DRIVER_DATA:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->driver_data_size, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->driver_data_size, 24);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_INTERLEAVE:
|
case MCONFIG_TOKEN_INTERLEAVE:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->cpu_slices_per_frame, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->cpu_slices_per_frame, 24);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_WATCHDOG_VBLANK:
|
case MCONFIG_TOKEN_WATCHDOG_VBLANK:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->watchdog_vblank_count, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->watchdog_vblank_count, 24);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_WATCHDOG_TIME:
|
case MCONFIG_TOKEN_WATCHDOG_TIME:
|
||||||
TOKEN_EXTRACT_UINT64(tokens, data64);
|
TOKEN_EXTRACT_UINT64(tokens, data64);
|
||||||
config->watchdog_time = UINT64_ATTOTIME_TO_ATTOTIME(data64);
|
config->watchdog_time = UINT64_ATTOTIME_TO_ATTOTIME(data64);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* core functions */
|
/* core functions */
|
||||||
case MCONFIG_TOKEN_MACHINE_START:
|
case MCONFIG_TOKEN_MACHINE_START:
|
||||||
config->machine_start = TOKEN_GET_PTR(tokens, machine_start);
|
config->machine_start = TOKEN_GET_PTR(tokens, machine_start);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_MACHINE_RESET:
|
case MCONFIG_TOKEN_MACHINE_RESET:
|
||||||
config->machine_reset = TOKEN_GET_PTR(tokens, machine_reset);
|
config->machine_reset = TOKEN_GET_PTR(tokens, machine_reset);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_NVRAM_HANDLER:
|
case MCONFIG_TOKEN_NVRAM_HANDLER:
|
||||||
config->nvram_handler = TOKEN_GET_PTR(tokens, nvram_handler);
|
config->nvram_handler = TOKEN_GET_PTR(tokens, nvram_handler);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_MEMCARD_HANDLER:
|
case MCONFIG_TOKEN_MEMCARD_HANDLER:
|
||||||
config->memcard_handler = TOKEN_GET_PTR(tokens, memcard_handler);
|
config->memcard_handler = TOKEN_GET_PTR(tokens, memcard_handler);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* core video parameters */
|
/* core video parameters */
|
||||||
case MCONFIG_TOKEN_VIDEO_ATTRIBUTES:
|
case MCONFIG_TOKEN_VIDEO_ATTRIBUTES:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->video_attributes, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->video_attributes, 24);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_GFXDECODE:
|
case MCONFIG_TOKEN_GFXDECODE:
|
||||||
config->gfxdecodeinfo = TOKEN_GET_PTR(tokens, gfxdecode);
|
config->gfxdecodeinfo = TOKEN_GET_PTR(tokens, gfxdecode);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_PALETTE_LENGTH:
|
case MCONFIG_TOKEN_PALETTE_LENGTH:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->total_colors, 24);
|
TOKEN_GET_UINT32_UNPACK2(tokens, entrytype, 8, config->total_colors, 24);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_DEFAULT_LAYOUT:
|
case MCONFIG_TOKEN_DEFAULT_LAYOUT:
|
||||||
config->default_layout = TOKEN_GET_STRING(tokens);
|
config->default_layout = TOKEN_GET_STRING(tokens);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* core video functions */
|
/* core video functions */
|
||||||
case MCONFIG_TOKEN_PALETTE_INIT:
|
case MCONFIG_TOKEN_PALETTE_INIT:
|
||||||
config->init_palette = TOKEN_GET_PTR(tokens, palette_init);
|
config->init_palette = TOKEN_GET_PTR(tokens, palette_init);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_VIDEO_START:
|
case MCONFIG_TOKEN_VIDEO_START:
|
||||||
config->video_start = TOKEN_GET_PTR(tokens, video_start);
|
config->video_start = TOKEN_GET_PTR(tokens, video_start);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_VIDEO_RESET:
|
case MCONFIG_TOKEN_VIDEO_RESET:
|
||||||
config->video_reset = TOKEN_GET_PTR(tokens, video_reset);
|
config->video_reset = TOKEN_GET_PTR(tokens, video_reset);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_VIDEO_EOF:
|
case MCONFIG_TOKEN_VIDEO_EOF:
|
||||||
config->video_eof = TOKEN_GET_PTR(tokens, video_eof);
|
config->video_eof = TOKEN_GET_PTR(tokens, video_eof);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_VIDEO_UPDATE:
|
case MCONFIG_TOKEN_VIDEO_UPDATE:
|
||||||
config->video_update = TOKEN_GET_PTR(tokens, video_update);
|
config->video_update = TOKEN_GET_PTR(tokens, video_update);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* core sound functions */
|
/* core sound functions */
|
||||||
case MCONFIG_TOKEN_SOUND_START:
|
case MCONFIG_TOKEN_SOUND_START:
|
||||||
config->sound_start = TOKEN_GET_PTR(tokens, sound_start);
|
config->sound_start = TOKEN_GET_PTR(tokens, sound_start);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_SOUND_RESET:
|
case MCONFIG_TOKEN_SOUND_RESET:
|
||||||
config->sound_reset = TOKEN_GET_PTR(tokens, sound_reset);
|
config->sound_reset = TOKEN_GET_PTR(tokens, sound_reset);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* add/remove/replace sounds */
|
/* add/remove/replace sounds */
|
||||||
case MCONFIG_TOKEN_SOUND_ADD:
|
case MCONFIG_TOKEN_SOUND_ADD:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
@ -478,7 +478,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
case MCONFIG_TOKEN_SOUND_REMOVE:
|
case MCONFIG_TOKEN_SOUND_REMOVE:
|
||||||
machine_config_remove_sound(config, TOKEN_GET_STRING(tokens));
|
machine_config_remove_sound(config, TOKEN_GET_STRING(tokens));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_SOUND_MODIFY:
|
case MCONFIG_TOKEN_SOUND_MODIFY:
|
||||||
tag = TOKEN_GET_STRING(tokens);
|
tag = TOKEN_GET_STRING(tokens);
|
||||||
sound = machine_config_find_sound(config, tag);
|
sound = machine_config_find_sound(config, tag);
|
||||||
@ -486,12 +486,12 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
fatalerror("Unable to find sound: tag=%s\n", tag);
|
fatalerror("Unable to find sound: tag=%s\n", tag);
|
||||||
sound->routes = 0;
|
sound->routes = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_SOUND_CONFIG:
|
case MCONFIG_TOKEN_SOUND_CONFIG:
|
||||||
assert(sound != NULL);
|
assert(sound != NULL);
|
||||||
sound->config = TOKEN_GET_PTR(tokens, voidptr);
|
sound->config = TOKEN_GET_PTR(tokens, voidptr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MCONFIG_TOKEN_SOUND_REPLACE:
|
case MCONFIG_TOKEN_SOUND_REPLACE:
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT64_UNPACK3(tokens, entrytype, 8, type, 24, clock, 32);
|
TOKEN_GET_UINT64_UNPACK3(tokens, entrytype, 8, type, 24, clock, 32);
|
||||||
|
@ -28,7 +28,7 @@ enum
|
|||||||
MCONFIG_TOKEN_INVALID,
|
MCONFIG_TOKEN_INVALID,
|
||||||
MCONFIG_TOKEN_END,
|
MCONFIG_TOKEN_END,
|
||||||
MCONFIG_TOKEN_INCLUDE,
|
MCONFIG_TOKEN_INCLUDE,
|
||||||
|
|
||||||
MCONFIG_TOKEN_DEVICE_ADD,
|
MCONFIG_TOKEN_DEVICE_ADD,
|
||||||
MCONFIG_TOKEN_DEVICE_REMOVE,
|
MCONFIG_TOKEN_DEVICE_REMOVE,
|
||||||
MCONFIG_TOKEN_DEVICE_MODIFY,
|
MCONFIG_TOKEN_DEVICE_MODIFY,
|
||||||
@ -49,31 +49,31 @@ enum
|
|||||||
MCONFIG_TOKEN_CPU_IO_MAP,
|
MCONFIG_TOKEN_CPU_IO_MAP,
|
||||||
MCONFIG_TOKEN_CPU_VBLANK_INT,
|
MCONFIG_TOKEN_CPU_VBLANK_INT,
|
||||||
MCONFIG_TOKEN_CPU_PERIODIC_INT,
|
MCONFIG_TOKEN_CPU_PERIODIC_INT,
|
||||||
|
|
||||||
MCONFIG_TOKEN_DRIVER_DATA,
|
MCONFIG_TOKEN_DRIVER_DATA,
|
||||||
MCONFIG_TOKEN_INTERLEAVE,
|
MCONFIG_TOKEN_INTERLEAVE,
|
||||||
MCONFIG_TOKEN_WATCHDOG_VBLANK,
|
MCONFIG_TOKEN_WATCHDOG_VBLANK,
|
||||||
MCONFIG_TOKEN_WATCHDOG_TIME,
|
MCONFIG_TOKEN_WATCHDOG_TIME,
|
||||||
|
|
||||||
MCONFIG_TOKEN_MACHINE_START,
|
MCONFIG_TOKEN_MACHINE_START,
|
||||||
MCONFIG_TOKEN_MACHINE_RESET,
|
MCONFIG_TOKEN_MACHINE_RESET,
|
||||||
MCONFIG_TOKEN_NVRAM_HANDLER,
|
MCONFIG_TOKEN_NVRAM_HANDLER,
|
||||||
MCONFIG_TOKEN_MEMCARD_HANDLER,
|
MCONFIG_TOKEN_MEMCARD_HANDLER,
|
||||||
|
|
||||||
MCONFIG_TOKEN_VIDEO_ATTRIBUTES,
|
MCONFIG_TOKEN_VIDEO_ATTRIBUTES,
|
||||||
MCONFIG_TOKEN_GFXDECODE,
|
MCONFIG_TOKEN_GFXDECODE,
|
||||||
MCONFIG_TOKEN_PALETTE_LENGTH,
|
MCONFIG_TOKEN_PALETTE_LENGTH,
|
||||||
MCONFIG_TOKEN_DEFAULT_LAYOUT,
|
MCONFIG_TOKEN_DEFAULT_LAYOUT,
|
||||||
|
|
||||||
MCONFIG_TOKEN_PALETTE_INIT,
|
MCONFIG_TOKEN_PALETTE_INIT,
|
||||||
MCONFIG_TOKEN_VIDEO_START,
|
MCONFIG_TOKEN_VIDEO_START,
|
||||||
MCONFIG_TOKEN_VIDEO_RESET,
|
MCONFIG_TOKEN_VIDEO_RESET,
|
||||||
MCONFIG_TOKEN_VIDEO_EOF,
|
MCONFIG_TOKEN_VIDEO_EOF,
|
||||||
MCONFIG_TOKEN_VIDEO_UPDATE,
|
MCONFIG_TOKEN_VIDEO_UPDATE,
|
||||||
|
|
||||||
MCONFIG_TOKEN_SOUND_START,
|
MCONFIG_TOKEN_SOUND_START,
|
||||||
MCONFIG_TOKEN_SOUND_RESET,
|
MCONFIG_TOKEN_SOUND_RESET,
|
||||||
|
|
||||||
MCONFIG_TOKEN_SOUND_ADD,
|
MCONFIG_TOKEN_SOUND_ADD,
|
||||||
MCONFIG_TOKEN_SOUND_REMOVE,
|
MCONFIG_TOKEN_SOUND_REMOVE,
|
||||||
MCONFIG_TOKEN_SOUND_MODIFY,
|
MCONFIG_TOKEN_SOUND_MODIFY,
|
||||||
|
@ -788,7 +788,7 @@ static void mixer_update(void *param, stream_sample_t **inputs, stream_sample_t
|
|||||||
static void *speaker_output_start(running_machine *machine, const char *tag, const void *static_config, const void *inline_config)
|
static void *speaker_output_start(running_machine *machine, const char *tag, const void *static_config, const void *inline_config)
|
||||||
{
|
{
|
||||||
speaker_info *info;
|
speaker_info *info;
|
||||||
|
|
||||||
/* allocate memory for the speaker information */
|
/* allocate memory for the speaker information */
|
||||||
info = auto_malloc(sizeof(*info));
|
info = auto_malloc(sizeof(*info));
|
||||||
memset(info, 0, sizeof(*info));
|
memset(info, 0, sizeof(*info));
|
||||||
|
@ -495,10 +495,10 @@ void flip_screen_set(int on)
|
|||||||
void flip_screen_set_no_update(int on)
|
void flip_screen_set_no_update(int on)
|
||||||
{
|
{
|
||||||
/* flip_screen_y is not updated on purpose
|
/* flip_screen_y is not updated on purpose
|
||||||
* this function is for drivers which
|
* this function is for drivers which
|
||||||
* where writing to flip_screen_x to
|
* where writing to flip_screen_x to
|
||||||
* bypass update_flip
|
* bypass update_flip
|
||||||
*/
|
*/
|
||||||
flip_screen_x = on;
|
flip_screen_x = on;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ static ADDRESS_MAP_START( amspdwy_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_READWRITE(MRA8_RAM, amspdwy_videoram_w) AM_BASE(&videoram) // Layer, mirrored?
|
AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_READWRITE(MRA8_RAM, amspdwy_videoram_w) AM_BASE(&videoram) // Layer, mirrored?
|
||||||
AM_RANGE(0x9800, 0x9bff) AM_READWRITE(MRA8_RAM, amspdwy_colorram_w) AM_BASE(&colorram) // Layer
|
AM_RANGE(0x9800, 0x9bff) AM_READWRITE(MRA8_RAM, amspdwy_colorram_w) AM_BASE(&colorram) // Layer
|
||||||
AM_RANGE(0x9c00, 0x9fff) AM_RAM // Unused?
|
AM_RANGE(0x9c00, 0x9fff) AM_RAM // Unused?
|
||||||
// AM_RANGE(0xa000, 0xa000) AM_WRITENOP // ?
|
// AM_RANGE(0xa000, 0xa000) AM_WRITENOP // ?
|
||||||
AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) // DSW 1
|
AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) // DSW 1
|
||||||
AM_RANGE(0xa400, 0xa400) AM_READWRITE(input_port_1_r, amspdwy_flipscreen_w) // DSW 2 + Toggle Flip Screen?
|
AM_RANGE(0xa400, 0xa400) AM_READWRITE(input_port_1_r, amspdwy_flipscreen_w) // DSW 2 + Toggle Flip Screen?
|
||||||
AM_RANGE(0xa800, 0xa800) AM_READ(amspdwy_wheel_0_r) // Player 1
|
AM_RANGE(0xa800, 0xa800) AM_READ(amspdwy_wheel_0_r) // Player 1
|
||||||
@ -112,7 +112,7 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( amspdwy_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
static ADDRESS_MAP_START( amspdwy_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||||
AM_RANGE(0x0000, 0x7fff) AM_ROM // ROM
|
AM_RANGE(0x0000, 0x7fff) AM_ROM // ROM
|
||||||
// AM_RANGE(0x8000, 0x8000) AM_WRITENOP // ? Written with 0 at the start
|
// AM_RANGE(0x8000, 0x8000) AM_WRITENOP // ? Written with 0 at the start
|
||||||
AM_RANGE(0x9000, 0x9000) AM_READ(soundlatch_r) // From Main CPU
|
AM_RANGE(0x9000, 0x9000) AM_READ(soundlatch_r) // From Main CPU
|
||||||
AM_RANGE(0xa000, 0xa000) AM_WRITE(YM2151_register_port_0_w) // YM2151
|
AM_RANGE(0xa000, 0xa000) AM_WRITE(YM2151_register_port_0_w) // YM2151
|
||||||
AM_RANGE(0xa001, 0xa001) AM_WRITE(YM2151_data_port_0_w) //
|
AM_RANGE(0xa001, 0xa001) AM_WRITE(YM2151_data_port_0_w) //
|
||||||
|
@ -92,7 +92,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0xa000, 0xdfff) AM_ROMBANK(1)
|
AM_RANGE(0xa000, 0xdfff) AM_ROMBANK(1)
|
||||||
AM_RANGE(0xe000, 0xe7ff) AM_RAM
|
AM_RANGE(0xe000, 0xe7ff) AM_RAM
|
||||||
AM_RANGE(0xe800, 0xefff) AM_RAM /* RAM ? */
|
AM_RANGE(0xe800, 0xefff) AM_RAM /* RAM ? */
|
||||||
|
|
||||||
AM_RANGE(0xf000, 0xf01f) AM_BASE(&spriteram)
|
AM_RANGE(0xf000, 0xf01f) AM_BASE(&spriteram)
|
||||||
AM_RANGE(0xf020, 0xf3ff) AM_WRITE(appoooh_fg_videoram_w) AM_BASE(&appoooh_fg_videoram)
|
AM_RANGE(0xf020, 0xf3ff) AM_WRITE(appoooh_fg_videoram_w) AM_BASE(&appoooh_fg_videoram)
|
||||||
AM_RANGE(0xf420, 0xf7ff) AM_WRITE(appoooh_fg_colorram_w) AM_BASE(&appoooh_fg_colorram)
|
AM_RANGE(0xf420, 0xf7ff) AM_WRITE(appoooh_fg_colorram_w) AM_BASE(&appoooh_fg_colorram)
|
||||||
|
@ -12,7 +12,7 @@ Space Intruder emulation by Lee Taylor (lee@defender.demon.co.uk),
|
|||||||
December 1998.
|
December 1998.
|
||||||
|
|
||||||
DIP locations verified for:
|
DIP locations verified for:
|
||||||
- astinvad (manual)
|
- astinvad (manual)
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
@ -100,12 +100,12 @@
|
|||||||
|
|
||||||
****************************************************************************
|
****************************************************************************
|
||||||
|
|
||||||
DIP locations verified for:
|
DIP locations verified for:
|
||||||
- seawolf2 (manual)
|
- seawolf2 (manual)
|
||||||
- wow (manual)
|
- wow (manual)
|
||||||
- gorf (manual)
|
- gorf (manual)
|
||||||
- robby (manual)
|
- robby (manual)
|
||||||
- profpac (manual)
|
- profpac (manual)
|
||||||
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
@ -203,11 +203,11 @@ Eto: $76d0 might be a protection check? It reads to and writes from
|
|||||||
the prog rom. Doesn't seem to cause problems though.
|
the prog rom. Doesn't seem to cause problems though.
|
||||||
|
|
||||||
DIP locations verified for:
|
DIP locations verified for:
|
||||||
- bonzeadv (manual)
|
- bonzeadv (manual)
|
||||||
- cadash (manual)
|
- cadash (manual)
|
||||||
- asuka (manual)
|
- asuka (manual)
|
||||||
- mofflott (manual)
|
- mofflott (manual)
|
||||||
- galmedes (manual)
|
- galmedes (manual)
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
@ -396,7 +396,7 @@ static ADDRESS_MAP_START( z80_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0x8000, 0x8fff) AM_RAM
|
AM_RANGE(0x8000, 0x8fff) AM_RAM
|
||||||
AM_RANGE(0x9000, 0x9000) AM_WRITE(YM2151_register_port_0_w)
|
AM_RANGE(0x9000, 0x9000) AM_WRITE(YM2151_register_port_0_w)
|
||||||
AM_RANGE(0x9001, 0x9001) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w)
|
AM_RANGE(0x9001, 0x9001) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w)
|
||||||
// AM_RANGE(0x9002, 0x9100) AM_READ(MRA8_RAM)
|
// AM_RANGE(0x9002, 0x9100) AM_READ(MRA8_RAM)
|
||||||
AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w)
|
AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w)
|
||||||
AM_RANGE(0xa001, 0xa001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w)
|
AM_RANGE(0xa001, 0xa001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w)
|
||||||
AM_RANGE(0xb000, 0xb000) AM_WRITE(asuka_msm5205_address_w)
|
AM_RANGE(0xb000, 0xb000) AM_WRITE(asuka_msm5205_address_w)
|
||||||
|
@ -93,7 +93,7 @@ static VIDEO_START(backfire)
|
|||||||
static void draw_sprites(running_machine *machine,mame_bitmap *bitmap,const rectangle *cliprect, UINT32 *backfire_spriteram32, int region)
|
static void draw_sprites(running_machine *machine,mame_bitmap *bitmap,const rectangle *cliprect, UINT32 *backfire_spriteram32, int region)
|
||||||
{
|
{
|
||||||
int offs;
|
int offs;
|
||||||
|
|
||||||
flip_screen_set_no_update(1);
|
flip_screen_set_no_update(1);
|
||||||
|
|
||||||
for (offs = (0x1400/4)-4;offs >= 0;offs -= 4) // 0x1400 for charlien
|
for (offs = (0x1400/4)-4;offs >= 0;offs -= 4) // 0x1400 for charlien
|
||||||
|
@ -353,10 +353,10 @@ static MACHINE_DRIVER_START( bionicc )
|
|||||||
MDRV_CPU_ADD(Z80, EXO3_F0_CLK / 4) /* EXO3 C,B=GND, A=5V ==> Divisor 2^2 */
|
MDRV_CPU_ADD(Z80, EXO3_F0_CLK / 4) /* EXO3 C,B=GND, A=5V ==> Divisor 2^2 */
|
||||||
MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem)
|
MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem)
|
||||||
/* FIXME: interrupt timing
|
/* FIXME: interrupt timing
|
||||||
* schematics indicate that nmi_line is set on M680000 access with AB1=1
|
* schematics indicate that nmi_line is set on M680000 access with AB1=1
|
||||||
* and IOCS=0 (active low), see pages A-1/10, A-4/10 in schematics
|
* and IOCS=0 (active low), see pages A-1/10, A-4/10 in schematics
|
||||||
*/
|
*/
|
||||||
MDRV_CPU_VBLANK_INT(nmi_line_pulse,4)
|
MDRV_CPU_VBLANK_INT(nmi_line_pulse,4)
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM)
|
MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM)
|
||||||
|
@ -178,7 +178,7 @@
|
|||||||
* 903d | System 903 Diag.PROM | 903 | unknown | any | unknown | any | unknown | Testing H/W | Yes | OK | Yes
|
* 903d | System 903 Diag.PROM | 903 | unknown | any | unknown | any | unknown | Testing H/W | Yes | OK | Yes
|
||||||
* 905d | System 905 Diag.PROM | 905 | unknown | any | unknown | any | unknown | Testing H/W | Yes | OK | Yes
|
* 905d | System 905 Diag.PROM | 905 | unknown | any | unknown | any | unknown | Testing H/W | Yes | OK | Yes
|
||||||
|
|
||||||
|
|
||||||
(*) Not in the original list.
|
(*) Not in the original list.
|
||||||
|
|
||||||
|
|
||||||
@ -411,7 +411,7 @@
|
|||||||
Game 24.6 (Hotline)
|
Game 24.6 (Hotline)
|
||||||
Game 27.2 (Keno, amusement)
|
Game 27.2 (Keno, amusement)
|
||||||
Game 27.2 (Keno, gaming)
|
Game 27.2 (Keno, gaming)
|
||||||
System 903 Diag.PROM
|
System 903 Diag.PROM
|
||||||
System 905 Diag.PROM
|
System 905 Diag.PROM
|
||||||
Jackpot Joker Poker (set 1)
|
Jackpot Joker Poker (set 1)
|
||||||
Jackpot Joker Poker (set 2)
|
Jackpot Joker Poker (set 2)
|
||||||
|
@ -97,8 +97,8 @@ Done:
|
|||||||
At a later stage, a TKG2-02 will be added as well.
|
At a later stage, a TKG2-02 will be added as well.
|
||||||
|
|
||||||
Mike Haaland provided the following information on startup sounds:
|
Mike Haaland provided the following information on startup sounds:
|
||||||
|
|
||||||
For both of these boards [dkong, dkongjr], only the jump sound
|
For both of these boards [dkong, dkongjr], only the jump sound
|
||||||
is distinguishable. I don't hear the pound of walk sound.
|
is distinguishable. I don't hear the pound of walk sound.
|
||||||
|
|
||||||
Donkey Kong and Donkey Kong Jr. memory map (preliminary) (DKong 3 follows)
|
Donkey Kong and Donkey Kong Jr. memory map (preliminary) (DKong 3 follows)
|
||||||
@ -721,9 +721,9 @@ static WRITE8_HANDLER( dkong3_2a03_reset_w )
|
|||||||
static ADDRESS_MAP_START( dkong_map, ADDRESS_SPACE_PROGRAM, 8 )
|
static ADDRESS_MAP_START( dkong_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||||
AM_RANGE(0x0000, 0x3fff) AM_ROM
|
AM_RANGE(0x0000, 0x3fff) AM_ROM
|
||||||
AM_RANGE(0x6000, 0x6bff) AM_RAM
|
AM_RANGE(0x6000, 0x6bff) AM_RAM
|
||||||
AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
||||||
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */
|
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */
|
||||||
AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
||||||
AM_BASE_MEMBER(dkong_state, video_ram)
|
AM_BASE_MEMBER(dkong_state, video_ram)
|
||||||
AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w) /* P8257 control registers */
|
AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w) /* P8257 control registers */
|
||||||
AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkong_sh_tuneselect_w) /* IN0, sound CPU intf */
|
AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkong_sh_tuneselect_w) /* IN0, sound CPU intf */
|
||||||
@ -743,9 +743,9 @@ static ADDRESS_MAP_START( dkongjr_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||||
AM_RANGE(0x6000, 0x6bff) AM_RAM
|
AM_RANGE(0x6000, 0x6bff) AM_RAM
|
||||||
AM_RANGE(0x6c00, 0x6fff) AM_RAM /* DK3 bootleg only */
|
AM_RANGE(0x6c00, 0x6fff) AM_RAM /* DK3 bootleg only */
|
||||||
AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
||||||
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */
|
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */
|
||||||
AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
||||||
AM_BASE_MEMBER(dkong_state, video_ram)
|
AM_BASE_MEMBER(dkong_state, video_ram)
|
||||||
AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w) /* P8257 control registers */
|
AM_RANGE(0x7800, 0x780f) AM_READWRITE(dma8257_0_r, dma8257_0_w) /* P8257 control registers */
|
||||||
AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkongjr_sh_tuneselect_w)
|
AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(dkongjr_sh_tuneselect_w)
|
||||||
@ -769,9 +769,9 @@ static ADDRESS_MAP_START( dkong3_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
AM_RANGE(0x0000, 0x5fff) AM_ROM
|
||||||
AM_RANGE(0x6000, 0x67ff) AM_RAM
|
AM_RANGE(0x6000, 0x67ff) AM_RAM
|
||||||
AM_RANGE(0x6800, 0x6fff) AM_RAM
|
AM_RANGE(0x6800, 0x6fff) AM_RAM
|
||||||
AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
AM_RANGE(0x7000, 0x73ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
||||||
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */
|
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* sprite set 1 */
|
||||||
AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
AM_RANGE(0x7400, 0x77ff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
||||||
AM_BASE_MEMBER(dkong_state, video_ram)
|
AM_BASE_MEMBER(dkong_state, video_ram)
|
||||||
AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(soundlatch_w)
|
AM_RANGE(0x7c00, 0x7c00) AM_READ_PORT("IN0") AM_WRITE(soundlatch_w)
|
||||||
AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(soundlatch2_w)
|
AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(soundlatch2_w)
|
||||||
@ -804,7 +804,7 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( hunchbkd_map, ADDRESS_SPACE_PROGRAM, 8 )
|
static ADDRESS_MAP_START( hunchbkd_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||||
AM_RANGE(0x0000, 0x0fff) AM_ROM
|
AM_RANGE(0x0000, 0x0fff) AM_ROM
|
||||||
AM_RANGE(0x1000, 0x13ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
AM_RANGE(0x1000, 0x13ff) AM_RAM AM_BASE_MEMBER(dkong_state, sprite_ram)
|
||||||
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* 0x7000 */
|
AM_SIZE_MEMBER(dkong_state, sprite_ram_size) /* 0x7000 */
|
||||||
AM_RANGE(0x1400, 0x1400) AM_READ_PORT("IN0") AM_WRITE(dkong_sh_tuneselect_w)
|
AM_RANGE(0x1400, 0x1400) AM_READ_PORT("IN0") AM_WRITE(dkong_sh_tuneselect_w)
|
||||||
AM_RANGE(0x1480, 0x1480) AM_READ_PORT("IN1")
|
AM_RANGE(0x1480, 0x1480) AM_READ_PORT("IN1")
|
||||||
@ -817,7 +817,7 @@ static ADDRESS_MAP_START( hunchbkd_map, ADDRESS_SPACE_PROGRAM, 8 )
|
|||||||
AM_RANGE(0x1585, 0x1585) AM_WRITE(p8257_drq_w) /* P8257 ==> /DRQ0 /DRQ1 */
|
AM_RANGE(0x1585, 0x1585) AM_WRITE(p8257_drq_w) /* P8257 ==> /DRQ0 /DRQ1 */
|
||||||
AM_RANGE(0x1586, 0x1587) AM_WRITE(dkong_palettebank_w)
|
AM_RANGE(0x1586, 0x1587) AM_WRITE(dkong_palettebank_w)
|
||||||
AM_RANGE(0x1600, 0x17ff) AM_RAM /* 0x6400 spriteram location */
|
AM_RANGE(0x1600, 0x17ff) AM_RAM /* 0x6400 spriteram location */
|
||||||
AM_RANGE(0x1800, 0x1bff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
AM_RANGE(0x1800, 0x1bff) AM_READWRITE(MRA8_RAM, dkong_videoram_w)
|
||||||
AM_BASE_MEMBER(dkong_state, video_ram) /* 0x7400 */
|
AM_BASE_MEMBER(dkong_state, video_ram) /* 0x7400 */
|
||||||
AM_RANGE(0x1C00, 0x1f7f) AM_RAM /* 0x6000 */
|
AM_RANGE(0x1C00, 0x1f7f) AM_RAM /* 0x6000 */
|
||||||
AM_RANGE(0x1f80, 0x1f8f) AM_READWRITE(dma8257_0_r, dma8257_0_w) /* P8257 control registers */
|
AM_RANGE(0x1f80, 0x1f8f) AM_READWRITE(dma8257_0_r, dma8257_0_w) /* P8257 control registers */
|
||||||
|
@ -188,7 +188,7 @@
|
|||||||
|
|
||||||
Impera made 2 graphics sets for this game. One of them is encrypted, and meant for the TAB blue board.
|
Impera made 2 graphics sets for this game. One of them is encrypted, and meant for the TAB blue board.
|
||||||
This board has two HY18CV85 (electrically-erasable PLD) that handle the encryption.
|
This board has two HY18CV85 (electrically-erasable PLD) that handle the encryption.
|
||||||
In another hand, the sound has some weird things, but is confirmed that happen in the real thing.
|
In another hand, the sound has some weird things, but is confirmed that happen in the real thing.
|
||||||
|
|
||||||
|
|
||||||
- Jolly Joker (Impera, 50bet)
|
- Jolly Joker (Impera, 50bet)
|
||||||
|
@ -573,10 +573,10 @@ static DRIVER_INIT( omegrace )
|
|||||||
UINT8 *prom = memory_region(REGION_USER1);
|
UINT8 *prom = memory_region(REGION_USER1);
|
||||||
|
|
||||||
/* Omega Race has two pairs of the state PROM output
|
/* Omega Race has two pairs of the state PROM output
|
||||||
* lines swapped before going into the decoder.
|
* lines swapped before going into the decoder.
|
||||||
* Since all other avg/dvg games connect the PROM
|
* Since all other avg/dvg games connect the PROM
|
||||||
* in a consistent way to the decoder, we swap the bits
|
* in a consistent way to the decoder, we swap the bits
|
||||||
* here. */
|
* here. */
|
||||||
for (i=0; i<memory_region_length(REGION_USER1); i++)
|
for (i=0; i<memory_region_length(REGION_USER1); i++)
|
||||||
prom[i] = BITSWAP8(prom[i],7,6,5,4,1,0,3,2);
|
prom[i] = BITSWAP8(prom[i],7,6,5,4,1,0,3,2);
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ struct _dkong_state
|
|||||||
UINT8 sprite_bank;
|
UINT8 sprite_bank;
|
||||||
UINT8 dma_latch;
|
UINT8 dma_latch;
|
||||||
UINT8 flip;
|
UINT8 flip;
|
||||||
|
|
||||||
/* reverse address lookup map - hunchbkd */
|
/* reverse address lookup map - hunchbkd */
|
||||||
INT16 rev_map[0x200];
|
INT16 rev_map[0x200];
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ missing opcode:
|
|||||||
14 -> 08 (2097b 20980 - routine from 2097a) (08 30) to handle the player number -> probably 08
|
14 -> 08 (2097b 20980 - routine from 2097a) (08 30) to handle the player number -> probably 08
|
||||||
ab -> 4f?(19570 - routine from 194e1 to 19619) (when the water go up)
|
ab -> 4f?(19570 - routine from 194e1 to 19619) (when the water go up)
|
||||||
b3 -> 19 (216b6 - 216cf - 16663 (when you rotate a piece) - 175f1 - 17d2a - 17d36
|
b3 -> 19 (216b6 - 216cf - 16663 (when you rotate a piece) - 175f1 - 17d2a - 17d36
|
||||||
b9 -> b7 (21210 - routine from 2117e to ) 2 bytes -
|
b9 -> b7 (21210 - routine from 2117e to ) 2 bytes -
|
||||||
|
|
||||||
rz probably:
|
rz probably:
|
||||||
19 -> 79 (1df45 routine from 1df27 / 2282f - routine from 2281f to 22871) no 70,78,7a,7b,7c,7e,7f(ok) ok 79,7d
|
19 -> 79 (1df45 routine from 1df27 / 2282f - routine from 2281f to 22871) no 70,78,7a,7b,7c,7e,7f(ok) ok 79,7d
|
||||||
@ -386,7 +386,7 @@ rz guess:
|
|||||||
73 -> 73 (1d4f7 - routine from 1d4df to 1d539) -> (no 70,71,72,74,75,76,77,78,79,7a,7b,7c,7d,7e,7f) - ok 73
|
73 -> 73 (1d4f7 - routine from 1d4df to 1d539) -> (no 70,71,72,74,75,76,77,78,79,7a,7b,7c,7d,7e,7f) - ok 73
|
||||||
7c -> fd
|
7c -> fd
|
||||||
7e -> 92 (1e095 - routine from 1e073 to 1e0cf)
|
7e -> 92 (1e095 - routine from 1e073 to 1e0cf)
|
||||||
83 -> 7f (194cd - routine from) no 70,78,79,7a,7b,7c,7d,7e ok 77(no) ok 7f
|
83 -> 7f (194cd - routine from) no 70,78,79,7a,7b,7c,7d,7e ok 77(no) ok 7f
|
||||||
84 -> 08 (1d8f1 - routine from 1d8c7 to 1d8fc) - three bytes (ok 30) (sprite animation) -> 30
|
84 -> 08 (1d8f1 - routine from 1d8c7 to 1d8fc) - three bytes (ok 30) (sprite animation) -> 30
|
||||||
88 -> 9a
|
88 -> 9a
|
||||||
92 -> 9d
|
92 -> 9d
|
||||||
|
@ -9,4 +9,4 @@
|
|||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
const char build_version[] = "0.123u2 ("__DATE__")";
|
const char build_version[] = "0.123u3 ("__DATE__")";
|
||||||
|
Loading…
Reference in New Issue
Block a user