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
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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am