Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ldi r28, 100 ;Nota de la asignatura de Est.Computadores [0-150]
- ldi r20, 'c'
- push r20
- call pasar_a_ayuscula
- pop r20
- nop
- nop
- pasar_a_ayuscula:
- ; y <- SP
- in yh, sph
- in yl, spl
- push r16
- ldd r16, y+3
- cpi r16, 'a'
- brlo ME_SALTO_LA_CONVERSION
- cpi r16, 'z'+1 ;90+1 = 91
- brsh ME_SALTO_LA_CONVERSION
- subi r16, 32
- ME_SALTO_LA_CONVERSION:
- std y+3, r16
- pop r16
- ret
Advertisement
Add Comment
Please, Sign In to add comment