Premium Essay

Csa 3101 Unit 1 Assignment

Submitted By
Words 1082
Pages 5
# I pledge on my honor that I have not given nor received any unauthorized aid on this assignment.

#Yu Yuan
#Project 1
#CDA 3101

.data

arrA: .word 5, 2, 4, 7, 14, 10, 3, 17, 11, 19 arrB: .word 15, 16, 8, 1, 6, 12, 13, 9, 20, 18 arrC: .word 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 arrD: .word 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 minA: .word 100 minB: .word 100 maxA: .word 0 maxB: .word 0 i: .word 0 n: .word 0 #j cannot be used since it's a keyword "jump" k: .word 0 temp: .word 0
A: .asciiz "Array A "
B: .asciiz "Array B "
C: .asciiz "Array C: "
D: .asciiz "Array D: "
Max: .asciiz "Max: "
Min: .asciiz " Min: " sortC: .asciiz "Array C After Sorting: " sortD: .asciiz …show more content…
lw $t3, 0($t1) #then set minB = B[i]

loopMaxA: blt $s0, $t4, loopMaxB #if A[i] < maxA, go to next lw $t4, 0($t0) #then set maxA = A[i]

loopMaxB: blt $s1, $t5, counter #if A[i] < maxB, go to next lw $t5, 0($t1) #then set maxB = B[i]

counter: addi $t6, $t6, 1 #increase i by 1 addi $t0, $t0, 4 #move to the next index in arrA addi $t1, $t1, 4 #move to the next index in arrB bne $t6, $t7, loop2 #if i is not 10

print: li $v0, 4 #print string la $a0, A #Print "Array A " syscall li $v0, 4 #print string la $a0, Max #Print "Max: " syscall li $v0, 1 #print a number move $a0, $t4 #print value syscall li $v0, 4 #print string la $a0, Min #print " Min: " syscall li $v0, 1 #print int move $a0, $t2 #print number syscall

li $v0, 4 #print string la $a0, newline #print new line syscall

li $v0, 4 #print string la $a0, B #print "Array B " syscall li $v0, 4 #print string la $a0, Max #print "Max: "

Similar Documents

Premium Essay

Middle Market Investment Banking

...The media’s watching Vault! Here’s a sampling of our coverage. “For those hoping to climb the ladder of success, [Vault’s] insights are priceless.” – Money magazine “The best place on the Web to prepare for a job search.” – Fortune “[Vault guides] make for excellent starting points for job hunters and should be purchased by academic libraries for their career sections [and] university career centers.” – Library Journal “The granddaddy of worker sites.” – U.S. News & World Report “A killer app.” – The New York Times One of Forbes’ 33 “Favorite Sites.” – Forbes “To get the unvarnished scoop, check out Vault.” – SmartMoney Magazine “Vault has a wealth of information about major employers and job searching strategies as well as comments from workers about their experiences at specific companies.” – The Washington Post “A key reference for those who want to know what it takes to get hired by a law firm and what to expect once they get there.” – New York Law Journal “Vault [provides] the skinny on working conditions at all kinds of companies from current and former employees.” – USA Today Customized for: Mian Badr (mian.iftikhar@studbocconi.it) Customized for: Mian Badr (mian.iftikhar@studbocconi.it) VAULT CAREER GUIDE TO MIDDLE MARKET INVESTMENT BANKING JOE BEL BRUNO AND THE STAFF OF VAULT Customized for: Mian Badr (mian.iftikhar@studbocconi.it) Customized for: Mian Badr (mian.iftikhar@studbocconi.it) Copyright © 2009 by Vault.com, Inc. All rights reserved....

Words: 71250 - Pages: 285

Premium Essay

Jhiuh43Qgoij

...MNUALLL/301/0/2013 Tutorial Letter 101/0/2013 General tutorial letter for proposal, dissertation and thesis writing MNUALLL Year module Department of Health Studies IMPORTANT INFORMATION: This tutorial letter contains important information about your module. Note: Copyright pertaining to Mouton (2006) has been ceded to Unisa CONTENTS Page 1 2 2.1 2.2 2.3 2.3.1 2.4 2.5 2.6 2.7 2.8 3 3.1 3.2 3.3 3.4 3.5 4 4.1 4.2 4.3 4.4 4.5 4.6 5 5.1 5.2 5.2.1 5.2.2 2 WELCOME ................................................................................................................................... 6 SECTION 1: BEING REGISTERED FOR THE RESEARCH PROPOSAL MODULE (RPM) .... 7 Introduction ................................................................................................................................... 7 Application .................................................................................................................................... 7 Registration for Research Proposal Module (RPM) ...................................................................... 7 Registration................................................................................................................................... 8 Appointment of supervisor ............................................................................................................ 8 Guidelines for writing a proposal ...............................................................................................

Words: 30137 - Pages: 121

Premium Essay

Project Mgt

...stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc. 222 Rosewood Drive, Danvers, MA 01923, website www.copyright.com. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, (201)748-6011, fax (201)748-6008, website http://www.wiley.com/go/permissions. To order books or for customer service, please call 1-800-CALL WILEY (225-5945). ISBN-13...

Words: 178405 - Pages: 714

Premium Essay

Projects

...ftoc.indd 16 10/10/08 5:17:22 PM SEVENTH EDITION PROJECT MANAGEMENT A Managerial Approach ffirs.indd 1 10/10/08 5:16:30 PM SEVENTH EDITION PROJECT MANAGEMENT A Managerial Approach Jack R. Meredith Broyhill Distinguished Scholar and Chair in Operations Wake Forest University Samuel J. Mantel, Jr. Joseph S. Stern Professor Emeritus of Operations Management University of Cincinnati John Wiley & Sons, Inc. ffirs.indd 3 10/10/08 5:16:35 PM ftoc.indd 16 10/10/08 5:17:22 PM Dedication To Avery and Mitchell, from “papajack.” J. R. M. To Maggie and Patty for their help, support, and affection. S. J. M. VICE PRESIDENT & EXECUTIVE PUBLISHER  Don Fowley EXECUTIVE EDITOR  Beth Golub ASSOCIATE EDITOR  Jen Devine MARKETING MANAGER  Carly DeCandia Design Director  Harry Nolan SENIOR DESIGNER  Kevin Murphy SENIOR PRODUCTION EDITOR  Patricia McFadden SENIOR Media editor  Lauren Sapira PRODUCTION MANAGEMENT SERVICES  Ingrao Associates This book was set in by GGS Book Services PMG and printed and bound by RRD/Willard. The cover was printed by RRD/Willard. This book is printed on acid free paper.  Copyright © 2009 John Wiley & Sons, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976...

Words: 181757 - Pages: 728