File: arm64.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-- 195 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.globl _start
.data
msg:	.ascii "ok\n"
.text
_start:
	mov	x0, #1
	adr	x1, msg
	mov	x2, #3
	mov	x8, 64		// syscall: write(x0, x1, x2)
	svc	0

	mov	x0, #0
	mov	x8, 93		// syscall: _exit(x0)
	svc	0