summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/pc9801.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/pc9801.h')
-rw-r--r--src/mame/includes/pc9801.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mame/includes/pc9801.h b/src/mame/includes/pc9801.h
index e4d4e2e98d3..c426a5da972 100644
--- a/src/mame/includes/pc9801.h
+++ b/src/mame/includes/pc9801.h
@@ -30,6 +30,7 @@
#include "bus/scsi/scsihd.h"
#include "sound/beep.h"
+//#include "sound/dac.h"
#include "sound/spkrdev.h"
#include "sound/ym2608.h"
@@ -105,6 +106,7 @@ public:
m_video_ram_2(*this, "video_ram_2"),
m_ext_gvram(*this, "ext_gvram"),
m_beeper(*this, "beeper"),
+ m_dac(*this, "dac"),
m_ram(*this, RAM_TAG),
m_ipl(*this, "ipl_bank"),
m_gfxdecode(*this, "gfxdecode"),
@@ -175,7 +177,9 @@ private:
required_shared_ptr<uint16_t> m_video_ram_1;
required_shared_ptr<uint16_t> m_video_ram_2;
optional_shared_ptr<uint32_t> m_ext_gvram;
- required_device<beep_device> m_beeper;
+ optional_device<beep_device> m_beeper;
+// optional_device<dac_1bit_device> m_dac;
+ optional_device<speaker_sound_device> m_dac;
optional_device<ram_device> m_ram;
optional_device<address_map_bank_device> m_ipl;
required_device<gfxdecode_device> m_gfxdecode;
@@ -317,7 +321,8 @@ private:
DECLARE_WRITE_LINE_MEMBER(dack1_w);
DECLARE_WRITE_LINE_MEMBER(dack2_w);
DECLARE_WRITE_LINE_MEMBER(dack3_w);
- void ppi_sys_portc_w(uint8_t data);
+ void ppi_sys_beep_portc_w(uint8_t data);
+ void ppi_sys_dac_portc_w(uint8_t data);
DECLARE_WRITE_LINE_MEMBER(fdc_2dd_irq);
DECLARE_WRITE_LINE_MEMBER(pc9801rs_fdc_irq);
@@ -330,7 +335,6 @@ private:
TIMER_DEVICE_CALLBACK_MEMBER( mouse_irq_cb );
uint8_t unk_r();
-
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
uint32_t a20_286(bool state);
@@ -393,6 +397,9 @@ private:
uint8_t m_ide_sel;
+ // starting from PC9801VF/U buzzer is substituted with a DAC1BIT
+ bool m_dac_disable;
+
/* PC9801RS specific, move to specific state */
uint8_t m_gate_a20; //A20 line
uint8_t m_access_ctrl; // DMA related