Frads01

example_lab5

May 5th, 2022 (edited)
771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.  
  3. .text
  4. .globl main
  5. .ent main
  6. main:
  7.     li $t0, 35
  8.     li $t1, 20
  9.  
  10.     addi $sp, $sp, -4
  11.     sw $t0, ($sp)
  12.     addi $sp, $sp, -4
  13.     sw $t1, ($sp)
  14.    
  15.     lw $t0, ($sp)
  16.     addi $sp, $sp, 4
  17.     lw $t1, ($sp)
  18.     addi $sp, $sp, 4
  19.  
  20.     li $v0, 10
  21.     syscall
  22. .end main
  23.  
Add Comment
Please, Sign In to add comment