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
19 ; ---------------------------------------------------------------------------
22 ; ---------------------------------------------------------------------------
39 PTR_READ_DEST := $2C ; used for XFREAD and XWRITE only in telemon 3.0
52 ; ---------------------------------------------------------------------------
58 ; ---------------------------------------------------------------------------
62 .struct VIA ; Versatile Interface Adapter
64 PRB .byte ; Port Register B
65 PRA .byte ; Port Register A
66 DDRB .byte ; Data Direction Register B
67 DDRA .byte ; Data Direction Register A
69 T1L .word ; Timer 1 Latch
71 SR .byte ; Shift Register
72 ACR .byte ; Auxiliary Control Register
73 PCR .byte ; Peripheral Control Register
74 IFR .byte ; Interrupt Flags Register
75 IER .byte ; Interrupt Enable Register
76 PRA2 .byte ; Port Register A without handshaking
80 .struct VIA2 ; Versatile Interface Adapter
82 PRB .byte ; Port Register B
83 PRA .byte ; Port Register A
84 DDRB .byte ; Data Direction Register B
85 DDRA .byte ; Data Direction Register A
87 T1L .word ; Timer 1 Latch
89 SR .byte ; Shift Register
90 ACR .byte ; Auxiliary Control Register
91 PCR .byte ; Peripheral Control Register
92 IFR .byte ; Interrupt Flags Register
93 IER .byte ; Interrupt Enable Register
94 PRA2 .byte ; Port Register A without handshaking
98 .struct ACIA ; Asynchronous Communications Interface Adapter
102 CMD .byte ; Command register
103 CTRL .byte ; Control register
109 ; ---------------------------------------------------------------------------
112 ; primitives telemon 2.4
121 XVARS = $24 ; only in TELEMON 3.0, in telemon 2.4, it's XNOMFI ($24)
122 XFREAD = $27 ; only in TELEMON 3.0
123 XOPEN = $30 ; only in TELEMON 3.0
124 XCOSCR = $34 ; switch off cursor
125 XCSSCR = $35 ; switch on cursor
126 XCLOSE = $3A ; only in TELEMON 3.0 Close file
127 XFWRITE = $3B ; only in TELEMON 3.0 write file
142 ; ---------------------------------------------------------------------------
150 ; ---------------------------------------------------------------------------
156 MAX_BUFEDT_LENGTH=110
160 CH376_COMMAND := $341
164 .macro BRK_TELEMON value