Author Topic: WinFire Demo  (Read 8414 times)

caballero

  • Member
  • ****
  • Posts: 760
    • Abre Ojos Ensamblador
Re: WinFire Demo
« Reply #15 on: October 22, 2012, 07:05:18 PM »
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.

En un lugar de la Mancha de cuyo nombre no quiero acordarme

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: WinFire Demo
« Reply #16 on: October 22, 2012, 11:17:14 PM »
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

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: WinFire Demo
« Reply #17 on: October 23, 2012, 01:10:16 AM »
 :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)

caballero

  • Member
  • ****
  • Posts: 760
    • Abre Ojos Ensamblador
Re: WinFire Demo
« Reply #18 on: October 23, 2012, 01:21:50 AM »
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

En un lugar de la Mancha de cuyo nombre no quiero acordarme

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: WinFire Demo
« Reply #19 on: October 23, 2012, 05:01:30 AM »
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

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: WinFire Demo
« Reply #20 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

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: WinFire Demo
« Reply #21 on: October 23, 2012, 05:29:03 AM »

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

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: WinFire Demo
« Reply #22 on: October 23, 2012, 05:40:57 AM »
thanks Yves   :t

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: WinFire Demo
« Reply #23 on: October 23, 2012, 06:03:36 PM »
Here a translate for masm
« Last Edit: October 23, 2012, 07:23:13 PM by ToutEnMasm »
Fa is a musical note to play with CL

caballero

  • Member
  • ****
  • Posts: 760
    • Abre Ojos Ensamblador
Re: WinFire Demo
« Reply #24 on: October 23, 2012, 06:22:12 PM »
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.

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
En un lugar de la Mancha de cuyo nombre no quiero acordarme

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: WinFire Demo
« Reply #25 on: October 23, 2012, 07:26:55 PM »
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

  • Member
  • *****
  • Posts: 1704
Re: WinFire Demo
« Reply #26 on: October 24, 2012, 06:06:18 AM »
Hi ToutEnMasm,

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

caballero

  • Member
  • ****
  • Posts: 760
    • Abre Ojos Ensamblador
Re: WinFire Demo
« Reply #27 on: October 24, 2012, 06:31:01 PM »
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
En un lugar de la Mancha de cuyo nombre no quiero acordarme

Vortex

  • Member
  • *****
  • Posts: 1704
Re: WinFire Demo
« Reply #28 on: October 24, 2012, 07:27:02 PM »
Your improved version works fine now, thanks :t

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: WinFire Demo
« Reply #29 on: October 24, 2012, 11:45:13 PM »
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