代写ENGINEERING VISUALIZATION代写R语言

ENGINEERING VISUALIZATION

Minimum Submission Requirements

  • Create a Lab3 folder (note the capitalization convention, include no extra characters in the directory name) that contains the following files:
    • asm
    • txt
  • Commit and Push your repository
  • Tag the commit that you would like to be graded
    • The tag must be in the form. Lab3_submission_# (note the capitalization convention)

Lab Objective

This lab will introduce you to the MIPS ISA using MARS. You will write a program that iterates through a set of numbers and prints either “Flux,” “Bunny,” or “Flux Bunny.”

Lab Preparation

Read chapters 2, 3, and 7 from Introduction To MIPS Assembly Language Programming. Download and walk through Part 1 of the MARS tutorial. You will need to download Fibonacci.asm.

Specification

You will write a simple program in the MIPS32 language using the MARS integrated development environment. This program will prompt the user for a number. Next, the program will iterate through a set of integers (starting at 0, ending at the number input by the user) and print to the console one of four outputs depending on the number. If the number is evenly divisible by 5 (with no remainder), then the output is “Flux.” If the number is evenly divisible by 7, then the output is “Bunny.” If the number is divisible by both 5 and 7, then the output should be “Flux Bunny”. Lastly, if the output is not divisible by either 5 or 7, then the number itself should be printed.

An example of the expected output is given. The output should match this format exactly (note the capitalization convention). There should be a new line character after each output:

Please input a positive integer: 10 Flux Bunny

— program is finished running —

Note that part of our grading script. is automated, so it is imperative that your program’s output matches the specification. The prompt should be “Please input a positive integer: ” NOT “Please enter a positive integer: ”. There should be one space after the “:” in the prompt. The prompt should be the first text printed to the console. “Flux” and “Bunny” should be capitalized. There should be no space printed after the numbers. A new line character should be printed after the last number.

Your code should end cleanly without error. Make sure to use the exit syscall. You may assume that the user input is a positive integer i.e. no error handling is required.

Files

Lab3.asm

This file contains your code.

Header Comment

Your code should include a header comment with your name, CruzID, date, lab number, course number, quarter, school, program description and notes. Every program you write should include information like this. This is a good opportunity to start developing effective code documentation skills. An example header comment is shown below.

####################################################################################

# Created by:  Last Name, First Name

#              CruzID

#              7 August 2018

#

# Assignment:  Lab 64: Hello World

#              CMPE 012, Computer Systems and Assembly Language

#              UC Santa Cruz, Fall 2018

#

# Description: This program prints ‘Hello world.’ to the screen.

#

# Notes:       This program is intended to be run from the MARS IDE.

####################################################################################

Every block or section of code should have a comment describing what that block of code is for. In-line comments should be lined up (using spaces) for ease of readability.

Register Usage

You are permitted to use $v0, $a0 and the temporary ($t) registers for this lab. Registers $v0 and $a0 should only be used for the syscalls. At the beginning of your code, and optionally at the beginning of each block of code, indicate the functionality of the registers used. For instance, if you are using $t0 and $t1 for the user input and and loop counter, respectively, your comments should include something like the following:

# REGISTER USAGE

# $t0: user input

# $t1: loop counter

White Space

Line up instructions, operands, and comments to increase readability. Code should be indented from labels.

Bad Example

LOOP:

LI $t1 2 #initialize $t1 ADDI $t0 $t0 1 #increment $t0

BLT $t0 $t1 LOOP #determine if code should re-enter loop

Good Example

LOOP:

LI   $t1 2          # initialize $t1 ADDI $t0 $t0 1               # increment $t0

BLT  $t0 $t1 LOOP   # determine if code should re-enter loop

A Note About Tabs

It is preferable to line up comments using spaces as opposed to tabs. Text editors can have different standards for the width of one tab character. For this reason, it is preferable to line up comments using spaces, not tabs, so that the code appears the same regardless of text editor.

README.txt

This file must be a plain text (.txt) file. It should contain your first and last name (as it appears on Canvas) and your CruzID. Your CruzID is your email address before @ucsc.edu. Your answers to the questions should total at least 8 sentences with complete thoughts.

Your README should adhere to the following template:

————————

Lab 3: Looping in MIPS CMPE 012 Summer 2018

Last Name, First Name CruzID

————————-

The text of your prompt (“Please input a positive integer: ”) and output strings

(“Flux” and “Bunny”) are stored in the processor’s memory. After assembling your program, what is the range of addresses in which these strings are stored?

Write the answer here.

What were the learning objectives of this lab? Write the answer here.

Did you encounter any issues? Were there parts of this lab you found enjoyable? Write the answer here.

How would you redesign this lab to make it better? Write the answer here.

Grading Rubric

6  pts assembles without errors

13 pts output matches the specification

1 pt  format of prompt

1 pt  format of “Flux”

1 pt  format of “Bunny”

1 pt  format of “Flux Bunny”

  • pt format of integer
  • pts conditions for printing “Flux”

2 pts conditions for printing “Bunny”

2 pts conditions for printing “Flux Bunny”

2 pts conditions for printing integer

2  pts readme file complete (should at least 8 sentences total with complete thoughts)

 


热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图