I wanna have a beep inside of assembler.
like
beep()
Is this possible?
I have tried to use the sysCall write with the BELL-Symbol. But it doesn't do anything.
I use the Linux-64-Nasm Assembler, And, as I am building a compiler, I don't want to use the C-libraries.
section .data
cmp_BLANK: db 0x0a
cmp_interr: db "error, You have typed in a non-Integer Character!", 0x0a
cmp_interrlen: equ $-cmp_interr
cmp_buffer: times 9 db 0x00
cmp_beep: db 0x07
section .bss
section .text
global _start
_start:
call func_main
mov eax, 1
mov ebx, 0
int 80h
func_main:
mov eax, 4
mov ebx, 1
mov ecx, cmp_beep
mov edx, 1
int 80h
ret
But I don't get a Sound. Even when I run it with sudo.