Change this MIPS code to RISC-V Assembly using sll.   Please add comments. Allow running in RARS.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Change this MIPS code to RISC-V Assembly using sll.

 

Please add comments. Allow running in RARS.

. text
.globl main
main:
$t0, myData
$t1, 0 ($t0)
$t2, 4 ($t0)
add $t3, $t1, $t2
$t3, 8 ($t0)
sll $t4, $t3, 1
$t5, 8 ($t0)
la
lw
lw
Sw
lw
li
$v0, 10
syscall
.data
myData:.word 100, 200
Transcribed Image Text:. text .globl main main: $t0, myData $t1, 0 ($t0) $t2, 4 ($t0) add $t3, $t1, $t2 $t3, 8 ($t0) sll $t4, $t3, 1 $t5, 8 ($t0) la lw lw Sw lw li $v0, 10 syscall .data myData:.word 100, 200
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT