News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Beep without API

Started by Magnum, October 18, 2014, 08:46:38 AM

Previous topic - Next topic

GoneFishing

#15
 :biggrin:

Magnum

I was curious if using a non-API method would affect file size.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

herge


Hi There:

If your Keyboard has a speaker do a Control G or send a 7 (seven) to StdOut.
From a Dos prompt i e Command Prompt do a Control G. If you have a speaker
you should hear a beep and see a error message, otherwise just an
error message.


        print " << Kenya Time is Wrong >> ", 13, 10, 7


Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.

GoneFishing

On Windows XP you can use bios display service :
Quote
mov         ah,00E ; TELETYPE OUTPUT
mov         al,7      ; CHAR CODE
int            10h      ; BIOS DISPLAY SERVICE
int            20h      ; EXIT (DIRTY)

Resulting BEEP.COM executable is equal to QWORD in size:
QuoteB4 0E B0 07 CD 10 CD 20

Using port io is another way of doing it.





Mikl__

mov ax,0E07h
int 10h
ret
Resulting BEEP.COM B8 07 0E CD 10 C3

GoneFishing

#20
BLANK

sinsi

From a command prompt
echo <alt+keypad 7> enter
7 keystrokes, 0 bytes.
Tá fuinneoga a haon déag níos fearr :biggrin:

herge


Hi Sinsi:

From Command prompt.
Ctrl G i e Control G
Two Keystrokes.

Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.