中断演示主程序.asm
ManiaciaChao_hustzc/6.CPU设计实验/汇编工具及测试用例4.4/中断演示主程序.asm
#interupt demo  main program 
#1st section, auto decrement counter and display
#2nd section: ccmb instruction test
.text

addi $s1,$zero,0x200      #initial nubmer
addi $v0,$zero,34    
counter_branch:
add $a0,$0,$s1          
syscall                 #display number
addi $s1,$s1,-1         #decrement
bne $s1,$zero,counter_branch
addi $v0,$zero,50
syscall                 #pause
############################################
# insert your ccmb benchmark program here!!!
#C1 instruction



#C2 instruction



#Mem instruction




#Branch instruction




addi $v0,$zero,10
syscall                 #pause











