Tính Tổng (MIPS)
CODE:
.data Nhap: .asciiz "Nhap Vao 1 So: " lnbrk: .asciiz "\n" Tong: .asciiz "Tong= " .text main: # Nhap Ky Tu Thu Nhat la $a0,Nhap li $v0,4 syscall # Nhap li $v0,5 syscall # Gan Gia Tri Thu Nhat move $t1,$v0 # Xuong Dong la $a0,lnbrk li $v0,4 syscall # Nhap so thu hai la $a0,Nhap li $v0,4 syscall li $v0,5 syscall move $t2,$v0 # Line Brank la $a0,lnbrk li $v0,4 syscall # Cong add $t2,$t1,$t0 syscall la $a0,Tong li $v0,4 syscall
No Comment to " Tính Tổng (MIPS) "