SHARE
TWEET

Untitled

a guest Dec 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. simpleIf:
  2.  
  3. SLT $t0, $a0, $a1
  4. BGTZ $t0 ifthan
  5. nop
  6. ifelse:
  7. sub $v0, $a0, $a1
  8. j ifend
  9. nop
  10. ifthan:
  11. add $v0, $a0, $a1
  12. ifend:
  13. jr $ra
  14. nop
  15.  
  16.  
  17. nop
  18.     # Diese Zeilen müssen die letzten Zeilen sein -- nicht ändern!
  19.     .eqv program_under_test simpleIf
  20.     .include "testbench.asm"           
  21.     .include "testdata_simpleIf.asm"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top