1 .data
2foodata: .word 42
3 .text
4footext:
5	.text
6	.global add
7add:
8	add %0,%0,%0
9	.text
10	.global addi
11addi:
12	addi %0,%0,-4
13	.text
14	.global addiu
15addiu:
16	addiu %0,%0,4
17	.text
18	.global addu
19addu:
20	addu %0,%0,%0
21	.text
22	.global ado16
23ado16:
24	ado16 %0,%0,%0
25	.text
26	.global and
27and:
28	and %0,%0,%0
29	.text
30	.global andi
31andi:
32	andi %0,%0,0xdead
33	.text
34	.global andoi
35andoi:
36	andoi %0,%0,0
37	.text
38	.global andoui
39andoui:
40	andoui %0,%0,0
41	.text
42	.global mrgb
43mrgb:
44	mrgb %0,%0,%0,0
45	.text
46	.global nor
47nor:
48	nor %0,%0,%0
49	.text
50	.global or
51or:
52	or %0,%0,%0
53	.text
54	.global ori
55ori:
56	ori %0,%0,-1
57	.text
58	.global orui
59orui:
60	orui %0,%0,0
61	.text
62	.global ram
63ram:
64	ram %0,%0,0,0,0
65	.text
66	.global sll
67sll:
68	sll %0,%0,0
69	.text
70	.global sllv
71sllv:
72	sllv %0,%0,%0
73	.text
74	.global slmv
75slmv:
76	slmv %0,%0,%0,0
77	.text
78	.global slt
79slt:
80	slt %0,%0,%0
81	.text
82	.global slti
83slti:
84	slti %0,%0,0
85	.text
86	.global sltiu
87sltiu:
88	sltiu %0,%0,0
89	.text
90	.global sltu
91sltu:
92	sltu %0,%0,%0
93	.text
94	.global sra
95sra:
96	sra %0,%0,0
97	.text
98	.global srav
99srav:
100	srav %0,%0,%0
101	.text
102	.global srl
103srl:
104	srl %0,%0,0
105	.text
106	.global srlv
107srlv:
108	srlv %0,%0,%0
109	.text
110	.global srmv
111srmv:
112	srmv %0,%0,%0,0
113	.text
114	.global sub
115sub:
116	sub %0,%0,%0
117	.text
118	.global subu
119subu:
120	subu %0,%0,%0
121	.text
122	.global xor
123xor:
124	xor %0,%0,%0
125	.text
126	.global xori
127xori:
128	xori %0,%0,0
129	.text
130	.global bbi
131bbi:
132	bbi %0(0),footext
133	.text
134	.global bbin
135bbin:
136	bbin %0(0),footext
137	.text
138	.global bbv
139bbv:
140	bbv %0,%0,footext
141	.text
142	.global bbvn
143bbvn:
144	bbvn %0,%0,footext
145	.text
146	.global beq
147beq:
148	beq %0,%0,footext
149	.text
150	.global beql
151beql:
152	beql %0,%0,footext
153	.text
154	.global bgez
155bgez:
156	bgez %0,footext
157	.text
158	.global bgezal
159bgezal:
160	bgezal %0,footext
161	.text
162	.global bgezall
163bgezall:
164	bgezall %0,footext
165	.text
166	.global bgezl
167bgezl:
168	bgezl %0,footext
169	.text
170	.global bgtz
171bgtz:
172	bgtz %0,footext
173	.text
174	.global bgtzl
175bgtzl:
176	bgtzl %0,footext
177	.text
178	.global blez
179blez:
180	blez %0,footext
181	.text
182	.global blezl
183blezl:
184	blezl %0,footext
185	.text
186	.global bltz
187bltz:
188	bltz %0,footext
189	.text
190	.global bltzl
191bltzl:
192	bltzl %0,footext
193	.text
194	.global bltzal
195bltzal:
196	bltzal %0,footext
197	.text
198	.global bltzall
199bltzall:
200	bltzall %0,footext
201	.text
202	.global bmb
203bmb:
204	bmb %0,%0,footext
205	.text
206	.global bmb0
207bmb0:
208	bmb0 %0,%0,footext
209	.text
210	.global bmb1
211bmb1:
212	bmb1 %0,%0,footext
213	.text
214	.global bmb2
215bmb2:
216	bmb2 %0,%0,footext
217	.text
218	.global bmb3
219bmb3:
220	bmb3 %0,%0,footext
221	.text
222	.global bne
223bne:
224	bne %0,%0,footext
225	.text
226	.global bnel
227bnel:
228	bnel %0,%0,footext
229	.text
230	.global bctxt
231bctxt:
232	bctxt %0,footext
233	.text
234	.global bc0f
235bc0f:
236	bc0f footext
237	.text
238	.global bc0fl
239bc0fl:
240	bc0fl footext
241	.text
242	.global bc3f
243bc3f:
244	bc3f footext
245	.text
246	.global bc3fl
247bc3fl:
248	bc3fl footext
249	.text
250	.global bc0t
251bc0t:
252	bc0t footext
253	.text
254	.global bc0tl
255bc0tl:
256	bc0tl footext
257	.text
258	.global bc3t
259bc3t:
260	bc3t footext
261	.text
262	.global bc3tl
263bc3tl:
264	bc3tl footext
265	.text
266	.global break
267break:
268	break
269	.text
270	.global cfc0
271cfc0:
272	cfc0 %0,%0
273	.text
274	.global cfc1
275cfc1:
276	cfc1 %0,%0
277	.text
278	.global cfc2
279cfc2:
280	cfc2 %0,%0
281	.text
282	.global cfc3
283cfc3:
284	cfc3 %0,%0
285	.text
286	.global chkhdr
287chkhdr:
288	chkhdr %0,%0
289	.text
290	.global ctc0
291ctc0:
292	ctc0 %0,%0
293	.text
294	.global ctc1
295ctc1:
296	ctc1 %0,%0
297	.text
298	.global ctc2
299ctc2:
300	ctc2 %0,%0
301	.text
302	.global ctc3
303ctc3:
304	ctc3 %0,%0
305	.text
306	.global jcr
307jcr:
308	jcr %0
309	.text
310	.global luc32
311	nop
312luc32:
313	# insert a nop here to pacify the assembler (luc32 may not follow jcr).
314	luc32 %0,%0
315	.text
316	.global luc32l
317luc32l:
318	luc32l %0,%0
319	.text
320	.global luc64
321luc64:
322	luc64 %0,%0
323	.text
324	.global luc64l
325luc64l:
326	luc64l %0,%0
327	.text
328	.global luk
329luk:
330	luk %0,%0
331	.text
332	.global lulck
333lulck:
334	lulck %0
335	.text
336	.global lum32
337lum32:
338	lum32 %0,%0
339	.text
340	.global lum32l
341lum32l:
342	lum32l %0,%0
343	.text
344	.global lum64
345lum64:
346	lum64 %0,%0
347	.text
348	.global lum64l
349lum64l:
350	lum64l %0,%0
351	.text
352	.global lur
353lur:
354	lur %0,%0
355	.text
356	.global lurl
357lurl:
358	lurl %0,%0
359	.text
360	.global luulck
361luulck:
362	luulck %0
363	.text
364	.global mfc0
365mfc0:
366	mfc0 %0,%0
367	.text
368	.global mfc1
369mfc1:
370	mfc1 %0,%0
371	.text
372	.global mfc2
373mfc2:
374	mfc2 %0,%0
375	.text
376	.global mfc3
377mfc3:
378	mfc3 %0,%0
379	.text
380	.global mtc0
381mtc0:
382	mtc0 %0,%0
383	.text
384	.global mtc1
385mtc1:
386	mtc1 %0,%0
387	.text
388	.global mtc2
389mtc2:
390	mtc2 %0,%0
391	.text
392	.global mtc3
393mtc3:
394	mtc3 %0,%0
395	.text
396	.global rb
397rb:
398	rb %0,%0
399	.text
400	.global rbr1
401rbr1:
402	rbr1 %0,0,0
403	.text
404	.global rbr30
405rbr30:
406	rbr30 %0,0,0
407	.text
408	.global rfe
409rfe:
410	rfe
411	.text
412	.global rx
413rx:
414	rx %0,%0
415	.text
416	.global rxr1
417rxr1:
418	rxr1 %0,0,0
419	.text
420	.global rxr30
421rxr30:
422	rxr30 %0,0,0
423	.text
424	.global sleep
425sleep:
426	sleep
427	.text
428	.global srrd
429srrd:
430	srrd %0
431	.text
432	.global srrdl
433srrdl:
434	srrdl %0
435	.text
436	.global srulck
437srulck:
438	srulck %0
439	.text
440	.global srwr
441srwr:
442	srwr %0,%0
443	.text
444	.global srwru
445srwru:
446	srwru %0,%0
447	.text
448	.global syscall
449syscall:
450	syscall
451	.text
452	.global trapqfl
453trapqfl:
454	trapqfl
455	.text
456	.global trapqne
457trapqne:
458	trapqne
459	.text
460	.global wb
461wb:
462	wb %0,%0
463	.text
464	.global wbu
465wbu:
466	wbu %0,%0
467	.text
468	.global wbr1
469wbr1:
470	wbr1 %3,0,0
471	.text
472	.global wbr1u
473wbr1u:
474	wbr1u %0,0,0
475	.text
476	.global wbr30
477wbr30:
478	wbr30 %0,0,0
479	.text
480	.global wbr30u
481wbr30u:
482	wbr30u %0,0,0
483	.text
484	.global wx
485wx:
486	wx %0,%0
487	.text
488	.global wxu
489wxu:
490	wxu %0,%0
491	.text
492	.global wxr1
493wxr1:
494	wxr1 %0,0,0
495	.text
496	.global wxr1u
497wxr1u:
498	wxr1u %0,0,0
499	.text
500	.global wxr30
501wxr30:
502	wxr30 %0,0,0
503	.text
504	.global wxr30u
505wxr30u:
506	wxr30u %0,0,0
507	.text
508	.global j
509j:
510	j footext
511	.text
512	.global jal
513jal:
514	jal footext
515	.text
516	.global jalr
517jalr:
518	jalr %0,%0
519	.text
520	.global jr
521jr:
522	jr %0
523	.text
524	.global lb
525lb:
526	lb %0,0x1024(%0)
527	.text
528	.global lbu
529lbu:
530	lbu %0,0x1024(%0)
531	.text
532	.global ldw
533ldw:
534	ldw %0,0x1024(%0)
535	.text
536	.global lh
537lh:
538	lh %0,0x1024(%0)
539	.text
540	.global lhu
541lhu:
542	lhu %0,0x1024(%0)
543	.text
544	.global lui
545lui:
546	lui %0,-1
547	.text
548	.global lw
549lw:
550	lw %0,0x1024(%0)
551	.text
552	.global sb
553sb:
554	sb %0,0x1024(%0)
555	.text
556	.global sdw
557sdw:
558	sdw %0,0x1024(%0)
559	.text
560	.global sh
561sh:
562	sh %0,0x1024(%0)
563	.text
564	.global sw
565sw:
566	sw %0,0x1024(%0)
567	.text
568	.global traprel
569traprel:
570	traprel %0
571	.text
572	.global pkrl
573pkrl:
574	pkrl %0,%1
575	.text
576	.global pkrlr1
577pkrlr1:
578	pkrlr1 %0,0,0
579	.text
580	.global pkrlr30
581pkrlr30:
582	pkrlr30 %0,0,0
583