CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 23:20:05 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=b7d97138a707de0f2b4237a87189e3c6a0e48a15dc1493109e5baa1cbe8a10f1a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%229Yf5osNB4bapOwaoeGZcsbV9aKka6ZK9%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d216073ff7335a-BLR
add2.asm - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http://codepad.org/BDXAySsj
- # https://pastebin.com/xhKiJHSG
- # Daniel J. Ellard -- 02/21/94
- # add2.asm -- A program that computes and prints the sum
- # of two numbers specified at runtime by the user.
- # Registers used:
- # $t0 - used to hold the first number.
- # $t1 - used to hold the second number.
- # $t2 - used to hold the sum of the $t1 and $t2.
- # $v0 - syscall parameter and return value.
- # $a0 - syscall parameter.
- main:
- ## Get first number from user, put into $t0.
- li $v0, 5 # load syscall read_int into $v0.
- syscall # make the syscall.
- move $t0, $v0 # move the number read into $t0.
- ## Get second number from user, put into $t1.
- li $v0, 5 # load syscall read_int into $v0.
- syscall # make the syscall.
- move $t1, $v0 # move the number read into $t1.
- add $t2, $t0, $t1 # compute the sum.
- ## Print out $t2.
- move $a0, $t2 # move the number to print into $a0.
- li $v0, 1 # load syscall print_int into $v0.
- syscall # make the syscall.
- exit:
- li $v0, 10 # syscall code 10 is for exit.
- syscall # make the syscall.
- # end of add2.asm.
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 7 sec ago | 0.10 KB
-
📌 Instant BTC Profit Method ✅ Working
JavaScript | 10 sec ago | 0.24 KB
-
📝 MAKE $2500 IN 15 MIN ✅ Working
JavaScript | 20 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 20 sec ago | 0.10 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 30 sec ago | 0.24 KB
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 33 sec ago | 0.10 KB
-
📌 Swapzone +37% glitch
JavaScript | 41 sec ago | 0.24 KB
-
⭐⭐⭐Free Giftcards Method⭐⭐
Java | 46 sec ago | 0.10 KB
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