# # simple example of a few instructions. # evaluates if (r10 >= r9 ) { r10 <- r10 - r9 - r8*2 } # We assume r11 has 0x1 in it. # slt $12, $10, $9 bne $12, $0, skip sub $10, $10, $9 sllv $12, $9, $11 sub $10, $10, $12 skip: # Produces # 00000000 0x0149602a: slt $12, $10, $9 # 00000004 0x140c0003: bne $12, $0, 3 # 00000008 0x01495022: sub $10, $10, $9 # 0000000c 0x012b6004: sllv $12, $9, $11 # 00000010 0x014c5022: sub $10, $10, $12