-
Notifications
You must be signed in to change notification settings - Fork 0
/
PERSON.W
91 lines (75 loc) · 1.12 KB
/
PERSON.W
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
# clear the screen with color black (CLRS = CLEAR SCREEN)
CLRS BLACK
# set the position of the person (the x-axis and y-axis)
SETX 1
SETY 1
# set the color to white (SCLR = SET COLOR)
SCLR WHITE
# draw the person
DRAW BITS
SETX 2
SETY 0
SETW 'H'
PRNT
SETX 3
SETW 'I'
PRNT
SETX 0
SETY 3
SETW 'H'
PRNT
INCR X
SETW 'E'
PRNT
INCR X
SETW 'L'
PRNT
INCR X
PRNT
INCR X
SETW 'O'
PRNT
THING:
CLRS BLACK
SETX 0
SETY 3
SETW 0
PRINT:
SAVE W
LOAD GOOD_NIGHT
IFEQ 0
GOTO END
# ELSE
PRNT
RSTR W
INCR W
INCR X
GOTO PRINT
END:
GOTO THING
GOOD_NIGHT:
DATA "GOOD NIGHT", 0
# all the rest is the data
LOOP:
GOTO LOOP
BITS:
DATA %0000000000000000
DATA %0000011111110000
DATA %0000011111110000
DATA %0000011111110000
DATA %0000011111110000
DATA %0000011111110000
DATA %0000000010000000
DATA %0000000111000000
DATA %0000001010100000
DATA %0000000010000000
DATA %0000000010000000
DATA %0000000101000000
DATA %0000001000100000
DATA %0000001000100000
DATA %0000000000000000
DATA %0000000000000000
BLACK:
DATA $000000
WHITE:
DATA $FFFFFF