-
Notifications
You must be signed in to change notification settings - Fork 10
/
ctmon65.inc
87 lines (87 loc) · 1.75 KB
/
ctmon65.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;*********************************************************
; FILE: ctmon65.inc
;
; Applications wishing to run under CTMON65 should include
; this file, as it defines vectors and other pieces of
; necessary data.
;*********************************************************
;
include "config.inc"
;
bss
org ROM_START
;
;=========================================================
; Jump table to common functions. The entries in this
; table are used by external programs, so nothing can be
; moved or removed from this table. New entries always
; go at the end. Many of these are internal functions
; and I figured they might be handy for others.
;
RESET ds 3
WARM ds 3
;
; These are the major and minor revision numbers so that
; code can check to see which CTMON65 version is running.
;
CTMON65ver ds 1
CTMON65rev ds 1
ds 1 ;unused
;
; Console related functions
;
cin ds 3
cout ds 3
cstatus ds 3
putsil ds 3
getline ds 3
crlf ds 3
HexA ds 3
;
; Low-level functions to access the SD card system
;
if SD_ENABLED
xParInit ds 3
xParSetWrite ds 3
xParSetRead ds 3
xParWriteByte ds 3
xParReadByte ds 3
;
; Higher level SD card functions
;
DiskPing ds 3
DiskDir ds 3
DiskDirNext ds 3
DiskOpenRead ds 3
DiskOpenWrite ds 3
DiskRead ds 3
DiskWrite ds 3
DiskClose ds 3
endif ;SD_ENABLED
;
org RAM_START
;
; The use of memory starting from here will remain
; constant through different versions of CTMON65.
;
IRQvec ds 2
NMIvec ds 2
;
; Before a L(oad) command, these are set to $FF.
; After loading, if they are different, jump to
; that address.
;
AutoRun ds 2
;
; Pointer to the subroutine that gets the next input
; character. Used for doing disk/console input.
;
inputVector ds 2
;
; Same thing for output.
;
outputVector ds 2
;
; Buffer for GETLINE
;
buffer ds BUFFER_SIZE