blob: 037ce2b4baab3c29e43d1fa7e183439b06463d8d (
plain)
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
|
SYM = $10
SYM1 = 10
SYM2 = %00000010
.org $A000
tok:
.byte "dab"
msg:
.byte "oof, you divided a, and b on me.\n"
string:
.byte "Please, type something.\n"
string2:
.byte "You typed, "
.org $1000
lex:
.byte $0
.org $2000
lex2:
.qword lex
cmd_buf:
.word $0
.org $8000
reset:
cps
lda
sta lex
sta (lex2), y
sta (lex2, x)
sta (lex2)
sta lex, y
sta lex, x
sta $1000
lda.w
lda 'a'
lda ' '
lda '\n'
lda '\r'
lda '\b'
lda '\\'
lda '\''
l
a
.org $8000
v
q
|