about summary refs log tree commit diff
path: root/lang/mips/chapter-2/exercise-1/r.s
blob: c362e6486710dd0c49c63b7c897c208bc9cd56c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# s4 <<= 3
	.text
main:
	li	$s4,	420		# s4 = 420
	sll	$s4,	$s4,	3	# s4 <<= 3

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

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

	li	$v0,	10		# terminate program run
	syscall