Previous 15994 Revisions Next

r4431 Sunday 22nd March, 2009 at 12:13:08 UTC by Robbbert
[TRS80] WIP: documentation
[src/mess/drivers]trs80.c

src/mess/drivers/trs80.c
r4430r4431
3232IRQ mode 1
3333NMI
3434
35Printer: Level II usually 37e8; System80 uses port FD; Model 4 uses port F8
36Uart: TR1602, equivalent to the uart used in the Exidy Sorcerer
37
3538I/O ports
3639FF:
3740- bits 0 and 1 are for writing a cassette
r4430r4431
3942- bit 3 switches the display between 64 or 32 characters per line
4043- bit 6 remembers the 32/64 screen mode (inverted)
4144- bit 7 is for reading from a cassette
45
4246FE:
4347- bit 0 is for selecting inverse video of the whole screen on a lnw80
4448- bit 2 enables colour on a lnw80
4549- bit 3 is for selecting roms (low) or 16k hires area (high) on a lnw80
4650- bit 4 selects internal cassette player (low) or external unit (high) on a system-80
51
4752FD:
4853- bit 7 for reading the printer status on a system-80
4954- all bits for writing to a printer on a system-80
55
5056F9:
5157- UART data (write) status (read) on a system-80
58
5259F8:
5360- UART data (read) status (write) on a system-80
61For Model 4...
62F8h Write (output) send data to the printer data lines with strobe pulsed low.
63F8h Read (input) reads printer status as follows:
64d7 BUSY ('1'=true)
65d6 Out-of-Paper ('1'=true)
66d5 Device Select ('1'=true)
67d4 ERROR, printer fault ('1'=true)
68d3..d0 Reserved
69
5470EB:
5571- UART data (read and write) on a Model III/4
72
5673EA:
5774- UART status (read and write) on a Model III/4
75EAh Output (Write), when E8h bit d1 is '1' (Control Register enabled):
76bits d7..d3 are UART control; d2..d0 are Modem line control
77d7 Even Parity Enable ('1'=even, '0'=odd)
78d6='1',d5='1' for 8 bits
79d6='0',d5='1' for 7 bits
80d6='1',d5='0' for 6 bits
81d6='0',d5='0' for 5 bits
82d4 Stop Bit Select ('1'=two stop bits, '0'=one stop bit)
83d3 Parity Inhibit ('1'=disable; No parity, '0'=parity enabled)
84d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
85d1 Data-Terminal-Ready (DTR), pin 20
86d0 Request-to-Send (RTS), pin 4
87EAh Output (Write), when E8h bit d1 is '0' (Control Register disabled): bits d5..d3 are secondary line control, and could even be used for steering or multiplexing logic; d2..d0 are Modem line control same as above
88d7,d6 Not used
89d5 Secondary Unassigned, pin 18
90d4 Secondary Transmit Data, pin 14
91d3 Secondary Request-to-Send, pin 19
92d2 Break ('0'=disable transmit data; continuous RS232 'SPACE' condition)
93d1 Data-Terminal-Ready (DTR), pin 20
94d0 Request-to-Send (RTS), pin 4
95EAh Input (Read): UART Status Register
96d7 Data Received ('1'=condition true)
97d6 Transmitter Holding Register empty ('1'=condition true)
98d5 Overrun Error ('1'=condition true)
99d4 Framing Error ('1'=condition true)
100d3 Parity Error ('1'=condition true)
101d2..d0 Not used
102
58103E9:
59104- UART Configuration jumpers (read) on a Model III/4
105Rx = bits 0..3, Tx = bits 4..7
10600h    50 
10711h    75 
10822h    100 
10933h    134.5 
11044h    150 
11155h    300 
11266h    600 
11377h    1200 
11488h    1800 
11599h    2000 
116AAh    2400 
117BBh    3600 
118CCh    4800 
119DDh    7200 
120EEh    9600 
121FFh    19200 
122
60123E8:
61124- UART Modem Status register (read) on a Model III/4
62125- UART Master Reset (write) on a Model III/4
126Port E8h
127E8h Output: UART Master Reset, enables UART control register load
128d1 when '1' enables control register load (see Port EAh description below).
129Input: Modem Status Register
130d7 Clear-to-Send (CTS), Pin 5
131d6 Data-Set-Ready (DSR), pin 6
132d5 Carrier Detect (CD), pin 8
133d4 Ring Indicator (RI), pin 22
134d3..d2 Not used
135d0 ?? UART Receiver Input, pin 20 (pin 20 is also DTR)
136
63137***************************************************************************
64138
65139Not dumped:

Previous 15994 Revisions Next


© 1998-2018 The MESS Team