summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/husky.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-05-15 18:15:39 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-05-15 18:15:39 +0200
commit7fd817a1d637d1c7c40da14dade8f63460d1b3a4 (patch)
tree91569462245bc5610e430bab28b31421014b2c97 /src/mame/drivers/husky.cpp
parent761d726697721751ecbe1e972b7760dad5d11ff9 (diff)
various drivers: READ/WRITE macros removal (nw)
Diffstat (limited to 'src/mame/drivers/husky.cpp')
-rw-r--r--src/mame/drivers/husky.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/husky.cpp b/src/mame/drivers/husky.cpp
index 0ec5f7d2cd5..1c9260f88a6 100644
--- a/src/mame/drivers/husky.cpp
+++ b/src/mame/drivers/husky.cpp
@@ -62,11 +62,11 @@ protected:
virtual void machine_reset() override;
private:
- DECLARE_READ8_MEMBER(porta_r);
- DECLARE_WRITE8_MEMBER(porta_w);
- DECLARE_READ8_MEMBER(portb_r);
- DECLARE_READ8_MEMBER(portc_r);
- DECLARE_WRITE8_MEMBER(portc_w);
+ uint8_t porta_r();
+ void porta_w(uint8_t data);
+ uint8_t portb_r();
+ uint8_t portc_r();
+ void portc_w(uint8_t data);
DECLARE_WRITE8_MEMBER(serial_tx_w);
DECLARE_WRITE8_MEMBER(cursor_w);
DECLARE_WRITE8_MEMBER(curinh_w);
@@ -199,7 +199,7 @@ static INPUT_PORTS_START(husky)
INPUT_PORTS_END
-READ8_MEMBER(husky_state::porta_r)
+uint8_t husky_state::porta_r()
{
uint8_t data = 0xff;
@@ -211,12 +211,12 @@ READ8_MEMBER(husky_state::porta_r)
return data;
}
-WRITE8_MEMBER(husky_state::porta_w)
+void husky_state::porta_w(uint8_t data)
{
m_keydata = data;
}
-READ8_MEMBER(husky_state::portb_r)
+uint8_t husky_state::portb_r()
{
uint8_t data = 0xff;
@@ -232,7 +232,7 @@ READ8_MEMBER(husky_state::portb_r)
Bit 2 = Power low warning (1 = Power OK, 0 = Power low)
Input bits 7,6,4,3,2
*/
-READ8_MEMBER(husky_state::portc_r)
+uint8_t husky_state::portc_r()
{
uint8_t data = 0x23;
@@ -245,7 +245,7 @@ READ8_MEMBER(husky_state::portc_r)
/*
Output bits 5,1,0
*/
-WRITE8_MEMBER(husky_state::portc_w)
+void husky_state::portc_w(uint8_t data)
{
m_beeper->set_state(!BIT(data, 0));
m_rs232->write_rts(BIT(data, 1));