flat assembler
Message board for the users of flat assembler.

Index > Windows > Tetris Melody

Author
Thread Post new topic Reply to topic
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto 27 Apr 2007, 22:43
Hi Smile
I have written a simple example to create melody in asm,
this little program make a wav file with tetris melody. Wink
Simple run the program and then run wav file.
Requires: FPU

Have Fun !!!


Last edited by DJ Mauretto on 01 May 2007, 08:45; edited 1 time in total
Post 27 Apr 2007, 22:43
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 28 Apr 2007, 07:48
EXE Works. Smile In DOS also Smile

Problem: source does not compile with FASM Sad

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 28 Apr 2007, 07:48
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel 28 Apr 2007, 09:04
Now it does.
I took the liberty of formatting the code. I hate all-caps.
If I made convertion errors, don't hesitate to say so.


Description:
Download
Filename: TetrisFASM.asm
Filesize: 5.99 KB
Downloaded: 473 Time(s)

Post 28 Apr 2007, 09:04
View user's profile Send private message Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 28 Apr 2007, 15:43
Korobeiniki... I think i'll add this to my list of clever ways of saving space and ways to get out of learning instruments to record songs.
Post 28 Apr 2007, 15:43
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 28 Apr 2007, 16:24
Quote:
Korobeiniki...

kohlrak, I wonder how did you recognize this old russian song? Smile i wouldn't remembered its name myself.

_________________
Any offers?
Post 28 Apr 2007, 16:24
View user's profile Send private message Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak 28 Apr 2007, 16:25
I got bored on wikipedia one day...
Post 28 Apr 2007, 16:25
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider 13 Feb 2012, 09:27
Have Fun !!! Very Happy
No window . Can you hear it ?


Description:
Download
Filename: wav.zip
Filesize: 1.16 KB
Downloaded: 2557 Time(s)

Post 13 Feb 2012, 09:27
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 13 Feb 2012, 09:40
very nice!
Post 13 Feb 2012, 09:40
View user's profile Send private message Visit poster's website Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 13 Feb 2012, 11:57
goldenspider
haha, can you post source please ? Razz
Post 13 Feb 2012, 11:57
View user's profile Send private message Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 618
cod3b453 13 Feb 2012, 21:44
nice Cool thanks for sharing
Post 13 Feb 2012, 21:44
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 16 Mar 2012, 20:47
goldenspider wrote:
Have Fun !!! Very Happy
No window . Can you hear it ?

Very nice, thanks for sharing.

Can you post the source, please? Being quite novice in windows programming, it is desirable to behold the way to output to SB.
Post 16 Mar 2012, 20:47
View user's profile Send private message Reply with quote
goldenspider



Joined: 16 May 2011
Posts: 38
goldenspider 17 Mar 2012, 08:51
en..


Description:
Download
Filename: wav.asm
Filesize: 11.8 KB
Downloaded: 364 Time(s)

Post 17 Mar 2012, 08:51
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 17 Mar 2012, 19:06
goldenspider wrote:
en..


Thanks a lot, comrade. That's really hardcore stuff you got there, with library loading and keeping the hash values of library calls.
Post 17 Mar 2012, 19:06
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 18 Mar 2012, 16:29
for a little more fun, add this line in the code.
Code:
                invoke  CloseHandle,[handle]
                invoke  ShellExecute,0,0,WAVFILE,0,0,5  ;this line
    


then, it will launch wav playing after wav creation.

ShellExecute is maybe the more cute and cool function you can find in windows. Smile

your trick is very nice, and now, the next step would be to make a cool structure for loop pattern composing. and why not, a structure from an external file. Smile
Post 18 Mar 2012, 16:29
View user's profile Send private message Visit poster's website Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 23 Mar 2012, 13:41
edfed wrote:
for a little more fun, add this line in the code.
Code:
                invoke  CloseHandle,[handle]
                invoke  ShellExecute,0,0,WAVFILE,0,0,5  ;this line
    


then, it will launch wav playing after wav creation.

ShellExecute is maybe the more cute and cool function you can find in windows. Smile

your trick is very nice, and now, the next step would be to make a cool structure for loop pattern composing. and why not, a structure from an external file. Smile


I believe the coolest structure for loop pattern composing is called Fruity Loops Smile
Post 23 Mar 2012, 13:41
View user's profile Send private message Reply with quote
Walter



Joined: 26 Jan 2013
Posts: 156
Walter 15 Jan 2014, 22:33
Tetris - Theme 'A' Acapella

http://www.youtube.com/watch?v=PV06M-Gqxgg
Post 15 Jan 2014, 22:33
View user's profile Send private message Reply with quote
Walter



Joined: 26 Jan 2013
Posts: 156
Walter 15 Jan 2014, 22:35
Tetris - Theme 'B' Acapella

By Smooth McGroove

http://www.youtube.com/watch?v=uFj60cLeGJI
Post 15 Jan 2014, 22:35
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.