Skip to content

Instantly share code, notes, and snippets.

@Souhardya
Last active January 30, 2018 20:29
Show Gist options
  • Save Souhardya/765ad975fcf0f01462a9e218c814eb7f to your computer and use it in GitHub Desktop.
Save Souhardya/765ad975fcf0f01462a9e218c814eb7f to your computer and use it in GitHub Desktop.
Windows x86 Beep Sound ( NASM )
;--------------------------
; Windows x86 beep sound
;--------------------------
BITS 32;
extern _MessageBeep@4 ; USER32.LIB
SECTION .data
SECTION .text
global _main
_main:
push 0xFF
call _MessageBeep@4 ; Call messagebeep function
xor eax, eax
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment