Calls to itself tolosve a smaller problem
pritnNamee(itn num) cfw_
if(num >0) cfw_
num = 3
num = 3
num = 1
num = 0
Jal printNums is at 0x00400000
EEE 202 Circuits I, Spring 2014
Name: 5 E;/o7/04/ 56 points total
Exam is closed book, closed notes except for one 8.5x11 sheet; Show all work on the pages
provided. No extra pages (use back if necessary). Show all your work!
1) (10 pts) a) (8
CSE/EEE 230 Exercise 2
1. Give the contents of the registers after the code segment is executed. Give all answers as 8
hexadecimal digits. Each segment is independent.
$s0, $0, 4
$s0, $s0, 5
$s1, $s0, 2
val1: .word 1
val2: .word 2
val3: .word 3
name: .asciiz "Zahir Ahmed "
prompt: .asciiz "Enter a number: "
nline: .asciiz "\n"
# Step 1: initialize s0 to 23
$s0, $0, 23
# Step 1: Prompt user to enter a number and store to
Addressing mode instr form
How to access data instructions
Andi $t0, $t1,0
Store in register
Add $t0, $t1, $t2
CSE/EEE230 Exam 1 overview
The exam will be held on Friday February 5.
Be in your assigned seat and ready to start at 1:30.
The exam is closed books / closed notes. You will be provided the MIPS reference card.
Only the exam and your pen/pencil may be on
4/; (_ i)
CSE/EEE 230 Spring 2016 PIN ,L/
1. Assume that the registers have the initial values below. Show the register values as 8
hexadecimal numbers (such as 0x00000000).
$t0 = 0x00000001
Stl = 0x00000003
$t2 = 0x00000004
:3: :51): :
CSE/EEE 230 Spring 2015
Due March 1 3PM
This assignment consists of two questions. The first question has multiple parts. Create
a single file with your answers to the questions and submit your work using the link on