about summary refs log tree commit diff
path: root/mips/chapter-2/exercise-1/o.s
blob: 06dfc5cba65d18936aa6baa430790ffcaa76273f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# s1 *= a0
	.text
main:
	li	$s1,	420		# s1 = 420
	li	$a0,	69		# a0 = 69
	mul	$s1,	$s1,	$a0	# s1 *= a0

	li	$v0,	1		# print integer
	move	$a0,	$s1		# at s1
	syscall

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

	li	$v0,	10		# terminate program run
	syscall