about summary refs log tree commit diff
path: root/mips/chapter-2/exercise-1/n.s
diff options
context:
space:
mode:
Diffstat (limited to 'mips/chapter-2/exercise-1/n.s')
-rw-r--r--mips/chapter-2/exercise-1/n.s16
1 files changed, 0 insertions, 16 deletions
diff --git a/mips/chapter-2/exercise-1/n.s b/mips/chapter-2/exercise-1/n.s
deleted file mode 100644
index 4394ebf..0000000
--- a/mips/chapter-2/exercise-1/n.s
+++ /dev/null
@@ -1,16 +0,0 @@
-# s0 *= -1
-	.text
-main:
-	li	$s0,	420		# s0 = 420
-	neg	$s0,	$s0		# s0 = -s0
-
-	li	$v0,	1		# print integer
-	move	$a0,	$s0		# at s0
-	syscall
-
-	li	$v0,	11		# print character
-	li	$a0,	10		# newline
-	syscall
-
-	li	$v0,	10		# terminate program run
-	syscall