File: hex_test.s

package info (click to toggle)
tkisem 4.5.12-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 1,372
  • sloc: cpp: 4,844; tcl: 3,047; asm: 1,991; makefile: 335; ansic: 269; sh: 155
file content (36 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
	!
	! $Id: hex_test.s 1.1 Fri, 25 Oct 1996 18:04:04 -0600 maccabe $
	! hex_test.s
	! 11/3/95
	!
	! Barney Maccabe
	!
	! a very simple program to read and write hex numbers to the consol
	!

	
	putx = 4
	getx = 5
	puts = 6

	.data
msg:	.asciz "\n"

	.text
	.align 8
.global start
start:
	
	set	5, %l0		! read 5 numbers
	set	msg, %l2

top:	ta	getx
	ta	putx
	mov	%l2, %o0
	ta	puts
	deccc	%l0
	bg	top
	nop

	ta	0