Advertisement
Guest User

Untitled

a guest
May 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;examples
  2.  
  3. ;---------------------------
  4. ; rotate left
  5. mov ax, 0xF000
  6. rol ax, 4
  7.  
  8. = 0x000F
  9. ;---------------------------
  10. ;---------------------------
  11. ; shift left
  12. mov ax, 0x0050
  13. shl ax, 8
  14.  
  15. = 0x5000
  16. ;---------------------------
  17. ; the same but we gained some space
  18. mov ax, 0x0050 << 8
  19.  
  20. = 0x5000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement