mirror of
https://github.com/tiennm99/HCMUT.git
synced 2026-10-15 16:14:39 +00:00
Update lab 2.2
This commit is contained in:
1 parent
6f5c79ad66
commit
88d8a9df75
6 files changed
+226
No files matched your search
@@ -0,0 +1,17 @@
|
||||
.data
|
||||
string: .asciiz "Day la chuoi can xuat!"
|
||||
.text
|
||||
.globl main
|
||||
main:
|
||||
li $v0, 11
|
||||
la $t1, string
|
||||
while:
|
||||
lb $a0, 0($t1)
|
||||
beq $a0, $zero, exit
|
||||
syscall
|
||||
addi $t1, $t1, 1
|
||||
j while
|
||||
exit:
|
||||
li $v0, 10
|
||||
syscall
|
||||
|
||||
Reference in new issue
Block a user