File: m68k.s

package info (click to toggle)
arch-test 0.22-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: asm: 461; perl: 187; makefile: 155; sh: 149; ansic: 6
file content (15 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.globl _start
.data
msg:	.ascii "ok\n"
.text
_start:
	moveq.l	#1, %d1
	lea	msg, %a1
	move.l	%a1, %d2
	moveq.l	#3, %d3
	moveq.l	#4, %d0		| syscall: write(d1, d2, d3)
	trap	#0

	moveq.l	#0, %d1
	moveq.l	#1, %d0		| syscall: _exit(d1)
	trap	#0