Advertisement
Guest User

Untitled

a guest
Jun 7th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         org 100h
  2.         use16
  3.  
  4. Start:
  5.         push    string
  6.  
  7.         call    MakeUp
  8.  
  9.         ; New string in address 'string'
  10.  
  11.         ret
  12.  
  13. MakeUp:
  14.         push    BP
  15.         mov     BP, SP
  16.  
  17.         mov     SI, [BP + 4]
  18.  
  19. Replacing:
  20.         cmp     byte[SI], 'a'
  21.         jb      GoNextChar
  22.  
  23.         cmp     byte[SI], 'z'
  24.         ja      GoNextChar
  25.  
  26.         sub     byte[SI], 32
  27.  
  28. GoNextChar:
  29.         inc     SI
  30.  
  31.         cmp     byte[SI], '$'
  32.         je      EndProc
  33.  
  34.         jmp     Replacing
  35.  
  36. EndProc:
  37.         pop     BP
  38.         ret     2
  39.  
  40. string  db      'oNoShkO LuchShiY', '$'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement