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: 1 year ago
Preview 1 out of 16 pages
Connected school, study & course
About the document
Uploaded On
Mar 13, 2021
Number of pages
16
Written in
This document has been written for:
Uploaded
Mar 13, 2021
Downloads
0
Views
72
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·