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 ; ---------------------------------------------------------------------------
30 PTR_READ_DEST := $2C ; used for XFREAD and XWRITE only in telemon 3.0
43 ; ---------------------------------------------------------------------------
49 ; ---------------------------------------------------------------------------
53 .struct VIA ; Versatile Interface Adapter
55 PRB .byte ; Port Register B
56 PRA .byte ; Port Register A
57 DDRB .byte ; Data Direction Register B
58 DDRA .byte ; Data Direction Register A
60 T1L .word ; Timer 1 Latch
62 SR .byte ; Shift Register
63 ACR .byte ; Auxiliary Control Register
64 PCR .byte ; Peripheral Control Register
65 IFR .byte ; Interrupt Flags Register
66 IER .byte ; Interrupt Enable Register
67 PRA2 .byte ; Port Register A without handshaking
71 .struct VIA2 ; Versatile Interface Adapter
73 PRB .byte ; Port Register B
74 PRA .byte ; Port Register A
75 DDRB .byte ; Data Direction Register B
76 DDRA .byte ; Data Direction Register A
78 T1L .word ; Timer 1 Latch
80 SR .byte ; Shift Register
81 ACR .byte ; Auxiliary Control Register
82 PCR .byte ; Peripheral Control Register
83 IFR .byte ; Interrupt Flags Register
84 IER .byte ; Interrupt Enable Register
85 PRA2 .byte ; Port Register A without handshaking
89 .struct ACIA ; Asynchronous Communications Interface Adapter
93 CMD .byte ; Command register
94 CTRL .byte ; Control register
100 ; ---------------------------------------------------------------------------
103 ; primitives telemon 2.4
112 XFREAD = $27 ; only in TELEMON 3.0
113 XOPEN = $30 ; only in TELEMON 3.0
114 XCOSCR = $34 ; switch off cursor
115 XCSSCR = $35 ; switch on cursor
116 XCLOSE = $3A ; only in TELEMON 3.0 Close file
117 XFWRITE = $3B ; only in TELEMON 3.0 write file
132 ; ---------------------------------------------------------------------------
140 ; ---------------------------------------------------------------------------
146 MAX_BUFEDT_LENGTH=110
154 .macro BRK_TELEMON value