OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Jun 16, 2019 5:35 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Speaker boot frequency for 8088/386 boot
PostPosted: Sat Jun 01, 2019 5:36 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1114
What are the speaker frequencies used for booting sounds in 8088/386 machines?

I want to implement them in my kernel functions.
Code:
;http://www.edaboard.com/showthread.php?182595-how-to-produce-beep-using-assembly-in-8086
;;

sound:
STARTSOUND:   ;CX=FREQUENCY IN HERTZ. DESTROYS AX & DX
pushfwide
pushawide

CMP CX, 014H
JB STARTSOUND_DONE
;CALL STOPSOUND
IN AL, 061H
;AND AL, 0FEH
;OR AL, 002H
OR AL, 003H
DEC AX
OUT 061H, AL   ;TURN AND GATE ON; TURN TIMER OFF
MOV DX, 00012H   ;HIGH WORD OF 1193180
MOV AX, 034DCH   ;LOW WORD OF 1193180
DIV CX
MOV DX, AX
MOV AL, 0B6H
PUSHF
CLI   ;!!!
OUT 043H, AL
MOV AL, DL
OUT 042H, AL
MOV AL, DH
OUT 042H, AL
POPF
IN AL, 061H
OR AL, 003H
OUT 061H, AL
   STARTSOUND_DONE:
popawide
popfwide
RET

   STOPSOUND:   ;DESTROYS AL
IN AL, 061H
AND AL, 0FCH
OUT 061H, AL
popawide
popfwide
RET






nosound:
pushfwide
push wideax

IN AL, 061H
AND AL, 0FCH
OUT 061H, AL



pop wideax
popfwide
retwide


_________________
http://api.archefire.org (My OS compatible with DOS)

IP for hosts file (all domains):
190.53.101.69 archefire.org (udocproject@yahoo.com)


Top
 Profile  
 
 Post subject: Re: Speaker boot frequency for 8088/386 boot
PostPosted: Sun Jun 02, 2019 9:51 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 1540
~ wrote:
What are the speaker frequencies used for booting sounds in 8088/386 machines?

Whatever the BIOS developer felt like using. There's no standard.


Top
 Profile  
 
 Post subject: Re: Speaker boot frequency for 8088/386 boot
PostPosted: Wed Jun 05, 2019 10:37 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 291
Octocontrabass wrote:
Whatever the BIOS developer felt like using. There's no standard.
That's right. Only the durations were somewhat standardized (1 long 2 short = video card error for example).
http://www.bioscentral.com/beepcodes/amibeep.htm
http://www.bioscentral.com/beepcodes/astbeep.htm
http://www.bioscentral.com/beepcodes/awardbeep.htm
...etc.

I haven't heard any beeps for some time, but I believe it was a high C note (but correct me).

Cheers,
bzt


Top
 Profile  
 
 Post subject: Re: Speaker boot frequency for 8088/386 boot
PostPosted: Wed Jun 05, 2019 12:35 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 200
I generally use 1000 Hz, which is also the censorship sound on TV, so people already know it is bad news.


Top
 Profile  
 
 Post subject: Re: Speaker boot frequency for 8088/386 boot
PostPosted: Tue Jun 11, 2019 10:08 am 
Offline
Member
Member
User avatar

Joined: Mon May 22, 2017 5:56 am
Posts: 68
nullplan wrote:
I generally use 1000 Hz, which is also the censorship sound on TV, so people already know it is bad news.

Now you mention it, I think every post-90s PC I've had beeped around that frequency. Thinkpads do, and they're loud. :( Older machines could be the same or lower.

_________________
Laos or: How I learned to stop worrying and love imperative programming


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group