How to... make the pc speaker emit a single beep?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
kernel_coder_andy

How to... make the pc speaker emit a single beep?

Post by kernel_coder_andy »

How to... make the pc speaker emit a single beep? (In C, Assuming no OS..., just by reading/writing ports)
Mr. Xsism

RE:How to... make the pc speaker emit a single beep?

Post by Mr. Xsism »

this is really simple. URL:http://brand107.home.attbi.com/pc-gpe/speaker.txt

it gets hard when you wanna control tone and length, though :)

regards,
mr. Xsism

PS-does anyone know if gateway computers are somewhat INTEL INcompatible? C my post
Tom Fritz

RE:How to... make the pc speaker emit a single beep?

Post by Tom Fritz »

Didn't he say "In C"?
Mr. Xsism

RE:How to... make the pc speaker emit a single beep? -In C u

Post by Mr. Xsism »

hey Tom! :P
look, whether in C, asm, or pascal (or binary for that matter) you gotta know how to do it. the 2 tuts that me and darkman posted give u the basics,ports,values/commands needed. All that mr andy needs to do is use that pretty lil' inport() outportb() function set. So the info we gave hin is JUST fine for WHATEVER language.

regards,
Mr. Xsism
jordanpwalsh

RE:How to... make the pc speaker emit a single beep? -In C u

Post by jordanpwalsh »

ya... he's right. but the best was i think is to write a function in c to do it in assembler
Post Reply