File: arm.oabi.s

package info (click to toggle)
arch-test 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 244 kB
  • sloc: asm: 424; perl: 178; sh: 149; makefile: 144; ansic: 6
file content (12 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
.globl _start
.data
msg:	.ascii "ok\n"
.text
_start:
	mov	a1, #1
	ldr	a2, =msg
	mov	a3, #3
	swi	0x900004	// syscall: write(a1, a2, a3)

	mov	a1, #0
	swi	0x900001	// syscall: _exit(a1)