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    CEZAR
  8.  
  9.         add     SP, 2
  10.  
  11.         ret
  12.  
  13. CEZAR:
  14.         push    BP
  15.         mov     BP, SP
  16.  
  17.         mov     DI, [BP + 4]
  18.  
  19. Sukl:
  20.         cmp     byte[DI], ' '
  21.         je      EndSukl
  22.  
  23.         add     byte[DI], 3
  24.  
  25. EndSukl:
  26.         inc     DI
  27.  
  28.         cmp     byte[DI], 0
  29.         je      EndProc
  30.  
  31.         jmp     Sukl
  32.  
  33. EndProc:
  34.         pop     BP
  35.         ret
  36.  
  37. string  db      'onoshko luchiy prepod', 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement