2 ; Oric Telemon definition
3 ; Telemon 2.4 & Telemon 3.0
4 ; For telemon 3.0 check http://orix.oric.org
8 ; ---------------------------------------------------------------------------
11 SCREEN_XSIZE = 40 ; screen columns
12 SCREEN_YSIZE = 28 ; screen rows
16 FNAME_LEN = 11 ; maximum length of file-name
20 ; ---------------------------------------------------------------------------
23 ; ---------------------------------------------------------------------------
40 PTR_READ_DEST := $2C ; used for XFREAD and XWRITE only in telemon 3.0
53 ; ---------------------------------------------------------------------------
59 ; ---------------------------------------------------------------------------
63 .struct VIA ; Versatile Interface Adapter
65 PRB .byte ; Port Register B
66 PRA .byte ; Port Register A
67 DDRB .byte ; Data Direction Register B
68 DDRA .byte ; Data Direction Register A
70 T1L .word ; Timer 1 Latch
72 SR .byte ; Shift Register
73 ACR .byte ; Auxiliary Control Register
74 PCR .byte ; Peripheral Control Register
75 IFR .byte ; Interrupt Flags Register
76 IER .byte ; Interrupt Enable Register
77 PRA2 .byte ; Port Register A without handshaking
81 .struct VIA2 ; Versatile Interface Adapter
83 PRB .byte ; Port Register B
84 PRA .byte ; Port Register A
85 DDRB .byte ; Data Direction Register B
86 DDRA .byte ; Data Direction Register A
88 T1L .word ; Timer 1 Latch
90 SR .byte ; Shift Register
91 ACR .byte ; Auxiliary Control Register
92 PCR .byte ; Peripheral Control Register
93 IFR .byte ; Interrupt Flags Register
94 IER .byte ; Interrupt Enable Register
95 PRA2 .byte ; Port Register A without handshaking
99 .struct ACIA ; Asynchronous Communications Interface Adapter
103 CMD .byte ; Command register
104 CTRL .byte ; Control register
110 ; ---------------------------------------------------------------------------
113 ; primitives telemon 2.4
122 XVARS = $24 ; only in TELEMON 3.0, in telemon 2.4, it's XNOMFI ($24)
123 XFREAD = $27 ; only in TELEMON 3.0
124 XOPEN = $30 ; only in TELEMON 3.0
125 XCOSCR = $34 ; switch off cursor
126 XCSSCR = $35 ; switch on cursor
127 XCLOSE = $3A ; only in TELEMON 3.0 Close file
128 XFWRITE = $3B ; only in TELEMON 3.0 write file
143 ; ---------------------------------------------------------------------------
144 ; ROM entries variables
148 ; ---------------------------------------------------------------------------
156 ; ---------------------------------------------------------------------------
162 MAX_BUFEDT_LENGTH=110
166 CH376_COMMAND := $341
170 .macro BRK_TELEMON value