-
Notifications
You must be signed in to change notification settings - Fork 1
/
rom_code.txt
512 lines (126 loc) · 1.11 KB
/
rom_code.txt
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
START
MOV T0,
9
LOAD T0,
3
MOV T0,
10
LOAD T0,
4
MOV T0,
11
LOAD T0,
5
MOV T0,
12
LOAD T0,
6
MOV T0,
7
LOAD T0,
1
MOV T0,
8
LOAD T0,
2
MOV T0,
23
LOAD T0,
17
MOV T0,
24
LOAD T0,
18
MOV T0,
1536
ADD T0,
0
MOV [T0],
0
MOV T0,
25
LOAD T0,
21
MOV T0,
26
LOAD T0,
22
MOV T0,
27
LOAD T0,
23
MOV PTBR,
1024
MOV PTLR,
4
MOV T0,
"os_startup"
OUT T0
MOV T0,
PTBR
ADD T0,
0
MOV [T0],
25
MOV T0,
PTBR
ADD T0,
1
MOV [T0],
"01"
MOV T0,
PTBR
ADD T0,
2
MOV [T0],
26
MOV T0,
PTBR
ADD T0,
3
MOV [T0],
"01"
MOV T0,
PTBR
ADD T0,
4
MOV [T0],
27
MOV T0,
PTBR
ADD T0,
5
MOV [T0],
"01"
MOV T0,
PTBR
ADD T0,
6
MOV [T0],
28
MOV T0,
PTBR
ADD T0,
7
MOV [T0],
"01"
MOV T0,
1536
ADD T0,
1
MOV [T0],
2
MOV T0,
3
MUL T0,
512
MOV SP,
T0
MOV T0,
28
MUL T0,
512
MOV [T0],
0
IRET
HALT