Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .text
- global _start
- _start:
- call ioperm
- mov al, 0xB6
- out 43h, al
- mov ax, 4560
- out 42h, al
- mov al, ah
- out 42h, al
- in al, 61h
- or al, 00000011b
- out 61h, al
- call delay
- in al, 61h
- and al, 11111100b
- out 61h, al
- call exit
- delay:
- mov eax, 162
- mov ebx, tts
- xor ecx, ecx
- int 80h
- ret
- exit:
- xor eax, eax
- inc eax
- xor ebx, ebx
- int 80h
- ioperm:
- mov eax, 65h
- mov ebx, 40h
- mov ecx, 30h
- mov edx, 1
- int 80h
- ret
- section .data
- tts: dd 1, 100000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement