-
Notifications
You must be signed in to change notification settings - Fork 5
/
6805.s
165 lines (158 loc) · 1.36 KB
/
6805.s
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
adc #1
adc @foo
adc foobar
adc 500,x
adc 50,x
adc ,x
add #1
and #1
asl @foo
asla
aslx
asl 50,x
asl ,x
asra
asrx
asr 1,x
fred:
bcc fred
bclr 1,@foo
bcs fred
beq fred
bhcc fred
bhcs fred
bhi fred
bhs fred
bih fred
bil fred
bit #2
blo fred
bls fred
bmc fred
bmi fred
bms fred
bne fred
bpl fred
bra fred
brclr 2,@foo,fred
brn fred
brset 1,@foo,fred
bset 1,@foo
bsr fred
clc
cli
clr @foo
clra
clrx
cmp #1
com @foo
coma
comx
cpx #1
dec @foo
deca
decx
eor @foo
inc @foo
inca
incx
jmp @foo
jmp fred
jmp ,x
jmp 2,x
jmp fred,x
jsr fred
lda #4
ldx 2,x
lsl ,x
lsla
lslx
lsr 2,x
lsra
lsrx
mul
neg @foo
nega
negx
nop
ora ,x
rol @foo
rola
rolx
ror @foo
rora
rorx
rsp
rti
rts
sbc 500,x
sec
sei
sta 500,x
stop
stx 0x1234,x
sub #12
swi
tax
tst @foo
tsta
tstx
txa
wait
;
; HC08
;
.hc08
asl ,sp
asl ,s
asl 5,sp
asl 10,s
moo:
sta 5,sp
stx 5,s
stx ,sp
stx ,s
lda 121,sp
lda 1,sp
lda ,sp
lda ,s
ais #1
aix #2
bge moo
bgt moo
ble moo
blt moo
cbeq @foo,moo
cbeqa #12,moo
cbeqx #1,moo
cbeq ,x+,moo
cbeq 5,x+,moo
cbeq 6,sp,moo
cphx #0x1234
cphx @foo
daa
dbnz @foo,moo
dbnza moo
dbnzx moo
dbnz ,x,moo
dbnz 5,x,moo
div
ldhx @foo
ldhx #0x1234
mov #5,@foo
mov @foo,@foo
mov ,x+,@foo
mov x+,@foo
mov @foo,,x+
nsa
psha
pshh
pshx
pula
pulh
pulx
stx @foo
tap
tpa
tsx
txs