Skip to content

Commit

Permalink
Cleaned up various stuff.
Browse files Browse the repository at this point in the history
* sony_news.xml: Added proper compatibility flags for different
  generations.
* cpu/pic16x8x: This is very much a derivative work.
* cpu/tms32025.cpp: Allow stack push/pop to be inlined.
* tecmo/bombjack.cpp: Avoid needing to remove and replace devices in
  machine configuration.
* Various other cleanup.
  • Loading branch information
cuavas committed Jun 30, 2024
1 parent db219fd commit 9f6c0de
Show file tree
Hide file tree
Showing 44 changed files with 1,044 additions and 1,025 deletions.
4 changes: 2 additions & 2 deletions hash/sony_news.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license:CC0-1.0
<year>1991</year>
<publisher>Sony</publisher>
<notes>The floppies can boot on both CISC and RISC systems due to some bootloader magic, but the MO image is only for the first wave of RISC NEWS machines (NWS-3000 series)</notes>
<sharedfeat name="compatibility" value="RISC" />
<sharedfeat name="compatibility" value="NWS3000" />
<!--
The installation floppy and MO disk work, but the format disk hangs after printing a few messages on RISC systems.
Therefore, use of this kit requires use of a pre-formatted hard disk image for now.
Expand Down Expand Up @@ -44,7 +44,7 @@ license:CC0-1.0
<year>1993</year>
<publisher>Sony</publisher>
<notes>Usable only on NWS-5000 series computers</notes>
<sharedfeat name="compatibility" value="RISC" />
<sharedfeat name="compatibility" value="NWS5000" />

<!-- Source: WinWorld -->
<!-- The "STAMP" file has the build date of 05/05/93 -->
Expand Down
1 change: 1 addition & 0 deletions plugins/hiscore/hiscore.dat
Original file line number Diff line number Diff line change
Expand Up @@ -8093,6 +8093,7 @@ lupin3:
@:maincpu,program,20dc,03,00,00
@delay=0.25


invrvnge:
invrvngea:
invrvngeb:
Expand Down
6 changes: 4 additions & 2 deletions src/devices/bus/hp_dio/hp98544.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

#include "emu.h"
#include "hp98544.h"
#include "screen.h"

#include "video/topcat.h"
#include "hp_dio.h"

#include "screen.h"


#define HP98544_SCREEN_NAME "98544_screen"
#define HP98544_ROM_REGION "98544_rom"
Expand Down
2 changes: 1 addition & 1 deletion src/devices/bus/hp_dio/hp98603a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "emu.h"
#include "hp98603a.h"
#include "hp_dio.h"


#define HP98603A_ROM_REGION "98603a_rom"

Expand Down
2 changes: 1 addition & 1 deletion src/devices/bus/hp_dio/hp98603b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "emu.h"
#include "hp98603b.h"
#include "hp_dio.h"


#define HP98603B_ROM_REGION "98603b_rom"

Expand Down
1 change: 0 additions & 1 deletion src/devices/bus/hp_dio/hp98620.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "emu.h"
#include "hp98620.h"
#include "hp_dio.h"

#define VERBOSE 0
#include "logmacro.h"
Expand Down
21 changes: 11 additions & 10 deletions src/devices/bus/hp_dio/hp98624.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include "emu.h"
#include "hp98624.h"
#include "machine/tms9914.h"

#include "bus/ieee488/ieee488.h"
#include "hp_dio.h"
#include "machine/tms9914.h"

//#define VERBOSE 1
#include "logmacro.h"
Expand Down Expand Up @@ -42,6 +42,7 @@ class dio16_98624_device :
required_device<tms9914_device> m_tms9914;
required_device<ieee488_device> m_ieee488;
required_ioport m_switches;

private:
void update_gpib_irq();
void update_gpib_dma();
Expand Down Expand Up @@ -101,17 +102,17 @@ dio16_98624_device::dio16_98624_device(const machine_config &mconfig, device_typ
{
}

#define REG_SWITCHES_SC 0x01
#define REG_SWITCHES_REMOTE 0x02
constexpr unsigned REG_SWITCHES_SC = 0x01;
constexpr unsigned REG_SWITCHES_REMOTE = 0x02;

#define REG_SWITCHES_INT_LEVEL_MASK 3
#define REG_SWITCHES_INT_LEVEL_SHIFT 2
constexpr unsigned REG_SWITCHES_INT_LEVEL_MASK = 3;
constexpr unsigned REG_SWITCHES_INT_LEVEL_SHIFT = 2;

#define REG_SWITCHES_SELECT_CODE_MASK 31
#define REG_SWITCHES_SELECT_CODE_SHIFT 4
constexpr unsigned REG_SWITCHES_SELECT_CODE_MASK = 31;
constexpr unsigned REG_SWITCHES_SELECT_CODE_SHIFT = 4;

#define REG_SWITCHES_GPIB_ADDR_MASK 31
#define REG_SWITCHES_GPIB_ADDR_SHIFT 9
constexpr unsigned REG_SWITCHES_GPIB_ADDR_MASK = 31;
constexpr unsigned REG_SWITCHES_GPIB_ADDR_SHIFT = 9;

static INPUT_PORTS_START(hp98624_port)
PORT_START("switches")
Expand Down
3 changes: 2 additions & 1 deletion src/devices/bus/hp_dio/hp98644.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

#include "emu.h"
#include "hp98644.h"

#include "bus/rs232/rs232.h"
#include "machine/ins8250.h"
#include "hp_dio.h"


namespace {

Expand Down
Loading

0 comments on commit 9f6c0de

Please sign in to comment.