File: arc.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 (14 lines) | stat: -rw-r--r-- 217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.globl __start
.section .rodata
msg:	.ascii "ok\n"
.text
__start:
	mov_s r0, 1
	mov_s r1, msg
	mov_s r2, 3
	mov r8, 64
	trap_s	0		# syscall: write(r0, r1, r2)

	mov_s r0, 0
	mov r8, 93
	trap_s	0		# syscall: _exit(r0)