Author Topic: Beep without API  (Read 9009 times)

GoneFishing

  • Member
  • *****
  • Posts: 1071
  • Gone fishing
Re: Beep without API
« Reply #15 on: October 22, 2014, 07:43:08 PM »
 :biggrin:
« Last Edit: September 18, 2015, 04:46:29 AM by vertograd »

Magnum

  • Member
  • *****
  • Posts: 2314
Re: Beep without API
« Reply #16 on: October 24, 2014, 12:48:44 PM »
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

  • Member
  • ***
  • Posts: 477
Re: Beep without API
« Reply #17 on: October 28, 2014, 05:49:35 PM »

 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.

Code: [Select]
        print " << Kenya Time is Wrong >> ", 13, 10, 7
 

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

GoneFishing

  • Member
  • *****
  • Posts: 1071
  • Gone fishing
Re: Beep without API
« Reply #18 on: October 29, 2014, 01:30:50 AM »
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:
Quote
B4 0E B0 07 CD 10 CD 20

Using port io is another way of doing it.





Mikl__

  • Member
  • ****
  • Posts: 809
Re: Beep without API
« Reply #19 on: October 29, 2014, 11:56:08 AM »
Code: [Select]
mov ax,0E07h
int 10h
ret
Resulting BEEP.COM
Code: [Select]
B8 07 0E CD 10 C3

GoneFishing

  • Member
  • *****
  • Posts: 1071
  • Gone fishing
Re: Beep without API
« Reply #20 on: October 29, 2014, 09:17:47 PM »
BLANK
« Last Edit: September 18, 2015, 04:42:58 AM by vertograd »

sinsi

  • Guest
Re: Beep without API
« Reply #21 on: October 29, 2014, 10:22:49 PM »
From a command prompt
echo <alt+keypad 7> enter
7 keystrokes, 0 bytes.

herge

  • Member
  • ***
  • Posts: 477
Re: Beep without API
« Reply #22 on: October 29, 2014, 11:25:22 PM »

 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.