-
Notifications
You must be signed in to change notification settings - Fork 9
/
low.s
78 lines (57 loc) · 1.42 KB
/
low.s
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
/ low core
br4 = 200
br5 = 240
br6 = 300
br7 = 340
. = 0^.
br 1f
4
/ trap vectors
trap; br7+0. / bus error
trap; br7+1. / illegal instruction
trap; br7+2. / bpt-trace trap
trap; br7+3. / iot trap
trap; br7+4. / power fail
trap; br7+5. / emulator trap
trap; br7+6. / system entry
. = 40^.
.globl start, dump
1: jmp start
jmp dump
. = 60^.
klin; br4
klou; br4
. = 70^.
pcin; br4
pcou; br4
. = 100^.
kwlp; br6
kwlp; br6
. = 114^.
trap; br7+7. / 11/70 parity
. = 200^.
lpou; br4
. = 220^.
rkio; br5
. = 240^.
trap; br7+7. / programmed interrupt
trap; br7+8. / floating point
trap; br7+9. / segmentation violation
//////////////////////////////////////////////////////
/ interface code to C
//////////////////////////////////////////////////////
.globl call, trap
.globl _klrint
klin: jsr r0,call; _klrint
.globl _klxint
klou: jsr r0,call; _klxint
.globl _pcrint
pcin: jsr r0,call; _pcrint
.globl _pcpint
pcou: jsr r0,call; _pcpint
.globl _clock
kwlp: jsr r0,call; _clock
.globl _lpintr
lpou: jsr r0,call; _lpintr
.globl _rkintr
rkio: jsr r0,call; _rkintr