Computer Architecture > Research Paper > Texas A&M University - ECEN 350recitation1&2(1) (All)
Computer Architecture and Design – ECEN 350 Recitation 1&2 Dept. of Electrical and Computer Engineering Slides: Trang LeProblem 1 • Write a segment of MIPS assembly code that puts the large ... st value of those in s0, s1, and s2 into t 0Problem 1 # first assume $s0 is the smallest move $t0,$s0 # if $s1 is larger, put it in $t0 ble $s1,$t0,skip1 move $t0,$s1 # if $s2 is larger, put it in $t0 skip1: ble $s2,$t0,skip2 move $t0,$s2 # do the next thing skip2:Problem 2 • In the snippet of MIPS assembler code below, how many times is instruction memory accessed? How many times is data memory accessed? (Count only accesses to memory, not registers.) lw $v1, 0($a0) addi $v0, $v0, 1 sw $v1, 0($a1) addi $a0, $a0, 1Problem 2 lw $v1, 0($a0) addi $v0, $v0, 1 sw $v1, 0($a1) addi $a0, $a0, 1 [Show More]
Last updated: 3 years ago
Preview 1 out of 16 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Mar 13, 2021
Number of pages
16
Written in
All
This document has been written for:
Uploaded
Mar 13, 2021
Downloads
0
Views
103
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·