about summary refs log tree commit diff
path: root/mips/chapter-2/exercise-1/i.s
blob: 875452525dc524d96f2c4dfd6b453b18c7f4e220 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# print Hello, World!
	.data
hello:	.asciiz "Hello, World!\n"

	.text
main:
	li	$v0,	4		# print string
	la	$a0,	hello		# hello
	syscall

	li	$v0,	10		# terminate program run
	syscall