X-Git-Url: https://git.piment-noir.org/?p=TD_IML.git;a=blobdiff_plain;f=TD3%2Fmips2.asm;fp=TD3%2Fmips2.asm;h=a4689d7afc1b0bb0128c4b847d15ca6593342d6f;hp=0000000000000000000000000000000000000000;hb=000bb88ff53b62a983a73e75b6e19dea79d63981;hpb=80b1633cbdb86828624f8b84399e10b340b398c6 diff --git a/TD3/mips2.asm b/TD3/mips2.asm new file mode 100644 index 0000000..a4689d7 --- /dev/null +++ b/TD3/mips2.asm @@ -0,0 +1,12 @@ +.text +la $t1,34 +la $t2,63 +add $t3,$t2,$t1 +sub $t4,$t3,$t1 +mult $t3,$t4 +mflo $t5 +div $t2,$t1 +mflo $t6 +mfhi $t7 +la $v0,10 +syscall \ No newline at end of file