Skip to content
Snippets Groups Projects
Commit 8e6fafa8 authored by PEREZ-SIERRA ERIC's avatar PEREZ-SIERRA ERIC
Browse files

Alea.s ne marche pas, vaut mieux utiliser l'appel système 42

parent ddc14875
Branches
Tags 1.1.5-sr2
No related merge requests found
random.s 0 → 100644
.data
.text
# $a1 doit contenir la borne superieure
li $a1, 16 #Here you set $a1 to the max bound.
li $v0, 42 #generates the random number.
syscall
#add $a0, $a0, 100 #Here you add the lowest bound
li $v0, 1 #1 print integer
syscall
li $v0, 10
syscall
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment