CS计算机代考程序代写 # Skeleton file provided to students in UVic CSC 230, Summer 2021

# Skeleton file provided to students in UVic CSC 230, Summer 2021
# Original file copyright Mike Zastre, 2021

.include “a4support.asm”

.data

.eqv MAX_ARRAY_SIZE 1024

.align 2
ARRAY_1: .space MAX_ARRAY_SIZE
ARRAY_2: .space MAX_ARRAY_SIZE
ARRAY_3: .space MAX_ARRAY_SIZE
ARRAY_4: .space MAX_ARRAY_SIZE
ARRAY_5: .space MAX_ARRAY_SIZE
ARRAY_6: .space MAX_ARRAY_SIZE
ARRAY_7: .space MAX_ARRAY_SIZE
ARRAY_8: .space MAX_ARRAY_SIZE

# STUDENTS MAY MODIFY CODE BELOW
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

FILENAME_1: .asciiz “integers-10-6.bin”
FILENAME_2: .asciiz “integers-10-21.bin”

# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# STUDENTS MAY MODIFY CODE ABOVE

.globl main
.text
main:

# STUDENTS MAY MODIFY CODE BELOW
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

la $a0, FILENAME_1
la $a1, ARRAY_1
jal read_file_of_ints
add $s1, $zero, $v0

la $a0, FILENAME_2
la $a1, ARRAY_2
jal read_file_of_ints
add $s2, $zero, $v0

# WRITE YOUR SOLUTION TO THE PART E PROBLEM
# HERE…

# Get outta here.
add $v0, $zero, 10
syscall

# COPY YOUR PROCEDURES FROM PARTS A, B, C, and D BELOW
# THIS POINT.

# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# STUDENTS MAY MODIFY CODE ABOVE