Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .text
  2. global _start
  3.  
  4. _start:
  5.     call ioperm
  6.     mov al, 0xB6
  7.     out 43h, al
  8.     mov ax, 4560
  9.     out 42h, al
  10.     mov al, ah
  11.     out 42h, al
  12.     in al, 61h
  13.     or al, 00000011b
  14.     out 61h, al
  15.     call delay
  16.     in al, 61h
  17.     and al, 11111100b
  18.     out 61h, al
  19.     call exit
  20.  
  21. delay:
  22.     mov eax, 162
  23.     mov ebx, tts
  24.     xor ecx, ecx
  25.     int 80h
  26.     ret
  27. exit:
  28.     xor eax, eax
  29.     inc eax
  30.     xor ebx, ebx
  31.     int 80h
  32. ioperm:
  33.     mov eax, 65h
  34.     mov ebx, 40h
  35.     mov ecx, 30h
  36.     mov edx, 1
  37.     int 80h
  38.     ret
  39. section .data
  40. tts: dd 1, 100000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement