main: li $v0,5 # read the roll value syscall move $t0,$v0 # Use the roll value to select an address from the table. # Put that address into $t1, then jr $t1. # Your code to do that goes here. jumptable: .word lose # 2 .word lose # 3 .word trypoint # 4 .word trypoint # 5 .word trypoint # 6 .word win # 7 .word trypoint # 8 .word trypoint # 9 .word trypoint # 10 .word win # 11 .word lose # 12 .text lose: li $v0,1 move $a0,$t0 syscall li $v0,4 la $a0,lossstring syscall li $v0,10 syscall win: li $v0,1 move $a0,$t0 syscall li $v0,4 la $a0,winstring syscall li $v0,10 syscall trypoint: li $v0,1 move $a0,$t0 syscall li $v0,4 la $a0,trystring syscall li $v0,10 syscall .data lossstring: .asciiz ": loses\n" winstring: .asciiz ": wins\n" trystring: .asciiz ": roll for point\n"