1 .data
2foodata: .word 42
3 .text
4footext:
5	.text
6	.global add
7add:
8	add fp,fp
9	.text
10	.global add3
11add3:
12	add3 fp,fp,#0
13	.text
14	.global and
15and:
16	and fp,fp
17	.text
18	.global and3
19and3:
20	and3 fp,fp,#0
21	.text
22	.global or
23or:
24	or fp,fp
25	.text
26	.global or3
27or3:
28	or3 fp,fp,#0
29	.text
30	.global xor
31xor:
32	xor fp,fp
33	.text
34	.global xor3
35xor3:
36	xor3 fp,fp,#0
37	.text
38	.global addi
39addi:
40	addi fp,#0
41	.text
42	.global addv
43addv:
44	addv fp,fp
45	.text
46	.global addv3
47addv3:
48	addv3 fp,fp,#0
49	.text
50	.global addx
51addx:
52	addx fp,fp
53	.text
54	.global bc8
55bc8:
56	bc footext
57	.text
58	.global bc8_s
59bc8_s:
60	bc.s footext
61	.text
62	.global bc24
63bc24:
64	bc footext
65	.text
66	.global bc24_l
67bc24_l:
68	bc.l footext
69	.text
70	.global beq
71beq:
72	beq fp,fp,footext
73	.text
74	.global beqz
75beqz:
76	beqz fp,footext
77	.text
78	.global bgez
79bgez:
80	bgez fp,footext
81	.text
82	.global bgtz
83bgtz:
84	bgtz fp,footext
85	.text
86	.global blez
87blez:
88	blez fp,footext
89	.text
90	.global bltz
91bltz:
92	bltz fp,footext
93	.text
94	.global bnez
95bnez:
96	bnez fp,footext
97	.text
98	.global bl8
99bl8:
100	bl footext
101	.text
102	.global bl8_s
103bl8_s:
104	bl.s footext
105	.text
106	.global bl24
107bl24:
108	bl footext
109	.text
110	.global bl24_l
111bl24_l:
112	bl.l footext
113	.text
114	.global bnc8
115bnc8:
116	bnc footext
117	.text
118	.global bnc8_s
119bnc8_s:
120	bnc.s footext
121	.text
122	.global bnc24
123bnc24:
124	bnc footext
125	.text
126	.global bnc24_l
127bnc24_l:
128	bnc.l footext
129	.text
130	.global bne
131bne:
132	bne fp,fp,footext
133	.text
134	.global bra8
135bra8:
136	bra footext
137	.text
138	.global bra8_s
139bra8_s:
140	bra.s footext
141	.text
142	.global bra24
143bra24:
144	bra footext
145	.text
146	.global bra24_l
147bra24_l:
148	bra.l footext
149	.text
150	.global cmp
151cmp:
152	cmp fp,fp
153	.text
154	.global cmpi
155cmpi:
156	cmpi fp,#0
157	.text
158	.global cmpu
159cmpu:
160	cmpu fp,fp
161	.text
162	.global cmpui
163cmpui:
164	cmpui fp,#0
165	.text
166	.global div
167div:
168	div fp,fp
169	.text
170	.global divu
171divu:
172	divu fp,fp
173	.text
174	.global rem
175rem:
176	rem fp,fp
177	.text
178	.global remu
179remu:
180	remu fp,fp
181	.text
182	.global jl
183jl:
184	jl fp
185	.text
186	.global jmp
187jmp:
188	jmp fp
189	.text
190	.global ld
191ld:
192	ld fp,@fp
193	.text
194	.global ld_2
195ld_2:
196	ld fp,@(fp)
197	.text
198	.global ld_d
199ld_d:
200	ld fp,@(0,fp)
201	.text
202	.global ld_d2
203ld_d2:
204	ld fp,@(fp,0)
205	.text
206	.global ldb
207ldb:
208	ldb fp,@fp
209	.text
210	.global ldb_2
211ldb_2:
212	ldb fp,@(fp)
213	.text
214	.global ldb_d
215ldb_d:
216	ldb fp,@(0,fp)
217	.text
218	.global ldb_d2
219ldb_d2:
220	ldb fp,@(fp,0)
221	.text
222	.global ldh
223ldh:
224	ldh fp,@fp
225	.text
226	.global ldh_2
227ldh_2:
228	ldh fp,@(fp)
229	.text
230	.global ldh_d
231ldh_d:
232	ldh fp,@(0,fp)
233	.text
234	.global ldh_d2
235ldh_d2:
236	ldh fp,@(fp,0)
237	.text
238	.global ldub
239ldub:
240	ldub fp,@fp
241	.text
242	.global ldub_2
243ldub_2:
244	ldub fp,@(fp)
245	.text
246	.global ldub_d
247ldub_d:
248	ldub fp,@(0,fp)
249	.text
250	.global ldub_d2
251ldub_d2:
252	ldub fp,@(fp,0)
253	.text
254	.global lduh
255lduh:
256	lduh fp,@fp
257	.text
258	.global lduh_2
259lduh_2:
260	lduh fp,@(fp)
261	.text
262	.global lduh_d
263lduh_d:
264	lduh fp,@(0,fp)
265	.text
266	.global lduh_d2
267lduh_d2:
268	lduh fp,@(fp,0)
269	.text
270	.global ld_plus
271ld_plus:
272	ld fp,@fp+
273	.text
274	.global ld24
275ld24:
276	ld24 fp,foodata
277	.text
278	.global ldi8
279ldi8:
280	ldi fp,0
281	.text
282	.global ldi16
283ldi16:
284	ldi fp,256
285	.text
286	.global lock
287lock:
288	lock fp,@fp
289	.text
290	.global machi
291machi:
292	machi fp,fp
293	.text
294	.global maclo
295maclo:
296	maclo fp,fp
297	.text
298	.global macwhi
299macwhi:
300	macwhi fp,fp
301	.text
302	.global macwlo
303macwlo:
304	macwlo fp,fp
305	.text
306	.global mul
307mul:
308	mul fp,fp
309	.text
310	.global mulhi
311mulhi:
312	mulhi fp,fp
313	.text
314	.global mullo
315mullo:
316	mullo fp,fp
317	.text
318	.global mulwhi
319mulwhi:
320	mulwhi fp,fp
321	.text
322	.global mulwlo
323mulwlo:
324	mulwlo fp,fp
325	.text
326	.global mv
327mv:
328	mv fp,fp
329	.text
330	.global mvfachi
331mvfachi:
332	mvfachi fp
333	.text
334	.global mvfaclo
335mvfaclo:
336	mvfaclo fp
337	.text
338	.global mvfacmi
339mvfacmi:
340	mvfacmi fp
341	.text
342	.global mvfc
343mvfc:
344	mvfc fp,psw
345	.text
346	.global mvtachi
347mvtachi:
348	mvtachi fp
349	.text
350	.global mvtaclo
351mvtaclo:
352	mvtaclo fp
353	.text
354	.global mvtc
355mvtc:
356	mvtc fp,psw
357	.text
358	.global neg
359neg:
360	neg fp,fp
361	.text
362	.global nop
363nop:
364	nop
365	.text
366	.global not
367not:
368	not fp,fp
369	.text
370	.global rac
371rac:
372	.text
373	.global rach
374rach:
375	.text
376	.global rte
377rte:
378	.text
379	.global seth
380seth:
381	seth fp,0
382	.text
383	.global sll
384sll:
385	sll fp,fp
386	.text
387	.global sll3
388sll3:
389	sll3 fp,fp,0
390	.text
391	.global slli
392slli:
393	slli fp,0
394	.text
395	.global sra
396sra:
397	sra fp,fp
398	.text
399	.global sra3
400sra3:
401	sra3 fp,fp,0
402	.text
403	.global srai
404srai:
405	srai fp,0
406	.text
407	.global srl
408srl:
409	srl fp,fp
410	.text
411	.global srl3
412srl3:
413	srl3 fp,fp,0
414	.text
415	.global srli
416srli:
417	srli fp,0
418	.text
419	.global st
420st:
421	st fp,@fp
422	.text
423	.global st_2
424st_2:
425	st fp,@(fp)
426	.text
427	.global st_d
428st_d:
429	st fp,@(0,fp)
430	.text
431	.global st_d2
432st_d2:
433	st fp,@(fp,0)
434	.text
435	.global stb
436stb:
437	stb fp,@fp
438	.text
439	.global stb_2
440stb_2:
441	stb fp,@(fp)
442	.text
443	.global stb_d
444stb_d:
445	stb fp,@(0,fp)
446	.text
447	.global stb_d2
448stb_d2:
449	stb fp,@(fp,0)
450	.text
451	.global sth
452sth:
453	sth fp,@fp
454	.text
455	.global sth_2
456sth_2:
457	sth fp,@(fp)
458	.text
459	.global sth_d
460sth_d:
461	sth fp,@(0,fp)
462	.text
463	.global sth_d2
464sth_d2:
465	sth fp,@(fp,0)
466	.text
467	.global st_plus
468st_plus:
469	st fp,@+fp
470	.text
471	.global st_minus
472st_minus:
473	st fp,@-fp
474	.text
475	.global sub
476sub:
477	sub fp,fp
478	.text
479	.global subv
480subv:
481	subv fp,fp
482	.text
483	.global subx
484subx:
485	subx fp,fp
486	.text
487	.global trap
488trap:
489	trap 0
490	.text
491	.global unlock
492unlock:
493	unlock fp,@fp
494	.text
495	.global push
496push:
497	push fp
498	.text
499	.global pop
500pop:
501	pop fp
502