News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

WinFire Demo

Started by avcaballero, October 18, 2012, 08:55:57 PM

Previous topic - Next topic

avcaballero

Quote from: ToutEnMasm on October 20, 2012, 12:28:36 AM
Thanks,
Your one is very similar with the "108_Fire.zip" that can be found in the "archive 2" of the forum ,Not ?.

Don't know, but it is possible. The algorithm I have used is one I have found several years ago from a Turbo Pascal source code (that's the season why it is 320x200 size), it was the best of all I saw... Unfortunately I lost the code and with it its author name... this is the reason why he is not in my bibliography

In addition, I had planned to publish the result of applying the function CreateDIBSection, I thought that it had gotten pretty clean and didactic. By the way, great discovery, using it, the program does not practically consume resources of the system. Believe me, practically nothing. But, since you already have one, I have better holding it for me.


Using eax = 0, I believe that does no fix the problem.


TouEnMasm

Quote
Believe me, practically nothing. But, since you already have one, I have better holding it for me.
I see a top secret code,perhaps ist it money in it ?  :lol:
Just a simple code showing fast method for display.
It will be interesting to have it here,or with a link on it.
Fa is a musical note to play with CL

dedndave

 :biggrin:

i am reminded of the "Secret Sam" briefcase i had when i was a kid - lol



as though noone else knew it was a secret sam briefcase   8)

avcaballero

Let's see, didn't you have already one code that solved the problem? Your fire program does not consume resources in my task manager...  Too much instructions for a kid, isn't it?  :greensml:

As Dedndave said, I think that is probably that the SetPixel function be the key.

I have updated my site, hence the source code is where before, explained. There's also a subroutine to fit the main window round the image size and center it raising a bit.

Regards


TouEnMasm

You are right on this:
The WAFire_03.exe is a real good demo program with is source code.
But this need to be discuss:
Quote
Let's see, didn't you have already one code that solved the problem? Your fire program does not consume resources in my task manager...  Too much instructions for a kid, isn't it? 
I don't pretend than the code i re-published solved the problem.I am just a newbe on this matter.
Your WAFire_03.exe is the best,I am happy to claim it here.



Fa is a musical note to play with CL

dedndave

when i click on those links to download either the source or the binary,
i get a blank page that appears to be a 404 not found html

TouEnMasm


Another trick to be more mysterious.
You need to go at the bottom of the page reading the commentS.
[url]
http://www.abreojosensamblador.net/Productos/AOE/html/Codigos/Cap20/16-WinDemos/Fuego/WAFire_03.exe
/url]
Fa is a musical note to play with CL

dedndave


TouEnMasm

#23
Here a translate for masm
Fa is a musical note to play with CL

avcaballero

Quote from: dedndave on October 23, 2012, 05:13:47 AM
when i click on those links to download either the source or the binary,
i get a blank page that appears to be a 404 not found html
I'm sorry, are the drawbacks of being on live.

Quote from: ToutEnMasm on October 23, 2012, 06:03:36 PM
Here a translate for masm
Nice, if you do not mind, I can also hang masm version, if you want I can include your name/pseudonym (the latter is sufficient if you want) as the author of the translation to masm.

Ops. One thing, mdat should be unitialized, otherwise, the executable will be too big.

Regards

TouEnMasm

I have changed mdat to unitialised data.
The difference of size is notable.
Quote
Nice, if you do not mind, I can also hang masm version, if you want I can include your name/pseudonym (the latter is sufficient if you want) as the author of the translation to masm.
OK,ToutEnMasm is perfect

Fa is a musical note to play with CL

Vortex

Hi ToutEnMasm,

Your version of WinFire works fine and it does not suffer from high processor usage.

avcaballero

I have uploaded the masm version. I have modified several things from yours:
* Unitialized some variables
* Deleted some parameters that really are not needed
* Changed tabs by spaces. I can't read code with tabs.
* Deleted some things that I really don't know what are they for.
* Changed structures to what I usually use.
* Some other minor things

Regards

Vortex

Your improved version works fine now, thanks :t

TouEnMasm

Quote
miPaleta         stPaleta      4*256  dup(<>)
It's over dimensionned
Quote
miPaleta         stPaleta      256  dup(<>)  ;is enough
[hwnd] and so on aren't needed,mean adress and work only because there is a prototype.What is passed is a value.

Fa is a musical note to play with CL