Advertisement
qberik

Untitled

Dec 9th, 2022
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. .model small
  2. .stack 100h
  3. .data
  4.  
  5. input dw 1DF2h
  6. ;7666
  7.  
  8. .code
  9. start:
  10. mov ax, @data
  11. mov ds, ax
  12. ;привет даня
  13.  
  14.  
  15. mov ax, input
  16. and ax, 1111111111101011b
  17.  
  18. mov bx, input
  19. and bx, 0000000000000100b
  20. shl bx, 2
  21.  
  22. mov cx, input
  23. and cx, 0000000000010000b
  24. shr cx, 2
  25.  
  26. or ax, bx
  27. or ax, cx
  28.  
  29.  
  30. shr ax, 3
  31.  
  32. not ax
  33.  
  34.  
  35. mov ax, 4c00h
  36. int 21h
  37.  
  38. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement