mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
(MESS) delete unused files (nw)
This commit is contained in:
parent
2d638006fa
commit
e224d4a16a
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -6857,7 +6857,6 @@ src/mess/includes/rm380z.h svneol=native#text/plain
|
||||
src/mess/includes/rmnimbus.h svneol=native#text/plain
|
||||
src/mess/includes/sage2.h svneol=native#text/plain
|
||||
src/mess/includes/samcoupe.h svneol=native#text/plain
|
||||
src/mess/includes/sapi1.h svneol=native#text/plain
|
||||
src/mess/includes/sg1000.h svneol=native#text/plain
|
||||
src/mess/includes/sms.h svneol=native#text/plain
|
||||
src/mess/includes/softbox.h svneol=native#text/plain
|
||||
@ -7930,7 +7929,6 @@ src/mess/machine/s3c44b0.h svneol=native#text/plain
|
||||
src/mess/machine/sa1403d.c svneol=native#text/plain
|
||||
src/mess/machine/sa1403d.h svneol=native#text/plain
|
||||
src/mess/machine/samcoupe.c svneol=native#text/plain
|
||||
src/mess/machine/sapi1.c svneol=native#text/plain
|
||||
src/mess/machine/sat_bram.c svneol=native#text/plain
|
||||
src/mess/machine/sat_bram.h svneol=native#text/plain
|
||||
src/mess/machine/sat_dram.c svneol=native#text/plain
|
||||
@ -8458,7 +8456,6 @@ src/mess/video/rmnimbus.c svneol=native#text/plain
|
||||
src/mess/video/s3virge.c svneol=native#text/plain
|
||||
src/mess/video/s3virge.h svneol=native#text/plain
|
||||
src/mess/video/samcoupe.c svneol=native#text/plain
|
||||
src/mess/video/sapi1.c svneol=native#text/plain
|
||||
src/mess/video/special.c svneol=native#text/plain
|
||||
src/mess/video/spectrum.c svneol=native#text/plain
|
||||
src/mess/video/ssystem3.c svneol=native#text/plain
|
||||
|
@ -1,65 +0,0 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* includes/sapi1.h
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef SAPI_1_H_
|
||||
#define SAPI_1_H_
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/i8085/i8085.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "machine/ram.h"
|
||||
#include "machine/keyboard.h"
|
||||
#include "machine/terminal.h"
|
||||
|
||||
|
||||
class sapi1_state : public driver_device
|
||||
{
|
||||
public:
|
||||
sapi1_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_sapi_video_ram(*this, "sapi_video_ram"),
|
||||
m_bank1(*this, "bank1"),
|
||||
m_line0(*this, "LINE0"),
|
||||
m_line1(*this, "LINE1"),
|
||||
m_line2(*this, "LINE2"),
|
||||
m_line3(*this, "LINE3"),
|
||||
m_line4(*this, "LINE4") ,
|
||||
m_maincpu(*this, "maincpu") { }
|
||||
|
||||
required_shared_ptr<UINT8> m_sapi_video_ram;
|
||||
UINT8 m_keyboard_mask;
|
||||
UINT8 m_refresh_counter;
|
||||
UINT8 m_zps3_25;
|
||||
DECLARE_READ8_MEMBER(sapi1_keyboard_r);
|
||||
DECLARE_WRITE8_MEMBER(sapi1_keyboard_w);
|
||||
DECLARE_READ8_MEMBER(sapi2_keyboard_status_r);
|
||||
DECLARE_READ8_MEMBER(sapi2_keyboard_data_r);
|
||||
DECLARE_WRITE8_MEMBER(sapi3_00_w);
|
||||
DECLARE_READ8_MEMBER(sapi3_25_r);
|
||||
DECLARE_WRITE8_MEMBER(sapi3_25_w);
|
||||
DECLARE_WRITE8_MEMBER(kbd_put);
|
||||
UINT8 m_term_data;
|
||||
DECLARE_DRIVER_INIT(sapi1);
|
||||
DECLARE_DRIVER_INIT(sapizps3);
|
||||
DECLARE_MACHINE_START(sapi1);
|
||||
DECLARE_MACHINE_RESET(sapi1);
|
||||
DECLARE_VIDEO_START(sapi1);
|
||||
DECLARE_MACHINE_RESET(sapizps3);
|
||||
DECLARE_VIDEO_START(sapizps3);
|
||||
UINT32 screen_update_sapi1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
UINT32 screen_update_sapizps3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
protected:
|
||||
optional_memory_bank m_bank1; // Only for sapi3
|
||||
required_ioport m_line0;
|
||||
required_ioport m_line1;
|
||||
required_ioport m_line2;
|
||||
required_ioport m_line3;
|
||||
required_ioport m_line4;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
};
|
||||
|
||||
#endif
|
@ -1,53 +0,0 @@
|
||||
/***************************************************************************
|
||||
|
||||
SAPI-1 driver by Miodrag Milanovic
|
||||
|
||||
09/09/2008 Preliminary driver.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#include "includes/sapi1.h"
|
||||
|
||||
|
||||
/* Driver initialization */
|
||||
DRIVER_INIT_MEMBER(sapi1_state,sapi1)
|
||||
{
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(sapi1_state,sapi1)
|
||||
{
|
||||
m_keyboard_mask = 0;
|
||||
}
|
||||
|
||||
MACHINE_START_MEMBER(sapi1_state,sapi1)
|
||||
{
|
||||
}
|
||||
|
||||
READ8_MEMBER( sapi1_state::sapi1_keyboard_r )
|
||||
{
|
||||
UINT8 key = 0xff;
|
||||
if (BIT(m_keyboard_mask, 0)) { key &= m_line0->read(); }
|
||||
if (BIT(m_keyboard_mask, 1)) { key &= m_line1->read(); }
|
||||
if (BIT(m_keyboard_mask, 2)) { key &= m_line2->read(); }
|
||||
if (BIT(m_keyboard_mask, 3)) { key &= m_line3->read(); }
|
||||
if (BIT(m_keyboard_mask, 4)) { key &= m_line4->read(); }
|
||||
return key;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER( sapi1_state::sapi1_keyboard_w )
|
||||
{
|
||||
m_keyboard_mask = (data ^ 0xff ) & 0x1f;
|
||||
}
|
||||
|
||||
|
||||
MACHINE_RESET_MEMBER(sapi1_state,sapizps3)
|
||||
{
|
||||
m_keyboard_mask = 0;
|
||||
m_bank1->set_entry(1);
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(sapi1_state,sapizps3)
|
||||
{
|
||||
UINT8 *RAM = memregion("maincpu")->base();
|
||||
m_bank1->configure_entries(0, 2, &RAM[0x0000], 0xf800);
|
||||
}
|
@ -1,148 +0,0 @@
|
||||
/***************************************************************************
|
||||
|
||||
SAPI-1 driver by Miodrag Milanovic
|
||||
|
||||
09/09/2008 Preliminary driver.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include "includes/sapi1.h"
|
||||
|
||||
static const UINT8 MHB2501[] = {
|
||||
0x0c,0x11,0x13,0x15,0x17,0x10,0x0e,0x00, // @
|
||||
0x04,0x0a,0x11,0x11,0x1f,0x11,0x11,0x00, // A
|
||||
0x1e,0x11,0x11,0x1e,0x11,0x11,0x1e,0x00, // B
|
||||
0x0e,0x11,0x10,0x10,0x10,0x11,0x0e,0x00, // C
|
||||
0x1e,0x09,0x09,0x09,0x09,0x09,0x1e,0x00, // D
|
||||
0x1f,0x10,0x10,0x1e,0x10,0x10,0x1f,0x00, // E
|
||||
0x1f,0x10,0x10,0x1e,0x10,0x10,0x10,0x00, // F
|
||||
0x0e,0x11,0x10,0x10,0x13,0x11,0x0f,0x00, // G
|
||||
|
||||
0x11,0x11,0x11,0x1f,0x11,0x11,0x11,0x00, // H
|
||||
0x0e,0x04,0x04,0x04,0x04,0x04,0x0e,0x00, // I
|
||||
0x01,0x01,0x01,0x01,0x11,0x11,0x0e,0x00, // J
|
||||
0x11,0x12,0x14,0x18,0x14,0x12,0x11,0x00, // K
|
||||
0x10,0x10,0x10,0x10,0x10,0x10,0x1f,0x00, // L
|
||||
0x11,0x1b,0x15,0x15,0x11,0x11,0x11,0x00, // M
|
||||
0x11,0x11,0x19,0x15,0x13,0x11,0x11,0x00, // N
|
||||
0x0e,0x11,0x11,0x11,0x11,0x11,0x0e,0x00, // O
|
||||
|
||||
0x1e,0x11,0x11,0x1e,0x10,0x10,0x10,0x00, // P
|
||||
0x0e,0x11,0x11,0x11,0x15,0x12,0x0d,0x00, // Q
|
||||
0x1e,0x11,0x11,0x1e,0x14,0x12,0x11,0x00, // R
|
||||
0x0e,0x11,0x10,0x0e,0x01,0x11,0x0e,0x00, // S
|
||||
0x1f,0x04,0x04,0x04,0x04,0x04,0x04,0x00, // T
|
||||
0x11,0x11,0x11,0x11,0x11,0x11,0x0e,0x00, // U
|
||||
0x11,0x11,0x11,0x0a,0x0a,0x04,0x04,0x00, // V
|
||||
0x11,0x11,0x11,0x15,0x15,0x15,0x0a,0x00, // W
|
||||
|
||||
0x11,0x11,0x0a,0x04,0x0a,0x11,0x11,0x00, // X
|
||||
0x11,0x11,0x0a,0x04,0x04,0x04,0x04,0x00, // Y
|
||||
0x1f,0x01,0x02,0x04,0x08,0x10,0x1f,0x00, // Z
|
||||
0x1c,0x10,0x10,0x10,0x10,0x10,0x1c,0x00, // [
|
||||
0x00,0x10,0x08,0x04,0x02,0x01,0x00,0x00, // backslash
|
||||
0x07,0x01,0x01,0x01,0x01,0x01,0x07,0x00, // ]
|
||||
0x0e,0x11,0x00,0x00,0x00,0x00,0x00,0x00, // ^
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00, // _
|
||||
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, //
|
||||
0x04,0x04,0x04,0x04,0x04,0x00,0x04,0x00, // !
|
||||
0x0a,0x0a,0x0a,0x00,0x00,0x00,0x00,0x00, // "
|
||||
0x0a,0x0a,0x1f,0x0a,0x1f,0x0a,0x0a,0x00, // #
|
||||
0x00,0x11,0x0e,0x0a,0x0e,0x11,0x00,0x00, //
|
||||
0x18,0x19,0x02,0x04,0x08,0x13,0x03,0x00, // %
|
||||
0x04,0x0a,0x0a,0x0c,0x15,0x12,0x0d,0x00, // &
|
||||
0x04,0x04,0x08,0x00,0x00,0x00,0x00,0x00, // '
|
||||
|
||||
0x02,0x04,0x08,0x08,0x08,0x04,0x02,0x00, // (
|
||||
0x08,0x04,0x02,0x02,0x02,0x04,0x08,0x00, // )
|
||||
0x00,0x04,0x15,0x0e,0x15,0x04,0x00,0x00, // *
|
||||
0x00,0x04,0x04,0x1f,0x04,0x04,0x00,0x00, // +
|
||||
0x00,0x00,0x00,0x00,0x08,0x08,0x10,0x00, // ,
|
||||
0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00, // -
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00, // .
|
||||
0x00,0x01,0x02,0x04,0x08,0x10,0x00,0x00, // /
|
||||
|
||||
0x0e,0x11,0x13,0x15,0x19,0x11,0x0e,0x00, // 0
|
||||
0x04,0x0c,0x04,0x04,0x04,0x04,0x0e,0x00, // 1
|
||||
0x0e,0x11,0x01,0x06,0x08,0x10,0x1f,0x00, // 2
|
||||
0x1f,0x01,0x02,0x06,0x01,0x11,0x0e,0x00, // 3
|
||||
0x02,0x06,0x0a,0x12,0x1f,0x02,0x02,0x00, // 4
|
||||
0x1f,0x10,0x1e,0x01,0x01,0x11,0x0e,0x00, // 5
|
||||
0x07,0x08,0x10,0x1e,0x11,0x11,0x0e,0x00, // 6
|
||||
0x1f,0x01,0x02,0x04,0x08,0x08,0x08,0x00, // 7
|
||||
|
||||
0x0e,0x11,0x11,0x0e,0x11,0x11,0x0e,0x00, // 8
|
||||
0x0e,0x11,0x11,0x0f,0x01,0x02,0x1c,0x00, // 9
|
||||
0x00,0x00,0x00,0x00,0x08,0x00,0x08,0x00, // :
|
||||
0x00,0x00,0x04,0x00,0x04,0x04,0x08,0x00, // ;
|
||||
0x02,0x04,0x08,0x10,0x08,0x04,0x02,0x00, // <
|
||||
0x00,0x00,0x1f,0x00,0x1f,0x00,0x00,0x00, // =
|
||||
0x08,0x04,0x02,0x01,0x02,0x04,0x08,0x00, // >
|
||||
0x0e,0x11,0x01,0x02,0x04,0x00,0x04,0x00 // ?
|
||||
};
|
||||
|
||||
|
||||
VIDEO_START_MEMBER(sapi1_state,sapi1)
|
||||
{
|
||||
m_refresh_counter = 0;
|
||||
}
|
||||
|
||||
UINT32 sapi1_state::screen_update_sapi1(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
int x,y,j,b;
|
||||
UINT16 addr;
|
||||
int xpos;
|
||||
|
||||
for(y = 0; y < 24; y++ )
|
||||
{
|
||||
addr = y*64;
|
||||
xpos = 0;
|
||||
for(x = 0; x < 40; x++ )
|
||||
{
|
||||
UINT8 code = m_sapi_video_ram[addr + x];
|
||||
UINT8 attr = (code >> 6) & 3;
|
||||
code &= 0x3f;
|
||||
for(j = 0; j < 9; j++ )
|
||||
{
|
||||
for(b = 0; b < 6; b++ )
|
||||
{
|
||||
UINT8 val;
|
||||
if (j==8) {
|
||||
if (attr==2) {
|
||||
val = (m_refresh_counter & 0x20) ? 1 : 0;
|
||||
} else {
|
||||
val = 0;
|
||||
}
|
||||
} else {
|
||||
val = (MHB2501[code*8 + j] >> (5-b)) & 1;
|
||||
if (attr==1) {
|
||||
val = (m_refresh_counter & 0x20) ? val : 0;
|
||||
}
|
||||
}
|
||||
if(attr==3) {
|
||||
bitmap.pix16(y*9+j, xpos+2*b ) = val;
|
||||
bitmap.pix16(y*9+j, xpos+2*b+1 ) = val;
|
||||
} else {
|
||||
bitmap.pix16(y*9+j, xpos+b ) = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
xpos+= (attr==3) ? 12 : 6;
|
||||
if (xpos>=6*40) break;
|
||||
}
|
||||
}
|
||||
m_refresh_counter++;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
VIDEO_START_MEMBER(sapi1_state,sapizps3)
|
||||
{
|
||||
}
|
||||
|
||||
UINT32 sapi1_state::screen_update_sapizps3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user