-
Notifications
You must be signed in to change notification settings - Fork 0
/
mos320.s65
78 lines (67 loc) · 2.49 KB
/
mos320.s65
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
;-------------------------------------------------------------------------
;
; I started out trying to match up the names with
; https://tobylobster.github.io/mos/mos/index.html - but I didn't keep
; up with this after a while. I found it quite time-consuming.
;
; Maybe a second pass will fix this...
;
;-------------------------------------------------------------------------
;
; Reference material, in approx order of preference:
;
; MasRef - Master Reference Manual (pretty complete, up to date,
; official)
;
; AUG - Advanced User Guide (very complete for what it covers: model B
; hardware, OS 1.20)
;
; NAUG - New Advanced User Guide (has some Master info, but not
; as thorough as AUG on some topics)
;
; AdvRef - Advanced Reference Manual for the BBC Master (has the odd
; useful item)
;
; Tube - Tube Application Note (Acorn App Note 004)
;
;-------------------------------------------------------------------------
;
; Some notes:
;
; . there are some parseFromString/parseFromCommandLine pairs of
; routines - the FromString ones indicate error silently (e.g., by
; returning with C=0), and the FromCommandLine ones issue a BRK if
; there's a problem
;
;-------------------------------------------------------------------------
.include "src/hardware.s65"
.include "src/mos_workspace.s65"
.include "src/terminal_workspace.s65"
version=320
versionString="OS 3.20"
; The number of sections will probably increase, as a longer term goal
; is to have a bit of flexibility here. Stuff that's got documented
; addresses ($FFxx, default font, VDU driver entry points, etc.) needs
; to stay fixed, but, space permitting, other stuff could be
; rearranged.
*=$ba00
.dsection ext
.cwarn *>$c000,'Ext ROM is too large'
*=$8000
.dsection utils
.cwarn *>$c000,'Terminal ROM is too large'
*=$c000
.dsection mos
; there's no need for a size check here - 64tass gives
; you an error if the code would go past the 64 K
; barrier.
;-------------------------------------------------------------------------
.section ext
.include "src/ext.s65"
.endsection
.section utils
.include "src/terminal.s65"
.endsection
.section mos
.include "src/mos.s65"
.endsection