Thanks a lot for replying, I'll try to make it clearer. I just got a home-exame at school, where the teacher want us to get the computer to play an easy song. For that I need some notes (A, C, E osv) like playing a gitar? I know this must sound very crazy but I realy need help. We are going to make it on a boot-disket, the computer have intel-cpu and the os is XP(but do the os mather?) I'll also admitt that I'm verry new to assembly so please don't tell me that it's to dificult.

: : : Hi!: : : : : : Do somebody have a link for some codes so I can make music in assebley?: : : : : : : : : : What operating system?: : What hardware?: : Do you want to just play music on something like a soundblaster, or actually MAKE music like with a midi editor?: : : : Assembly is a very detail oriented language. Your questions need to be likewise.: : : : : : (shameless self plug): : Here's links to 2 .wav players that work in DOS:: : http://www.programmersheaven.com/search/download.asp?FileID=30034: : http://www.programmersheaven.com/search/download.asp?FileID=23237: : : : -jeff!: : : Hi!: : Thanks a lot for replying, I'll try to make it clearer. I just got a home-exame at school, where the teacher want us to get the computer to play an easy song. For that I need some notes (A, C, E osv) like playing a gitar? I know this must sound very crazy but I realy need help. : We are going to make it on a boot-disket, the computer have intel-cpu and the os is XP(but do the os mather?) : I'll also admitt that I'm verry new to assembly so please don't tell me that it's to dificult.: : :

ok,do i understand it right?you want create a disk which plays a song when booting from it?

a good oldschool way to play simple sounds is the adlib,which should be supported by most today cards(is this still true?hard to test this under todays XP-enviroments).this chip let you create a ton by specifing frequency,length,vibrato and few other sound-parameters to make the sound instruments-like.you can setup a guitar-like sound,too.

i assume you have some basic assembly-knowledge,this is surely not that hard to do,but you need some assembly-practice to code.i suggest you try to write this code under win9x and not XP.XP will not allow you to control the adlib directly.search this site or the web for adlib,there should be good descriptions for this chip or send me a private message

when you played your first notes successfully you can try to change your code to a bootable version.

: : : : Hi!: : : : : : : : Do somebody have a link for some codes so I can make music in assebley?: : : : : : : : : : : : : : What operating system?: : : What hardware?: : : Do you want to just play music on something like a soundblaster, or actually MAKE music like with a midi editor?: : : : : : Assembly is a very detail oriented language. Your questions need to be likewise.: : : : : : : : : (shameless self plug): : : Here's links to 2 .wav players that work in DOS:: : : http://www.programmersheaven.com/search/download.asp?FileID=30034: : : http://www.programmersheaven.com/search/download.asp?FileID=23237: : : : : : -jeff!: : : : : Hi!: : : : Thanks a lot for replying, I'll try to make it clearer. I just got a home-exame at school, where the teacher want us to get the computer to play an easy song. For that I need some notes (A, C, E osv) like playing a gitar? I know this must sound very crazy but I realy need help. : : We are going to make it on a boot-disket, the computer have intel-cpu and the os is XP(but do the os mather?) : : I'll also admitt that I'm verry new to assembly so please don't tell me that it's to dificult.: : : : : : : : ok,do i understand it right?you want create a disk which plays a song when booting from it?: : a good oldschool way to play simple sounds is the adlib,which should be supported by most today cards(is this still true?hard to test this under todays XP-enviroments).this chip let you create a ton by specifing frequency,length,vibrato and few other sound-parameters to make the sound instruments-like.you can setup a guitar-like sound,too.: : i assume you have some basic assembly-knowledge,this is surely not that hard to do,but you need some assembly-practice to code.i suggest you try to write this code under win9x and not XP.XP will not allow you to control the adlib directly.search this site or the web for adlib,there should be good descriptions for this chip or send me a private message: : when you played your first notes successfully you can try to change your code to a bootable version.: : : Ummmm... I'm a noob... What's the syntax? or the INT? or the sub-function? Or a link to tutorial site?

: [green]: Might be an easier task to do it with the PC speaker being a novice even though the PC speaker is inferior now days.: : http://fly.cc.fer.hr/GDM/articles/sndmus/speaker1.html: : [/green]: : : Ummmm.... I'm using TASM 2.0... Can't understand, especially the "OUT" thing...

I'm new to Assembly Language. Then our teacher gave us an assignment to make a program that produce sounds using TASM. All I could understand for today is the "INT xxh" and "MOV AH, xxh" thing (or some like STOSB). Hope you could help me...

When you run the program, you'll just press (0-9) and the sound will produce, while ESC exits the program.

Here I learn something: (I'm referring to the RED code)

1.) OUT is putting something to the port while IN is getting something to the port.

2.) (10110110b = 182 = B6h) was sent to port 43h. According to http://fly.cc.fer.hr/GDM/articles/sndmus/speaker1.html, Port 43h is a System Timer 2, is used to control sound generation. And the number that was inputed to it is countdown value (is it the same with frequency?).

3.) Then the STOR was sent to AX (What will be put to AH and AL?).

4.) Then "something" (because I don't know what went to AL) was sent to Port 42h. It said Port 42h is used to set the LOW and HIGH byte (What is it? Is it the peaks and bottoms of the frequency?). Twice... (Can't understand this thing, will the second value OVERWRITE the first value?)