Advertisement
THOMAS_SHELBY_18

3

May 24th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. org 100h
  2. Start:
  3. push TestStr
  4. call Proc
  5.  
  6. mov ah, 09h
  7. mov dx, TestStr+1
  8. int 21h
  9.  
  10. mov ah, 08h
  11. int 21h
  12.  
  13. Proc:
  14. .prolog:
  15. push bp
  16. mov bp, sp
  17. sub sp, 0
  18.  
  19. .processing:
  20. mov di, [bp+4]
  21. movzx cx, byte[di]
  22.  
  23. .startLoop:
  24. inc di
  25. and byte[di], 1101'1111b
  26. loop .startLoop
  27.  
  28. .epilog:
  29. mov sp, bp
  30. pop bp
  31. ret 2
  32.  
  33. TestStr db 3, 'awa$'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement