Advertisement
qberik

Untitled

Nov 11th, 2022
2,677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   mov ax, input
  14.   and ax, 1111111111101011b
  15.  
  16.   mov bx, input
  17.   and bx, 0000000000000100b
  18.   shl bx, 2
  19.  
  20.   mov cx, input
  21.   and cx, 0000000000010000b
  22.   shr cx, 2
  23.  
  24.   or ax, bx
  25.   or ax, cx
  26.  
  27.   mov bx, 8
  28.   mul bx
  29.  
  30.   not ax
  31.  
  32.  
  33.   mov ax, 4c00h
  34.   int 21h
  35.  
  36. end start
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement