Codebase list arch-test / 26f02781-68c8-4829-8784-8bc8b9a34ce8/main armhf.s
26f02781-68c8-4829-8784-8bc8b9a34ce8/main

Tree @26f02781-68c8-4829-8784-8bc8b9a34ce8/main (Download .tar.gz)

armhf.s @26f02781-68c8-4829-8784-8bc8b9a34ce8/mainraw · history · blame

.globl _start
.data
msg:	.ascii "ok\n"
.text
_start:
	dmb	// SIGILL on CPUs below ARMv7

	mov	r0, #1
	ldr	r1, =msg
	mov	r2, #3
	mov	r7, #4	// syscall: write(r0, r1, r2)
	swi	0

	mov	r0, #0
	mov	r7, #1	// syscall: _exit(r0)
	swi	0