Code: Alles auswählen
void beep(void){
asm{
mov cx,14h
mov ax,0e07h
int 10h
mov ax,4c00h
int 21h
}
}
Der selbe Code lässt sich mit TASM übersetzen und beept auch.
Jemand eine Idee was ich Falsch mache ?
Grüsse
Matthias
Code: Alles auswählen
void beep(void){
asm{
mov cx,14h
mov ax,0e07h
int 10h
mov ax,4c00h
int 21h
}
}
Code: Alles auswählen
.model tiny
.stack 100h
.code
Start:
mov cx,14h
mov ax,0e07h
Looping:
int 10h
loop looping
jmp exit
Exit:
mov ax,4c00h
int 21h
End Start
Code: Alles auswählen
Function 0Eh: Write Character
Writes the specified character to the current cursor position in the current display page. In text modes, the attribute byte is not modified. The cursor is moved to the next screen position, and the screen is scrolled up if necessary. Special ASCII characters, like carriage return and backspace, are interpreted as control codes and will modify the cursor position accordingly.
Inputs
AH = 0Eh
AL = ASCII code.
Code: Alles auswählen
#include<stdio.h>
int main()
{
printf("Beept es einmal?!?");
asm{
mov cx,14h
mov ax,0e07h
int 10h
}
return 0;
}