Move UTF8_xxx string literal macros to new header in lib/util

This commit is contained in:
AJR 2022-09-25 22:23:29 -04:00
parent 99e85967e6
commit 60a3acb970
106 changed files with 287 additions and 71 deletions

View File

@ -124,6 +124,7 @@ end
MAME_DIR .. "src/lib/util/unzip.cpp",
MAME_DIR .. "src/lib/util/unzip.h",
MAME_DIR .. "src/lib/util/un7z.cpp",
MAME_DIR .. "src/lib/util/utf8.h",
MAME_DIR .. "src/lib/util/utilfwd.h",
MAME_DIR .. "src/lib/util/vbiparse.cpp",
MAME_DIR .. "src/lib/util/vbiparse.h",

View File

@ -71,6 +71,8 @@ XR22-050-3B Pinout
#include "emu.h"
#include "abc800kb.h"
#include "utf8.h"
//**************************************************************************

View File

@ -54,8 +54,11 @@ Notes:
#include "emu.h"
#include "abc99.h"
#include "speaker.h"
#include "utf8.h"
//**************************************************************************

View File

@ -9,6 +9,8 @@
#include "emu.h"
#include "kb.h"
#include "utf8.h"
//**************************************************************************

View File

@ -34,6 +34,8 @@
#include "emu.h"
#include "ec1841.h"
#include "utf8.h"
//#define LOG_GENERAL (1U << 0) //defined in logmacro.h already
#define LOG_KEYBOARD (1U << 1)

View File

@ -27,6 +27,8 @@
#include "emu.h"
#include "pcat84.h"
#include "utf8.h"
//**************************************************************************

View File

@ -19,6 +19,8 @@
#include "emu.h"
#include "pcxt83.h"
#include "utf8.h"
//**************************************************************************

View File

@ -19,6 +19,7 @@ TODO:
#include "emu.h"
#include "sk1100.h"
#include "softlist_dev.h"
#include "utf8.h"

View File

@ -27,6 +27,8 @@
#include "cpu/mcs48/mcs48.h"
#include "utf8.h"
DEFINE_DEVICE_TYPE(UTS_400_KEYBOARD, uts_400_keyboard_device, "uts_400kbd", "UTS 400-Format Keyboard (F3621-04-000)")

View File

@ -199,47 +199,6 @@ constexpr int ROT270 = ORIENTATION_SWAP_XY | ORIENTATION_FLIP_Y;
/// \}
// these are UTF-8 encoded strings for common characters
#define UTF8_NBSP "\xc2\xa0" /* non-breaking space */
#define UTF8_MULTIPLY "\xc3\x97" /* multiplication sign */
#define UTF8_DIVIDE "\xc3\xb7" /* division sign */
#define UTF8_SQUAREROOT "\xe2\x88\x9a" /* square root symbol */
#define UTF8_PLUSMINUS "\xc2\xb1" /* plusminus symbol */
#define UTF8_POW_2 "\xc2\xb2" /* superscript 2 */
#define UTF8_POW_X "\xcb\xa3" /* superscript x */
#define UTF8_POW_Y "\xca\xb8" /* superscript y */
#define UTF8_PRIME "\xca\xb9" /* prime symbol */
#define UTF8_DEGREES "\xc2\xb0" /* degrees symbol */
#define UTF8_SMALL_PI "\xcf\x80" /* Greek small letter pi */
#define UTF8_CAPITAL_SIGMA "\xce\xa3" /* Greek capital letter sigma */
#define UTF8_CAPITAL_DELTA "\xce\x94" /* Greek capital letter delta */
#define UTF8_MACRON "\xc2\xaf" /* macron symbol */
#define UTF8_NONSPACE_MACRON "\xcc\x84" /* nonspace macron, use after another char */
#define a_RING "\xc3\xa5" /* small a with a ring */
#define a_UMLAUT "\xc3\xa4" /* small a with an umlaut */
#define o_UMLAUT "\xc3\xb6" /* small o with an umlaut */
#define u_UMLAUT "\xc3\xbc" /* small u with an umlaut */
#define e_ACUTE "\xc3\xa9" /* small e with an acute */
#define n_TILDE "\xc3\xb1" /* small n with a tilde */
#define A_RING "\xc3\x85" /* capital A with a ring */
#define A_UMLAUT "\xc3\x84" /* capital A with an umlaut */
#define O_UMLAUT "\xc3\x96" /* capital O with an umlaut */
#define U_UMLAUT "\xc3\x9c" /* capital U with an umlaut */
#define E_ACUTE "\xc3\x89" /* capital E with an acute */
#define N_TILDE "\xc3\x91" /* capital N with a tilde */
#define UTF8_LEFT "\xe2\x86\x90" /* cursor left */
#define UTF8_RIGHT "\xe2\x86\x92" /* cursor right */
#define UTF8_UP "\xe2\x86\x91" /* cursor up */
#define UTF8_DOWN "\xe2\x86\x93" /* cursor down */
//**************************************************************************
// COMMON MACROS

View File

@ -15,6 +15,8 @@
#include "romload.h"
#include "screen.h"
#include "utf8.h"
namespace ui {

View File

@ -21,6 +21,8 @@
#include "softlist.h"
#include "speaker.h"
#include "utf8.h"
#include <set>
#include <sstream>
#include <type_traits>

View File

@ -46,6 +46,8 @@
#include "../osd/modules/lib/osdlib.h"
#include "../osd/modules/lib/osdobj_common.h"
#include "utf8.h"
#include <chrono>
#include <functional>
#include <type_traits>

View File

@ -14,6 +14,8 @@
#include "rendlay.h"
#include "rendutil.h"
#include "utf8.h"
namespace ui {

54
src/lib/util/utf8.h Normal file
View File

@ -0,0 +1,54 @@
// license:BSD-3-Clause
// copyright-holders:Aaron Giles, Curt Coder, hap
/***************************************************************************
utf8.h
UTF-8 string literals.
***************************************************************************/
#ifndef MAME_LIB_UTIL_UTF8_H
#define MAME_LIB_UTIL_UTF8_H
// these are UTF-8 encoded strings for common characters
#define UTF8_NBSP "\xc2\xa0" /* non-breaking space */
#define UTF8_MULTIPLY "\xc3\x97" /* multiplication sign */
#define UTF8_DIVIDE "\xc3\xb7" /* division sign */
#define UTF8_SQUAREROOT "\xe2\x88\x9a" /* square root symbol */
#define UTF8_PLUSMINUS "\xc2\xb1" /* plusminus symbol */
#define UTF8_POW_2 "\xc2\xb2" /* superscript 2 */
#define UTF8_POW_X "\xcb\xa3" /* superscript x */
#define UTF8_POW_Y "\xca\xb8" /* superscript y */
#define UTF8_PRIME "\xca\xb9" /* prime symbol */
#define UTF8_DEGREES "\xc2\xb0" /* degrees symbol */
#define UTF8_SMALL_PI "\xcf\x80" /* Greek small letter pi */
#define UTF8_CAPITAL_SIGMA "\xce\xa3" /* Greek capital letter sigma */
#define UTF8_CAPITAL_DELTA "\xce\x94" /* Greek capital letter delta */
#define UTF8_MACRON "\xc2\xaf" /* macron symbol */
#define UTF8_NONSPACE_MACRON "\xcc\x84" /* nonspace macron, use after another char */
#define a_RING "\xc3\xa5" /* small a with a ring */
#define a_UMLAUT "\xc3\xa4" /* small a with an umlaut */
#define o_UMLAUT "\xc3\xb6" /* small o with an umlaut */
#define u_UMLAUT "\xc3\xbc" /* small u with an umlaut */
#define e_ACUTE "\xc3\xa9" /* small e with an acute */
#define n_TILDE "\xc3\xb1" /* small n with a tilde */
#define A_RING "\xc3\x85" /* capital A with a ring */
#define A_UMLAUT "\xc3\x84" /* capital A with an umlaut */
#define O_UMLAUT "\xc3\x96" /* capital O with an umlaut */
#define U_UMLAUT "\xc3\x9c" /* capital U with an umlaut */
#define E_ACUTE "\xc3\x89" /* capital E with an acute */
#define N_TILDE "\xc3\x91" /* capital N with a tilde */
#define UTF8_LEFT "\xe2\x86\x90" /* cursor left */
#define UTF8_RIGHT "\xe2\x86\x92" /* cursor right */
#define UTF8_UP "\xe2\x86\x91" /* cursor up */
#define UTF8_DOWN "\xe2\x86\x93" /* cursor down */
#endif // MAME_LIB_UTIL_UTF8_H

View File

@ -44,6 +44,7 @@
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
#include "accomm.lh"

View File

@ -65,6 +65,7 @@
#include "bus/centronics/ctronics.h"
#include "bus/acorn/bus.h"
#include "softlist_dev.h"
#include "utf8.h"
namespace {

View File

@ -53,6 +53,7 @@ Note that left-most digit is not wired up, and therefore will always be blank.
#include "machine/timer.h"
#include "imagedev/cassette.h"
#include "speaker.h"
#include "utf8.h"
#include "acrnsys1.lh"

View File

@ -122,6 +122,7 @@ Hardware: PPIA 8255
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/***************************************************************************
PARAMETERS

View File

@ -55,6 +55,8 @@
#include "formats/uef_cas.h"
#include "formats/csw_cas.h"
#include "utf8.h"
#include "bbc.lh"
#include "bbcm.lh"

View File

@ -337,6 +337,8 @@ Y11 104 103 102 101 100 99 98 97 kN/A k. k00 k0 RGHT LEFT PAUS
#include "emu.h"
#include "victor9k_kb.h"
#include "utf8.h"
//**************************************************************************

View File

@ -10,6 +10,7 @@
#include "agatkeyb.h"
#include "machine/keyboard.ipp"
#include "utf8.h"
/***************************************************************************

View File

@ -111,6 +111,7 @@ Some bugs left :
#include "machine/ram.h"
#include "softlist.h"
#include "speaker.h"
#include "utf8.h"
#define MANUFACTURER_NAME 0x07
#define TV_REFRESH_RATE 0x10

View File

@ -9,6 +9,7 @@
#include "emu.h"
#include "pc1512kb.h"
#include "utf8.h"
//**************************************************************************

View File

@ -61,6 +61,8 @@ II Plus: RAM options reduced to 16/32/48 KB.
#include "formats/ap2_dsk.h"
#include "utf8.h"
namespace {

View File

@ -152,6 +152,8 @@ MIG RAM page 2 $CE02 is the speaker/slot bitfield and $CE03 is the paddle/accele
#include "formats/ap2_dsk.h"
#include "formats/ap_dsk35.h"
#include "utf8.h"
namespace {

View File

@ -85,6 +85,8 @@
#include "formats/ap_dsk35.h"
#include "formats/ap2_dsk.h"
#include "utf8.h"
namespace {

View File

@ -29,6 +29,8 @@
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
void apple3_state::apple3_map(address_map &map)
{
map(0x0000, 0xffff).rw(FUNC(apple3_state::apple3_memory_r), FUNC(apple3_state::apple3_memory_w));

View File

@ -37,6 +37,8 @@
#include "formats/ap2_dsk.h"
#include "utf8.h"
namespace {

View File

@ -53,6 +53,8 @@
#include "formats/dfi_dsk.h"
#include "formats/ipf_dsk.h"
#include "utf8.h"
//**************************************************************************
// CONSTANTS / MACROS

View File

@ -7,6 +7,8 @@
#include "machine/keyboard.ipp"
#include "utf8.h"
DEFINE_DEVICE_TYPE(POFO_KEYBOARD, pofo_keyboard_device, "pofo_keyboard", "Atari Portfolio keyboard");
pofo_keyboard_device::pofo_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :

View File

@ -34,6 +34,7 @@
#include "poly.h"
#include "formats/flex_dsk.h"
#include "softlist_dev.h"
#include "utf8.h"
void poly_state::poly_bank(address_map &map)

View File

@ -213,6 +213,8 @@ ToDo:
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
#include "super80.lh"

View File

@ -32,6 +32,7 @@
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/*

View File

@ -153,6 +153,7 @@ Notes:
#include "video/hd44780.h"
#include "emupal.h"
#include "screen.h"
#include "utf8.h"
namespace {

View File

@ -36,6 +36,8 @@
#include "bus/generic/carts.h"
#include "bus/generic/slot.h"
#include "utf8.h"
class pb1000_state : public driver_device
{

View File

@ -39,6 +39,8 @@
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
#define PLA1_TAG "u78"
#define PLA2_TAG "u88"
#define MOS6567_TAG "u23"

View File

@ -21,6 +21,7 @@
#include "formats/imageutl.h"
#include "screen.h"
#include "softlist_dev.h"
#include "utf8.h"
/***************************************************************************
PARAMETERS

View File

@ -39,6 +39,7 @@ Cassette considerations
#include "huebler.h"
#include "speaker.h"
#include "screen.h"
#include "utf8.h"
/* Keyboard */

View File

@ -28,6 +28,7 @@ To Do:
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
#define UB8830D_TAG "ub8830d"
#define CENTRONICS_TAG "centronics"

View File

@ -43,6 +43,7 @@
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
//**************************************************************************

View File

@ -40,6 +40,8 @@
#include "px8.lh"
#include "utf8.h"
/***************************************************************************
CONSTANTS

View File

@ -53,6 +53,8 @@
#include "speaker.h"
#include "screen.h"
#include "utf8.h"
#include "newbrain.lh"
#include "newbraina.lh"

View File

@ -25,6 +25,8 @@ TODO:
#include "speaker.h"
#include "utf8.h"
// internal artwork
#include "cambrp.lh"
#include "mbaskb.lh"

View File

@ -27,6 +27,8 @@ ROM source notes when dumped from another model, but confident it's the same:
#include "speaker.h"
#include "utf8.h"
// internal artwork
#include "autorace.lh"
#include "gravity.lh"

View File

@ -221,6 +221,8 @@ on Joerg Woerner's datamath.org: http://www.datamath.org/IC_List.htm
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
// internal artwork
#include "t7in1ss.lh"
#include "alphie.lh"

View File

@ -31,6 +31,7 @@
#include "emupal.h"
#include "screen.h"
#include "softlist_dev.h"
#include "utf8.h"
#define I8080_TAG "ua2"
#define TMS5501_TAG "ud2"

View File

@ -61,9 +61,12 @@
#include "emu.h"
#include "kyocera.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/* Read/Write Handlers */
uint8_t pc8201_state::bank_r()

View File

@ -54,16 +54,20 @@ TODO:
****************************************************************************/
#include "emu.h"
#include "cpu/m6800/m6800.h"
#include "imagedev/cassette.h"
#include "imagedev/snapquik.h"
#include "machine/6522via.h"
#include "machine/timer.h"
#include "sound/spkrdev.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
namespace {

View File

@ -57,12 +57,16 @@ TODO:
****************************************************************************/
#include "emu.h"
#include "cpu/m6800/m6800.h"
#include "sound/beep.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
class jr200_state : public driver_device
{

View File

@ -29,6 +29,8 @@
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/***************************************************************************
MEMORY MAPS

View File

@ -33,6 +33,8 @@
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
namespace {

View File

@ -42,6 +42,7 @@
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
WRITE_LINE_MEMBER( pc8001_base_state::crtc_reverse_w )
{

View File

@ -35,6 +35,8 @@
#include "bus/rs232/rs232.h"
#include "utf8.h"
/* Fake Keyboard */
void pc8401a_state::scan_keyboard()

View File

@ -108,6 +108,8 @@
#include "softlist_dev.h"
#include "utf8.h"
#define PC8801FH_OSC1 XTAL(28'636'363)
#define PC8801FH_OSC2 XTAL(42'105'200)

View File

@ -10,6 +10,7 @@
#include "mm1kb.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"

View File

@ -70,6 +70,7 @@ Notes:
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
namespace {

View File

@ -24,6 +24,8 @@
#include "cpu/m6805/m68705.h"
#include "utf8.h"
//**************************************************************************
// LLE KEYBOARD DEVICE
//**************************************************************************

View File

@ -10,6 +10,8 @@
* F12 - XXX
*/
#include "utf8.h"
INPUT_PORTS_START( poisk1_keyboard_v89 )
PORT_START("Y1")
PORT_BIT( 0x001, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(']') PORT_CHAR('}') // scancode 0x55

View File

@ -40,6 +40,8 @@
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
// Debugging
#define VERBOSE 0

View File

@ -18,6 +18,8 @@
#include "psion5.h"
#include "utf8.h"
#define LOG_UNKNOWNS (1 << 0)
#define LOG_IRQ (1 << 1)
#define LOG_DISPLAY (1 << 2)

View File

@ -239,6 +239,8 @@ TODO:
#include "formats/spc1000_cas.h"
#include "utf8.h"
namespace {

View File

@ -22,6 +22,8 @@
#include "cpu/mcs48/mcs48.h"
#include "machine/keyboard.ipp"
#include "utf8.h"
//**************************************************************************
// DEVICE TYPE DEFINITION
//**************************************************************************

View File

@ -45,6 +45,8 @@ RUN
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/* Read/Write Handlers */

View File

@ -37,6 +37,8 @@
#include "formats/2d_dsk.h"
#include "formats/mz_cas.h"
#include "utf8.h"
#define MASTER_CLOCK 17.73447_MHz_XTAL / 5 /* TODO: was 4 MHz, but otherwise cassette won't work due of a bug with MZF support ... */

View File

@ -7,6 +7,8 @@
#include "sound/spkrdev.h"
#include "speaker.h"
#include "utf8.h"
DEFINE_DEVICE_TYPE(PCD_KEYBOARD, pcd_keyboard_device, "pcd_kbd", "Siemens PC-D Keyboard")
ROM_START( pcd_keyboard )

View File

@ -89,6 +89,8 @@
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
#define SCREEN_TAG "screen"

View File

@ -7,14 +7,18 @@ Skeleton driver for Ann Arbor Ambassador terminal.
************************************************************************************************************************************/
#include "emu.h"
#include "bus/rs232/rs232.h"
#include "cpu/z80/z80.h"
#include "machine/74259.h"
#include "machine/input_merger.h"
#include "machine/scn_pci.h"
#include "machine/nvram.h"
#include "screen.h"
#include "utf8.h"
class aaa_state : public driver_device
{
public:

View File

@ -14,12 +14,16 @@
****************************************************************************/
#include "emu.h"
#include "cpu/h8/h83003.h"
#include "machine/nvram.h"
#include "machine/at28c16.h"
#include "machine/nvram.h"
#include "machine/timer.h"
#include "screen.h"
#include "speaker.h"
#include "machine/timer.h"
#include "utf8.h"
class lw700i_state : public driver_device
{

View File

@ -7,12 +7,16 @@
****************************************************************************/
#include "emu.h"
#include "cpu/m37710/m37710.h"
#include "machine/am79c30.h"
#include "video/hd44780.h"
#include "emupal.h"
#include "screen.h"
#include "utf8.h"
class eurit_state : public driver_device
{
public:

View File

@ -13,6 +13,7 @@
#include "video/hd44780.h"
#include "emupal.h"
#include "screen.h"
#include "utf8.h"
namespace {

View File

@ -192,6 +192,7 @@ Beeper Circuit, all ICs shown:
#include "emu.h"
#include "cpu/mcs48/mcs48.h" //Keyboard MCU ... talks to the 8278 on the keyboard circuit
#include "cpu/z80/z80.h"
#include "imagedev/floppy.h"
@ -200,12 +201,15 @@ Beeper Circuit, all ICs shown:
#include "machine/wd_fdc.h"
#include "sound/beep.h"
#include "video/tms9927.h" //Display hardware
#include "emupal.h"
#include "screen.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "formats/itt3030_dsk.h"
#include "debugger.h"
#include "utf8.h"
#define MAIN_CLOCK XTAL_4.194MHz

View File

@ -19,6 +19,7 @@ but the syntax has yet to be worked out. BAUD [0-9] is allowed but what is it do
************************************************************************************/
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "imagedev/cassette.h"
#include "imagedev/floppy.h"
@ -29,10 +30,13 @@ but the syntax has yet to be worked out. BAUD [0-9] is allowed but what is it do
#include "sound/spkrdev.h"
#include "video/mc6847.h"
#include "bus/centronics/ctronics.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
class shine_state : public driver_device
{

View File

@ -95,6 +95,8 @@ TODO
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
#define MAIN_CLOCK 14_MHz_XTAL
#define AY_CLOCK MAIN_CLOCK / 8 /* 1.75 Mhz */

View File

@ -27,6 +27,8 @@
#include "formats/svi_cas.h"
#include "utf8.h"
//**************************************************************************
// CONSTANTS & MACROS

View File

@ -58,10 +58,13 @@ via the PC 16 Terminal, operates independently after programming), connects to t
#include "sound/beep.h"
#include "cpu/mcs48/mcs48.h"
#include "cpu/z80/z80.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
namespace {
@ -77,10 +80,7 @@ public:
m_wdfdc(*this, "wdfdc"),
m_ram(*this, RAM_TAG),
m_z80(*this, "z80"),
m_flop0(*this, "wdfdc:0"),
m_flop1(*this, "wdfdc:1"),
m_flop2(*this, "wdfdc:2"),
m_flop3(*this, "wdfdc:3"),
m_flop(*this, "wdfdc:%u", 0),
m_keys(*this, "KEYS.%u", 0)
{ }
@ -115,10 +115,7 @@ private:
required_device<wd1770_device> m_wdfdc;
required_device<ram_device> m_ram;
required_device<cpu_device> m_z80;
required_device<floppy_connector> m_flop0;
required_device<floppy_connector> m_flop1;
required_device<floppy_connector> m_flop2;
required_device<floppy_connector> m_flop3;
required_device_array<floppy_connector, 4> m_flop;
required_ioport_array<8> m_keys;
u8 m_p1 = 0, m_p2 = 0, m_data = 0, m_p40 = 0;
@ -128,7 +125,7 @@ private:
void alphatpc16_state::machine_start()
{
m_maincpu->space(AS_PROGRAM).install_ram(0, m_ram->size() - 1, m_ram->pointer());
m_wdfdc->set_floppy(m_flop0->get_device());
m_wdfdc->set_floppy(m_flop[0]->get_device());
m_bsy = false;
m_req = false;
@ -171,16 +168,16 @@ u8 alphatpc16_state::p00_r()
switch(m_p40 & 0xf0)
{
case 0x00:
ret |= m_flop0->get_device()->exists() << 3;
ret |= m_flop[0]->get_device()->exists() << 3;
break;
case 0x10:
ret |= m_flop1->get_device()->exists() << 3;
ret |= m_flop[1]->get_device()->exists() << 3;
break;
case 0x20:
ret |= m_flop2->get_device()->exists() << 3;
ret |= m_flop[2]->get_device()->exists() << 3;
break;
case 0x40:
ret |= m_flop3->get_device()->exists() << 3;
ret |= m_flop[3]->get_device()->exists() << 3;
break;
}
return ret;
@ -191,20 +188,20 @@ void alphatpc16_state::p40_w(u8 data)
switch(data & 0xf0)
{
case 0x00:
m_wdfdc->set_floppy(m_flop0->get_device());
m_flop0->get_device()->ss_w(BIT(data, 2));
m_wdfdc->set_floppy(m_flop[0]->get_device());
m_flop[0]->get_device()->ss_w(BIT(data, 2));
break;
case 0x10:
m_wdfdc->set_floppy(m_flop1->get_device());
m_flop1->get_device()->ss_w(BIT(data, 2));
m_wdfdc->set_floppy(m_flop[1]->get_device());
m_flop[1]->get_device()->ss_w(BIT(data, 2));
break;
case 0x20:
m_wdfdc->set_floppy(m_flop2->get_device());
m_flop2->get_device()->ss_w(BIT(data, 2));
m_wdfdc->set_floppy(m_flop[2]->get_device());
m_flop[2]->get_device()->ss_w(BIT(data, 2));
break;
case 0x40:
m_wdfdc->set_floppy(m_flop3->get_device());
m_flop3->get_device()->ss_w(BIT(data, 2));
m_wdfdc->set_floppy(m_flop[3]->get_device());
m_flop[3]->get_device()->ss_w(BIT(data, 2));
break;
}
m_p40 = data;
@ -503,11 +500,11 @@ void alphatpc16_state::alphatpc16(machine_config &config)
m_z80->set_addrmap(AS_PROGRAM, &alphatpc16_state::apc16_z80_map);
m_z80->set_addrmap(AS_IO, &alphatpc16_state::apc16_z80_io);
WD1770(config, m_wdfdc, 8_MHz_XTAL);
FLOPPY_CONNECTOR(config, m_flop0, atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
dynamic_cast<device_slot_interface *>(m_flop0.target())->set_fixed(true);
FLOPPY_CONNECTOR(config, m_flop1, atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
FLOPPY_CONNECTOR(config, m_flop2, atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
FLOPPY_CONNECTOR(config, m_flop3, atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
FLOPPY_CONNECTOR(config, m_flop[0], atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
dynamic_cast<device_slot_interface *>(m_flop[0].target())->set_fixed(true);
FLOPPY_CONNECTOR(config, m_flop[1], atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
FLOPPY_CONNECTOR(config, m_flop[2], atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
FLOPPY_CONNECTOR(config, m_flop[3], atpc16_floppies, "525dd", floppy_image_device::default_mfm_floppy_formats);
i8741a_device& i8741(I8741A(config, "i8741", 4.608_MHz_XTAL));
i8741.p1_in_cb().set(FUNC(alphatpc16_state::p1_r));

View File

@ -63,6 +63,8 @@
#include "screen.h"
#include "softlist_dev.h"
#include "utf8.h"
void microtan_state::mt65_map(address_map &map)
{

View File

@ -38,6 +38,8 @@
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
#include "formats/oric_dsk.h"
#include "formats/oric_tap.h"

View File

@ -11,6 +11,8 @@
#include "speaker.h"
#include "utf8.h"
//**************************************************************************

View File

@ -97,6 +97,8 @@ Notes:
#include "emu.h"
#include "tmc600.h"
#include "utf8.h"
uint8_t tmc600_state::rtc_r()
{
m_rtc_int = m_vismac_reg_latch >> 3;

View File

@ -24,6 +24,7 @@
****************************************************************************/
#include "emu.h"
#include "bus/rs232/rs232.h"
#include "cpu/m6502/m6502.h"
#include "machine/input_merger.h"
@ -31,9 +32,12 @@
#include "machine/mos6551.h"
#include "sound/beep.h"
#include "video/mc6845.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
#define ACIA_TAG "acia"
#define CRTC_TAG "crtc"
#define RS232_TAG "rs232"

View File

@ -2,12 +2,13 @@
// copyright-holders:AJR
/***********************************************************************************************************************************
TeleVideo 950 101-key serial keyboard emulation.
TeleVideo 950 101-key serial keyboard emulation.
************************************************************************************************************************************/
#include "emu.h"
#include "tv950kb.h"
#include "utf8.h"
DEFINE_DEVICE_TYPE(TV950_KEYBOARD, tv950kb_device, "tv950kb", "TeleVideo 950 Keyboard")

View File

@ -97,6 +97,8 @@
#include "formats/basicdsk.h"
#include "formats/cd90_640_dsk.h"
#include "utf8.h"
/**************************** common *******************************/

View File

@ -113,6 +113,8 @@ TODO:
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
#define VERBOSE 0
#include "logmacro.h"

View File

@ -80,6 +80,8 @@
#include "screen.h"
#include "softlist_dev.h"
#include "utf8.h"
#include "ti74.lh"
#include "ti95.lh"

View File

@ -34,6 +34,8 @@
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/* Memory Banking */

View File

@ -182,6 +182,8 @@ A=AMA, P=PRO, these keys don't exist, and so the games cannot be played.
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
namespace {

View File

@ -33,6 +33,8 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "machine/i8255.h"
#include "utf8.h"
#include "amico2k.lh"

View File

@ -79,6 +79,7 @@ To Do / Status:
#include "machine/input_merger.h"
#include "formats/td0_dsk.h"
#include "softlist_dev.h"
#include "utf8.h"
namespace {

View File

@ -57,6 +57,7 @@ Status: Beeps every so often. Unable to read the disk.
***************************************************************************/
#include "emu.h"
#include "cpu/z80/z80.h"
//#include "machine/ram.h"
#include "imagedev/floppy.h"
@ -70,13 +71,17 @@ Status: Beeps every so often. Unable to read the disk.
#include "sound/beep.h"
#include "machine/timer.h"
#include "video/mc6845.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "formats/imd_dsk.h"
//#include "formats/trs80_dsk.h"
//#include "formats/dmk_dsk.h"
#include "utf8.h"
class max80_state : public driver_device
{
public:

View File

@ -66,6 +66,8 @@ For Model III:
#include "emupal.h"
#include "softlist_dev.h"
#include "utf8.h"
class meritum_state : public trs80_state
{
public:

View File

@ -114,6 +114,8 @@ To Do / Status:
#include "machine/clock.h"
#include "bus/rs232/rs232.h"
#include "softlist_dev.h"
#include "utf8.h"
#define MASTER_XTAL 12164800

View File

@ -157,6 +157,7 @@ ht1080z works
#include "machine/input_merger.h"
#include "sound/ay8910.h"
#include "softlist_dev.h"
#include "utf8.h"
void trs80_state::trs80_mem(address_map &map)

View File

@ -9,6 +9,8 @@
#include "emu.h"
#include "trs80m2kb.h"
#include "utf8.h"
//**************************************************************************

View File

@ -82,6 +82,8 @@ trs80m4p: Floppy not working, so machine is useless.
#include "formats/trs80_dsk.h"
#include "formats/dmk_dsk.h"
#include "utf8.h"
void trs80m3_state::m3_mem(address_map &map)

View File

@ -50,6 +50,8 @@ The BASIC
#include "formats/pyldin_dsk.h"
#include "utf8.h"
class pyl601_state : public driver_device
{

View File

@ -15,6 +15,8 @@ through software commands.
#include "emu.h"
#include "v102_kbd.h"
#include "utf8.h"
DEFINE_DEVICE_TYPE(V102_KEYBOARD, v102_keyboard_device, "v102_kbd", "Visual 102 Keyboard")
DEFINE_DEVICE_TYPE(V550_KEYBOARD, v550_keyboard_device, "v550_kbd", "Visual 550 Keyboard")

View File

@ -157,6 +157,8 @@ Notes:
#include "softlist.h"
#include "speaker.h"
#include "utf8.h"
void v1050_state::set_interrupt(int line, int state)
{

View File

@ -149,6 +149,7 @@ TODO:
#include "crvision.h"
#include "softlist_dev.h"
#include "speaker.h"
#include "utf8.h"
/***************************************************************************

View File

@ -31,16 +31,20 @@
***************************************************************************/
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "machine/bankdev.h"
#include "machine/ram.h"
#include "machine/kb3600.h"
#include "sound/sn76496.h"
#include "sound/spkrdev.h"
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "utf8.h"
enum
{
TEXT = 0,

Some files were not shown because too many files have changed in this diff Show More