File: mips.s

package info (click to toggle)
arch-test 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: asm: 461; perl: 187; makefile: 155; sh: 149; ansic: 6
file content (19 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.rdata
msg: .ascii "ok\n"
.text
.globl __start
__start:
	li	$4, 1
	la	$5, msg
	li	$6, 3
	li	$2, 4004
	syscall
	move	$4, $0
	li	$2, 4001
	syscall

	# <-- unreachable
	# exit gracefully on n32
	li	$4, 1
	li	$2, 6058
	syscall