about summary refs log tree commit diff
path: root/mips/chapter-2/exercise-1/f.s
blob: 2ec14efb839210fdac5ac7bb712f8574a0523a30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# a0 = array
	.data
array:	.word	4, 20, 6, 9

	.text
main:

	li	$v0,	1		# print integer
	la	$a0,	array		# address of array
	syscall

	li	$v0,	11		# print character
	li	$a0,	10		# newline
	syscall

	li	$v0,	10		# terminate program run
	syscall