-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathX8 Assembler Hello World.obj
More file actions
44 lines (38 loc) · 1.33 KB
/
X8 Assembler Hello World.obj
File metadata and controls
44 lines (38 loc) · 1.33 KB
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
'BEGIN' TEL='1 000 000', TTY=8
M[24]:
GOTO(:START)
M[(64+TTY*4)]:
TAR:
M[(64+38*4)]:
TPAR:
M['400']:
START:
A=:HELLO DESCR " point to I/O descriptor
TAR[0]=A " set address of string
TAR[1]=-A " set IFT = -1
A=D18
TAR[2]=A
AFON(TTY) " send the message
LOOP: GOTO(:LOOP) " spin (since there is no halt)
D18: '001 000 000'
HELLO DESCR:
0
(17*TEL + :DAG[-1])
0
DAG: 37 " letters, red print
5 " H
16 " E
9 " L
9 " L
3 " O
27 " figures
6 " comma
31 " letters
4 " space
25 " W
3 " O
10 " R
9 " L
18 " D
2 " cr
8 " nl