sombruxo

Untitled

Apr 7th, 2026
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2.  
  3. ldi r28, 100 ;Nota de la asignatura de Est.Computadores [0-150]
  4.  
  5. ldi r20, 'c'
  6. push r20
  7. call pasar_a_ayuscula
  8. pop r20
  9.  
  10. nop
  11. nop
  12.  
  13.  
  14. pasar_a_ayuscula:
  15. ; y <- SP
  16. in yh, sph
  17. in yl, spl
  18. push r16
  19. ldd r16, y+3
  20. cpi r16, 'a'
  21. brlo ME_SALTO_LA_CONVERSION
  22. cpi r16, 'z'+1 ;90+1 = 91
  23. brsh ME_SALTO_LA_CONVERSION
  24. subi r16, 32
  25. ME_SALTO_LA_CONVERSION:
  26. std y+3, r16
  27. pop r16
  28. ret
Advertisement
Add Comment
Please, Sign In to add comment