flat assembler
Message board for the users of flat assembler.

Index > Windows > Directx/Fasm test

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



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 26 Jan 2004, 16:24
Hi ! Very Happy
Small test DirectX and Fasm please ?
You have to obtain a window of 640x480 black with color message , and a small sprite which you can move with the direction keys
ESC to quit.
Addresses for surfaces Directx with Fasm are difficult to manipulate, that is why I ask you for this small attempt.
Thanks

Friendly..Gges


Description:
Download
Filename: fasmdx.zip
Filesize: 21.5 KB
Downloaded: 476 Time(s)

Post 26 Jan 2004, 16:24
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 26 Jan 2004, 16:27
Post 26 Jan 2004, 16:27
View user's profile Send private message Visit poster's website Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 26 Jan 2004, 16:59
No No Decard Sad
http://board.flatassembler.net/topic.php?t=599
In this thread there is a file test.exe which blocked all my system!!! = > REBOOT.
Post 26 Jan 2004, 16:59
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 26 Jan 2004, 17:08
Well, on my my system it also crashes Sad but in others' it works OK. Hope that vid will do something with this, because his library is good written and the routines are well organized (althougl it isn't finished).

regards
Post 26 Jan 2004, 17:08
View user's profile Send private message Visit poster's website Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 26 Jan 2004, 17:20
You did not give me of result of test ?
Mine is not going to crashed your system ...... Very Happy
Friendly..gges
Post 26 Jan 2004, 17:20
View user's profile Send private message Visit poster's website Reply with quote
kamilh



Joined: 08 Jan 2004
Posts: 2
kamilh 26 Jan 2004, 19:14
it worked on my system (win XP DX9)
Post 26 Jan 2004, 19:14
View user's profile Send private message Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 26 Jan 2004, 19:36
Hi ! kamilh Very Happy

Big thanks. Cool

Friendly..Gges
Post 26 Jan 2004, 19:36
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 26 Jan 2004, 20:42
Sorry but I couldn't test it then - I wasn't at home and I didn't have enough time to do it. But now I tested it and it works fine (WinMe, DirectX 7.1) Wink
Post 26 Jan 2004, 20:42
View user's profile Send private message Visit poster's website Reply with quote
VitalOne



Joined: 29 Jul 2003
Posts: 54
Location: USA
VitalOne 27 Jan 2004, 06:33
This was just cool, nice Wink
Post 27 Jan 2004, 06:33
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 27 Jan 2004, 09:18
Hi ! Decard VitalOne Very Happy
Thanks for this test, you are nice people!
This program directx is a little bit different with regard to that supplied with Fasm.
In the example presented with Fasm program works:
_ In full screen mode,
_ Files for sprites are in size .gif.
_ A single large surface is used.

In mine program works:
_ In window mode, but makes easily with little modified code work in full screen mode.
_ The size of file is .bmp, yes an a little bit special bmp because it can not be seen correctly with a software of drawing, it uses a small very simple converter / decoder of my manufacture.
_ There are several surfaces.

The biggest problem which I had until now was access reading / writing to the various surfaces because of actual addresses.
Privalov had given me a very good solution but it limits to use this solution in an appeal to a single subroutine.
If subroutine is called by another subroutine there is error in the access to the address of surface.
With some craftiness and precautions of code this problem can be resolved.

That is why this test is important.
The purpose is to know if it works before writing programs and more complex games and which asks for a lot of time in programming and in assembler Fasm naturally.
If it does not work, the way is false, search for another way.

Ps: purpose is to make graphic programs easily, programs which work on most of versions Windows, these programs will be in source opened , not commercial , public domain, no license, accessible and modifiable by all.

Sorry, bad English
Friendly.....Gges
Post 27 Jan 2004, 09:18
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Jan 2004, 21:20
hi, i'm the one who created that (crashy) test. It seems to work on XPs, but not on 98s. Maybe it is caused by DX version? I checked everything at least three times, i tried to change whatever i could but it still crashes. I dont have 98 to test it, i must always post it here or crash friend's comp Sad . I already experienced such error with DX, DX is STUUUUUUUUPIIIIID :grrrrrrr:

asmgges: maybe you could try to lock all non-primary surfaces with flag which tells not to take mutex (= lock process), i don't remember it's name. I don't remember it's name, you should look it up in docs. I never used this way, i rather keep pictures in my own structures, hw accelleration of blitting smaller pics is lost because DX wastes more time in it's procs than drawing would take.
Post 27 Jan 2004, 21:20
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 28 Jan 2004, 09:05
Hi ! vid Very Happy
Your programm Win95 DirectX7 no work.
Crash is not a problem.
It is necessary to try programs to advance.
Do not hesitate to put them on-line when you want.
I would try them with pleasure. Very Happy

Friendly..Gges
Post 28 Jan 2004, 09:05
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 28 Jan 2004, 19:08
asmgges: then just watch tg2d thread, i am posting new version of tg2d there.
Post 28 Jan 2004, 19:08
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 29 Jan 2004, 12:46
Hi ! vid Very Happy
Perfect ,OK now Cool
Very good work !! Very Happy

Friendly...Gges
Post 29 Jan 2004, 12:46
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 29 Jan 2004, 19:05
you say previous version of tg2d didn't work and this does? decard just told that it still doesn't work on his, so it would be interesting.
Post 29 Jan 2004, 19:05
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges 29 Jan 2004, 19:12
Yes new version works with Win95.
A small rectangle of colours which passes on the screen since the left superior corner towards the right-hand side? It is well it?

Friendly..Gges
Post 29 Jan 2004, 19:12
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 29 Jan 2004, 21:56
yes. That means there were more bugs Confused . What version of directx are you using?
Post 29 Jan 2004, 21:56
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
lamer



Joined: 24 Apr 2013
Posts: 8
lamer 17 May 2013, 14:10
it worked on windows 7, thats how good it was coded. Very Happy
Post 17 May 2013, 14:10
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1178
Location: Unknown
HaHaAnonymous 17 May 2013, 14:56
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 20:31; edited 1 time in total
Post 17 May 2013, 14:56
View user's profile Send private message Reply with quote
lamer



Joined: 24 Apr 2013
Posts: 8
lamer 17 May 2013, 14:59
HaHaAnonymous wrote:
Quote:

it worked on windows 7, thats how good it was coded.

P.S. I was 12 when this topic was created.

So, how it all ended, you beated Gabe Newell in gamedev world or came close? Very Happy Actually i was just googling for fasm directx codes, and ended up here.
Post 17 May 2013, 14:59
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.