# test_02.s
#
# A testcase for Asm 2.
.data
.globl fib
fib:
.word0
.globl square
square:
.word0
.globl square_fill
square_fill:
.byte)
.globl square_size
square_size:
.word9
.globl runCheck
runCheck:
.word 1
.globl intArray
intArray:
.word 1
.word 1
.word 1
.word 1
.globl intArray_len
intArray_len:
.word 4
.globl countWords
countWords:
.word 0
.globl str
str:
.asciiz red
rum
.globl revString
revString:
.word 0
# main()
.text
.globlmain
main:
# call the student code
jalstudentMain
addi $v0, $zero, 4
la $a0, str
syscall# printf(%s, str);
addi $v0, $zero, 11
addi $a0, $zero,
syscall# print_char(
);
addi $v0, $zero, 11
addi $a0, $zero,
syscall# print_char(
);
# sys_exit()
addi$v0, $zero,10
syscall
Reviews
There are no reviews yet.