flat assembler
Message board for the users of flat assembler.

Index > Windows > Graphics animations with fasm

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 23 Mar 2012, 09:30
Hello fasm community! I wrote this graphics animation program to assist myself in becoming familiar with fasm, and for learning and playing with some animation maths. A fun tinker toy. It's a bit early to release(only one color implemented, four animations, single buffer...) but I welcome comments, corrections and suggestions before I continue. I'm also curious to know if this works on other hardware and OS's. Developed on 64 bit Win7 laptop Quad Core AMD A6-3400M APU w/Radeon HD Graphics 1.4ghz 6GB RAM @ 1600x900.

zip of source code


Description:
Download
Filename: grtest.zip
Filesize: 3.82 KB
Downloaded: 622 Time(s)



Last edited by lostcauz on 23 Mar 2012, 16:24; edited 1 time in total
Post 23 Mar 2012, 09:30
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:33
Works OK under WinXP on x86, CORE 2 DUO. I believe graphics is irrelevant since you're using GDI32.
Post 23 Mar 2012, 13:33
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1708
Location: Toronto, Canada
AsmGuru62 23 Mar 2012, 14:00
GDI32 is obviously using the hardware acceleration in its core.
Post 23 Mar 2012, 14:00
View user's profile Send private message Send e-mail Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 23 Mar 2012, 14:11
AsmGuru62 wrote:
GDI32 is obviously using the hardware acceleration in its core.

Is it? I thought they implemented it only in Windows 7, according to this article:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff566559(v=vs.85).aspx

Correct me if I'm mistaken
Post 23 Mar 2012, 14:11
View user's profile Send private message Reply with quote
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 23 Mar 2012, 16:38
Thanks for the comments guys. I don't understand the comment, "graphics is irrelevant since you're using GDI32." This is my first fasm program but I am definitely enjoying working with this assembler.
Post 23 Mar 2012, 16:38
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 23 Mar 2012, 18:02
wow ! FASM is out of memory then I increase memory and the file is 11 Megabytes lol

.NET or what ?!!!

Image

remove that line
Code:
xxxxx rd 255 * 255 ?????
    


check this thread post: http://board.flatassembler.net/topic.php?p=142118#142118
Post 23 Mar 2012, 18:02
View user's profile Send private message Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 23 Mar 2012, 19:38
typedef wrote:
wow ! FASM is out of memory then I increase memory and the file is 11 Megabytes lol

.NET or what ?!!!

Image

remove that line
Code:
xxxxx rd 255 * 255 ?????
    


check this thread post: http://board.flatassembler.net/topic.php?p=142118#142118


How did you do that? My output is:
Code:
C:\asm\examples2\grtest\1>fasm "grtest.asm" -s "grtest.fas"
flat assembler  version 1.69.36  (1484903 kilobytes memory)
4 passes, 4.2 seconds, 3584 bytes.
    
Post 23 Mar 2012, 19:38
View user's profile Send private message Reply with quote
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 23 Mar 2012, 23:22
Yes typedef, what did you do? It assembles and works perfectly on my machine with fasm 1.69.47 4 passes, 0.1 sec. 741,847 kb memory 3584 bytes. Perhaps I should have included an executable for those that don't understand how to read assembler or assemble with fasm. There is nothing wrong with the code as far as I can tell.
Post 23 Mar 2012, 23:22
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 24 Mar 2012, 02:18
cool stuff.

i will certainly use that code as a tutorial for buffer rendering in windows.. and play with high res graphixs then.

it works fine here (win98, 256MB, PIII800MHz), i tested various resolutions, seems ok, rendering is fast enough to investigate a little more.

thank you it's cool Smile
Post 24 Mar 2012, 02:18
View user's profile Send private message Visit poster's website Reply with quote
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 28 Mar 2012, 13:05
Thanks edfed, I hope it is useful. I'll add more when I have time.
Post 28 Mar 2012, 13:05
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 28 Mar 2012, 15:53
lostcauz wrote:
Perhaps I should have included an executable for those that don't understand how to read assembler or assemble with fasm.


Shocked Shocked Shocked

Image
Post 28 Mar 2012, 15:53
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1708
Location: Toronto, Canada
AsmGuru62 28 Mar 2012, 16:49
Shouldn't it be: "Disappoint I Am"?
Smile
Post 28 Mar 2012, 16:49
View user's profile Send private message Send e-mail Reply with quote
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 28 Mar 2012, 16:57
Fasm is a well written assembler and I enjoy working with it. However, as a newcomer to this site, it is a definite annoyance when every post one makes is trolled by a member who adds nothing to the discussion. I came here to gain and share knowledge, and thus far, typedef has been quite unwelcoming. First the ridiculous alarmist comments about the program being 11 mb with the crack about .NET, then the further jab in my other thread. I know some of you and recognize usernames of many respectable asm programmers here, which is why I joined, but I will not tolerate this childish behaviour.
Post 28 Mar 2012, 16:57
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 28 Mar 2012, 17:53
lostcauz wrote:
Fasm is a well written assembler and I enjoy working with it. However, as a newcomer to this site, it is a definite annoyance when every post one makes is trolled by a member who adds nothing to the discussion. I came here to gain and share knowledge, and thus far, typedef has been quite unwelcoming. First the ridiculous alarmist comments about the program being 11 mb with the crack about .NET, then the further jab in my other thread. I know some of you and recognize usernames of many respectable asm programmers here, which is why I joined, but I will not tolerate this childish behaviour.

Hey, take it easy, comrade! Your code really helped me while I studied the graphics output using DIB structures(in that useless PCX viewer of mine).
Post 28 Mar 2012, 17:53
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 28 Mar 2012, 19:51
Post 28 Mar 2012, 19:51
View user's profile Send private message Reply with quote
Coty



Joined: 17 May 2010
Posts: 553
Location: ␀
Coty 29 Mar 2012, 14:23
Fasm IDE ran out of memory with Run > Compile...

Defaulting to command line...

Got some strange errors about the compiler not being able to find the includes even though I pointed them to the correct directory, gave up and just compiled it from the include directory Laughing

Neat code. Colors are a little dark, but still neat Smile

_________________
http://codercat.org/
Post 29 Mar 2012, 14:23
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 29 Mar 2012, 17:00
Thanks Coty. I'm not familiar with Fasm IDE as I don't use any IDE. Your include issue is likely your environment variables settings. You can try using the "path" variable or adding an "include" variable with the path to your fasm include files in your system variables settings.
Post 29 Mar 2012, 17:00
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 29 Mar 2012, 18:13
Coty wrote:
Fasm IDE ran out of memory with Run > Compile...


aah, some one who doesn't know how to assemble just like me. lol
Post 29 Mar 2012, 18:13
View user's profile Send private message Reply with quote
lostcauz



Joined: 22 Mar 2012
Posts: 13
lostcauz 29 Mar 2012, 18:53
No, nothing like you. He assembled the program just fine. He didn't report the 'sky is falling', nor did he give a fictional "fix" for the program. What's the deal with you and my threads anyhow, other than postcount++? Momma didn't give you 'nuff attention? I'm sure she will be home soon with your milk and cookies...
Post 29 Mar 2012, 18:53
View user's profile Send private message Visit poster's website Reply with quote
Coty



Joined: 17 May 2010
Posts: 553
Location: ␀
Coty 30 Mar 2012, 13:36
Damn, I wish my mama brought me milk and cookies...
typedef wrote:
aah, some one who doesn't know how to assemble just like me. lol

Actually assembling with fasm alone is so easy, compared to when you have to assemble NASM, then you have to link it with ld just so it's binary with execute on linux...

_________________
http://codercat.org/
Post 30 Mar 2012, 13:36
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< 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.