-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Assembler 4004.asm
60 lines (49 loc) · 2.3 KB
/
Assembler 4004.asm
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
; H e l l o W o r l d
; 48 65 6C 6C 6F 20 57 6F 72 6C 64
START
LDM $4 ; High nibble of letter 'H'
WRR ; Write to ROM output port
LDM $8 ; Low nibble of letter 'H'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'e'
WRR ; Write to ROM output port
LDM $5 ; Low nibble of letter 'e'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'l'
WRR ; Write to ROM output port
LDM $C ; Low nibble of letter 'l'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'l'
WRR ; Write to ROM output port
LDM $C ; Low nibble of letter 'l'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'o'
WRR ; Write to ROM output port
LDM $F ; Low nibble of letter 'o'
WRR ; Write to ROM output port
LDM $2 ; High nibble of 'space'
WRR ; Write to ROM output port
LDM $0 ; Low nibble of 'space'
WRR ; Write to ROM output port
LDM $5 ; High nibble of letter 'W'
WRR ; Write to ROM output port
LDM $7 ; Low nibble of letter 'W'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'o'
WRR ; Write to ROM output port
LDM $F ; Low nibble of letter 'o'
WRR ; Write to ROM output port
LDM $7 ; High nibble of letter 'r'
WRR ; Write to ROM output port
LDM $2 ; Low nibble of letter 'r'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'l'
WRR ; Write to ROM output port
LDM $C ; Low nibble of letter 'l'
WRR ; Write to ROM output port
LDM $6 ; High nibble of letter 'd'
WRR ; Write to ROM output port
LDM $4 ; Low nibble of letter 'd'
WRR ; Write to ROM output port
END
JUN END