How can I change in MIPS the following: # yellow box la $a0, 1 la $a1, 1 la $a2, 4 #yellow la $a3, 13 # size = 22 jal dr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

How can I change in MIPS the following: # yellow box la $a0, 1 la $a1, 1 la $a2, 4 #yellow la $a3, 13 # size = 22 jal dr

Post by answerhappygod »

How can I change in MIPS the following:
# yellow boxla $a0, 1la $a1, 1la $a2, 4 #yellowla $a3, 13 # size = 22jal draw #Jump and link to draw# Green boxla $a0, 1la $a1, 17la $a2, 2 #color = 2la $a3, 13 #square size = 22jal drawBox #Jump and link to drawBox
How can I make it into a loop? I want to use this in .data.Don't forget the size too.
Table:
.word 1,1,4 #yellow
.word 1,17, 2 #red
lw $t0, Table lw $a0, 0($t0) #Load theaddress of the proper data to $t0 lw $a1, 4($t0) #Load Y lw $a2, 8($t0) #LoadColor Number jal drawBox
example please
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply