Skip to content

If element in Array A is less than element in Array B, display 0. Otherwise, display 1

Notifications You must be signed in to change notification settings

acai422/Compare-Two-Arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Set-Zero

CSCI 4720 - Computer Architecture and Organization

Compare two arrays.

If element in Array A is less than element in Array B, display 0. Otherwise, display 1

Translating the following code into MIPS Assembly Language Code:

for(int i = 0; i < A.length; i++) {

if(A[i] < B[i]) { C[i] = 0; }

}

where A, B, and C are arrays of size 10