Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .globl __start
- __start:
- la $a0,prompt
- li $v0,4
- syscall
- la $a0,string
- li $a1,80
- li $v0,8
- syscall
- li $t1,0
- li $s0,97
- li $s1,122
- While: lbu $t0,string($t1)
- beq $t0,$0,end
- blt $t0,$s0,cont
- bgt $t0,$s1,cont
- addi $t0,$t0,-32
- cont: sb $t0,string($t1)
- addi $t1,$t1,1
- j While
- end:
- la $a0,string
- li $v0,4
- syscall
- li $v0,10
- syscall
- .data
- prompt: .asciiz "Dwse string "
- string: .space 80
Add Comment
Please, Sign In to add comment