Skip to content

Commit 6c16980

Browse files
authored
heathzenith/z29.cpp: Add some documentation based on ROM listing (#12526)
1 parent 152ebf3 commit 6c16980

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: src/mame/heathzenith/z29.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,30 @@ void z29_state::keyin_w(int state)
7474
m_keyin = state;
7575
}
7676

77+
/**
78+
* Port 1 (based on ROM listing)
79+
*
80+
* bit 0 - KB output line
81+
* bit 1 - KB input line
82+
* bit 2 - 0 = normal video 1 = suppressed
83+
* bit 3 - 0 = setup mode locked 1 = normal
84+
* bit 4 - Data Terminal Ready
85+
* bit 5 - Ready to Send
86+
* bit 6 - Expansion socket
87+
* bit 7 - Clock run for CRT controller
88+
*/
7789
u8 z29_state::p1_r()
7890
{
7991
return m_keyin ? 0xfd : 0xff;
8092
}
8193

94+
/**
95+
* Port 3 (based on ROM listing)
96+
*
97+
* bit 1 - predefined serial port transmit pin
98+
* bit 4 - 0 = clear memory 1 = DMA CRTC
99+
* bit 5 - Clear to Send
100+
*/
82101
void z29_state::p3_w(u8 data)
83102
{
84103
m_dmatype = BIT(data, 4);

0 commit comments

Comments
 (0)