]> git.sur5r.net Git - cc65/blob - asminc/telemon24.inc
0b58d63a67d0bc8ecaf7cd1f312937b0aeac8dbf
[cc65] / asminc / telemon24.inc
1 ;
2 ; Oric Telemon definition
3 ; Telemon 2.4
4 ;
5
6
7 ; ---------------------------------------------------------------------------
8 ; Constants
9
10 SCREEN_XSIZE    = 40            ; screen columns
11 SCREEN_YSIZE    = 28            ; screen rows
12
13 FUNCTKEY        = $A5
14
15 FNAME_LEN       = 11            ; maximum length of file-name
16
17
18 ; ---------------------------------------------------------------------------
19 ; Zero page
20
21
22
23
24 ; ---------------------------------------------------------------------------
25 ; Low memory
26
27
28
29
30 ; ---------------------------------------------------------------------------
31 ; I/O locations
32
33 ; 6522
34 .struct VIA                     ; Versatile Interface Adapter
35         .res    $0300
36 PRB     .byte                   ; Port Register B
37 PRA     .byte                   ; Port Register A
38 DDRB    .byte                   ; Data Direction Register B
39 DDRA    .byte                   ; Data Direction Register A
40 T1      .word                   ; Timer 1
41 T1L     .word                   ; Timer 1 Latch
42 T2      .word                   ; Timer 2
43 SR      .byte                   ; Shift Register
44 ACR     .byte                   ; Auxiliary Control Register
45 PCR     .byte                   ; Peripheral Control Register
46 IFR     .byte                   ; Interrupt Flags Register
47 IER     .byte                   ; Interrupt Enable Register
48 PRA2    .byte                   ; Port Register A without handshaking
49 .endstruct
50
51 ; 6551
52 .struct ACIA                    ; Asynchronous Communications Interface Adapter
53         .res    $031C
54 DATA    .byte
55 STATUS  .byte
56 CMD     .byte                   ; Command register
57 CTRL    .byte                   ; Control register
58 .endstruct
59
60 SCREEN          := $BB80
61
62
63 ; ---------------------------------------------------------------------------
64 ; ROM entries
65
66 XWR0   := $10 
67 XWSTR0 := $14 
68