mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
gigatron: fix compile (nw)
This commit is contained in:
parent
be36db02dd
commit
685907679b
@ -2983,7 +2983,7 @@ end
|
||||
|
||||
--------------------------------------------------
|
||||
-- Gigatron
|
||||
--@src/devices/cpu/gigatron.h,CPUS["GTRON"] = true
|
||||
--@src/devices/cpu/gigatron/gigatron.h,CPUS["GTRON"] = true
|
||||
--------------------------------------------------
|
||||
|
||||
if (CPUS["GTRON"]~=null) then
|
||||
@ -2998,6 +2998,7 @@ if (CPUS["GTRON"]~=null or _OPTIONS["with-tools"]) then
|
||||
table.insert(disasm_files , MAME_DIR .. "src/devices/cpu/gigatron/gigatrondasm.h")
|
||||
end
|
||||
|
||||
--------------------------------------------------
|
||||
-- Motorola DSP56000
|
||||
--@src/devices/cpu/dsp56000/dsp56000.h,CPUS["DSP56000"] = true
|
||||
--------------------------------------------------
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Skeleton device for Gigatron CPU Core
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
//https://github.com/PhilThomas/gigatron/blob/master/src/gigatron.js
|
||||
|
||||
#include "emu.h"
|
||||
@ -50,7 +50,7 @@ void gigatron_cpu_device::execute_run()
|
||||
|
||||
opcode = gigatron_readop(m_pc);
|
||||
m_pc++;
|
||||
|
||||
|
||||
uint8_t op = (opcode >> 13) & 0x0007;
|
||||
uint8_t mode = (opcode >> 10) & 0x0007;
|
||||
uint8_t bus = (opcode >> 8) & 0x0003;
|
||||
@ -91,14 +91,14 @@ void gigatron_cpu_device::device_start()
|
||||
|
||||
void gigatron_cpu_device::init()
|
||||
{
|
||||
ac = 0;
|
||||
x = 0;
|
||||
y = 0;
|
||||
m_ac = 0;
|
||||
m_x = 0;
|
||||
m_y = 0;
|
||||
m_pc = 0;
|
||||
state_add(GTRON_A, "AC", ac);
|
||||
state_add(GTRON_X, "X", x);
|
||||
state_add(GTRON_Y, "Y", y);
|
||||
|
||||
state_add(GTRON_AC, "AC", m_ac);
|
||||
state_add(GTRON_X, "X", m_x);
|
||||
state_add(GTRON_Y, "Y", m_y);
|
||||
|
||||
set_icountptr(m_icount);
|
||||
}
|
||||
|
||||
@ -109,15 +109,17 @@ void gigatron_cpu_device::branchOp(int op, int mode, int bus, int d)
|
||||
void gigatron_cpu_device::aluOp(int op, int mode, int bus, int d)
|
||||
{
|
||||
int b;
|
||||
(void)b;
|
||||
switch(bus) {
|
||||
case 0:
|
||||
b = d;
|
||||
break;
|
||||
case 1:
|
||||
case 2:
|
||||
b = ac;
|
||||
b = m_ac;
|
||||
break;
|
||||
case 3:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Skeleton Device for Gigatron CPU Core
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
//https://github.com/PhilThomas/gigatron/blob/master/src/gigatron.js
|
||||
|
||||
#ifndef MAME_CPU_GTRON_H
|
||||
@ -45,15 +45,15 @@ protected:
|
||||
|
||||
// device_memory_interface overrides
|
||||
virtual space_config_vector memory_space_config() const override;
|
||||
|
||||
|
||||
void branchOp(int op, int mode, int bus, int d);
|
||||
void aluOp(int op, int mode, int bus, int d);
|
||||
void storeOp(int op, int mode, int bus, int d);
|
||||
|
||||
uint8_t ac;
|
||||
uint8_t x;
|
||||
uint8_t y;
|
||||
|
||||
|
||||
uint8_t m_ac;
|
||||
uint8_t m_x;
|
||||
uint8_t m_y;
|
||||
|
||||
virtual void init();
|
||||
|
||||
private:
|
||||
|
@ -8,7 +8,7 @@ Known functional issues:
|
||||
and while in-game.
|
||||
* There are indeterminate issues with the analog controls in-game.
|
||||
- Virtua Fighter
|
||||
* Gameplay mecahnics - specifically, collision detection - are significantly broken due to
|
||||
* Gameplay mechanics - specifically, collision detection - are significantly broken due to
|
||||
imperfect TGP RAM port emulation or hookup. This is observable in both attract mode and
|
||||
in-game. It seems to break when both characters attack at the same time.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user