File: powerpc.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 (17 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.rodata
msg:	.ascii "ok\n"
.text
.globl _start
_start:
	fsel	0, 1, 2, 3	# boom on SPE

	li	0, 4	# syscall write(r3, r4, r5)
	li	3, 1
	lis	4, msg@ha
	addi	4, 4, msg@l
	li	5, 3
	sc

	li	0, 1	# syscall _exit(r3)
	li	3, 0
	sc