flat assembler
Message board for the users of flat assembler.

Index > DOS > Para512 - 512 byte paratrooper (with sources)

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Oct 2006, 11:12
nice, seems you was second Wink
Post 26 Oct 2006, 11:12
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 27 Oct 2006, 14:20
the data section at the end: you can make a generator for this and shave off some bytes.
Like:
Code:
;For example:
dd 0,0
; could be changed to
xor eax,eax
mov [blah],eax
mov [blah+4],eax
    

that blah should be further optimized to use registers or sth.
Post 27 Oct 2006, 14:20
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Oct 2006, 21:12
you mean data in my paratrooper (eg. graphics)?
Post 27 Oct 2006, 21:12
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Goplat



Joined: 15 Sep 2006
Posts: 181
Goplat 28 Oct 2006, 00:58
Madis731: Your example turns 8 bytes into 11; that's not an improvement.
Post 28 Oct 2006, 00:58
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 28 Oct 2006, 09:59
Yeah, I know - of course it wouldn't be that simple - its not a complete example.

The definition of the data could be arranged into a loop where you generate pseudorandom data in eax and store it. The pseudorandom data would eventually be the graphics data. Finally you can make a generator for even more beautiful graphics and still have the same size. Just change the first constant that the calculation starts from...
...maybe I just have to post an example Very Happy LOL
Post 28 Oct 2006, 09:59
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
sylwek32



Joined: 27 Apr 2006
Posts: 339
sylwek32 28 Oct 2006, 21:45
Hey vid,
what about a version with background music?
Its possible to do it in a ~4K version.
Post 28 Oct 2006, 21:45
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 29 Oct 2006, 09:40
4K? see "omniscent" Wink
Post 29 Oct 2006, 09:40
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 24 May 2007, 21:56
Okay, Eric Auer has tweaked vid's para512 to use 386-compatible random number generation, plus it has a score bar now (though it's too easy, IMO). It's 631 bytes now. He says his changes are public domain.

http://www.coli.uni-saarland.de/~eric/para512e.zip

Tested new version successfully under WinXP (fullscreen DOS prompt, AMD AthlonXP), DOSBox 0.70 (WinXP, Intel P4), and FreeDOS 1.0 boot disk (my 486 Sx/25).
Post 24 May 2007, 21:56
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 24 May 2007, 22:31
nice, thanks for letting me know.

where does that link come from? i couldn't find anything about it on his site (my german is really poor)
Post 24 May 2007, 22:31
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 29 May 2007, 00:46
Believe me, my German is worse than yours, by far!

Anyways, I e-mailed Mr. Auer about something unrelated and mentioned / showed him the tiny paratrooper thingy you wrote, and he tweaked it and told me the direct link to get it. AFAIK, it isn't on his site under any obvious link. And he asked me to mention it here. Smile
Post 29 May 2007, 00:46
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

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