From d92edc05165247788b5d8c2999cba6f0e7e890d8 Mon Sep 17 00:00:00 2001 From: unlockable Date: Sat, 4 May 2024 10:59:48 +0800 Subject: [PATCH] Request for correct amount of memory. --- 1/homework/exp1/exp1_3.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1/homework/exp1/exp1_3.asm b/1/homework/exp1/exp1_3.asm index bc51779..4bd84c2 100644 --- a/1/homework/exp1/exp1_3.asm +++ b/1/homework/exp1/exp1_3.asm @@ -4,7 +4,7 @@ syscall move $s0, $v0 # $s0 is n - move $a0, $v0 + sll $a0, $v0, 2 li $v0, 9 # malloc syscall move $s1, $v0 # $s1 = a