flat assembler
Message board for the users of flat assembler.
Index
> Main > Compiling .ASM-source directly into a .TGA image with fasm!! Goto page 1, 2 Next |
Author |
|
Matrix 15 Sep 2004, 14:59
Nice !
8.4 seconds 1 passes 15186 bytes here it is in jpg
|
||||||||||
15 Sep 2004, 14:59 |
|
decard 15 Sep 2004, 15:02
cool I remember sometime ago similar examples were posted, they were generating BMP files...
|
|||
15 Sep 2004, 15:02 |
|
MCD 15 Sep 2004, 15:24
Jep, it's just genious, this little Fasm example.
I'm so fond of it although I hasn't coded fasm. IT IS 100000* better than TASM/MASM. A lopng time ago, I used a TASM version which was even unable to compile "pop ds". |
|||
15 Sep 2004, 15:24 |
|
Matrix 15 Sep 2004, 16:21
Hy again here are my test results:
; Some basic image properties. Feel free to modify (786 bytes header) ; tests in real time, Celeron II @ 933Mhz (600), 103MHz Bus, FSB, 16+16K L1, 256k L2: ; 20x20 : 0.2s 2000 pixels per sec 1186 bytes ; 40x40 : 0.9s 1777.77 pixels per sec 2386 bytes ; 80x80 : 3.6s 1777.77 pixels per sec 7186 bytes ; default 120x120 : 8.2s 1756.09 pixels per sec 15186 bytes ; 160x160 : 14.7s 1741.49 pixels per sec 26386 bytes ; 200x200 : 23.1s 1731.60 pixels per sec 40786 bytes ; 280x280 : 44.9s 1746.10 pixels per sec 79186 bytes ; 800x800 : 366.7s 1745.30 pixels per sec 640786 bytes ; 1200x1200 : 831.3s 1732.23 pixels per sec 1440786 bytes MATRIX |
|||
15 Sep 2004, 16:21 |
|
S.T.A.S. 15 Sep 2004, 22:51
Thes 2 examples were posted to HEAP earlier, but now they aren't available.
I think they might be interesting too, so I repost them. Author is Black Mirror from wasm.ru
|
|||||||||||||||||||||
15 Sep 2004, 22:51 |
|
madmatt 15 Sep 2004, 23:13
Hi MCD, very nice example,
I get 5 seconds compile on a 2.7ghz celeron using fasmw 1.55, useing 120x120 image 20.5 seconds for a 320x200 image Hope you make some more in the future. MadMatt |
|||
15 Sep 2004, 23:13 |
|
MCD 17 Sep 2004, 13:14
Well, mostly code real programs, but this was just a nice change from daily work.
Has anyone an idea how to speed up the compilation process? I already stripped out the roundings at divisions and I don't see any further possibility to optimize this. |
|||
17 Sep 2004, 13:14 |
|
scientica 18 Sep 2004, 18:53
decard wrote: cool I remember sometime ago similar examples were posted, they were generating BMP files... I'm not sure if I ever posted it, but I made a xpm using fasm, nothing fancy, just a "wee, I'm having fun"-thing. I wonder if there's anyother assemlber that can do these nice tricks :) (posting from elinks (text mode browser) due to xorg uppgrades in progress) _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
18 Sep 2004, 18:53 |
|
decard 18 Sep 2004, 21:08
I remember that you posted it sometime ago
Does anybody still have those examples of generating BMP files? (I remebmer that they were from wasm.ru). I have deleted them |
|||
18 Sep 2004, 21:08 |
|
S.T.A.S. 19 Sep 2004, 02:38
decard, aren't they attached above?
|
|||
19 Sep 2004, 02:38 |
|
decard 19 Sep 2004, 06:34
LOL, sorry, that's because I'm usually clicking on "view latest post" icon Thanks
|
|||
19 Sep 2004, 06:34 |
|
MCD 22 Sep 2004, 18:46
Okay folks! Since many users around here like those kind of experimental stuff, I've decided to start another mind-blasting experiment.
HERE IT IS: Code: ; This example will compile(!) to a beat-sound using data defining directives ;and thus it doesn't need to be run. Furthermore, ; DON'T _RUN_ this file, just COMPILE it and listen to it with any ; sound program that supports 16-bit 11025Hz mono WAV-sounds (many does). ; usage: "FASM BEAT.ASM BEAT.WAV" ; better keep the ".WAV"-extension, else this might confuse some lamish ; sound programs. Prec equ 24;change with care! Length equ 2205;length in samples = 0.2 seconds ;If you change Lambda, then you must change CoLambda accordingly! Lambda = 140000h; = 5/64 CoLambda = 16725938; = SqRt( 1 - Lambda*Lambda ) ;Setting these values to high/low can quickly result in ;"value out of range" errors! Reverb = 0FFB000h CoReverb = 1000014h ;Better keep the following values PrecDiv = 1 shl Prec WordDiv = 1 shl (Prec-15);used to normalize to +-2^15 ;PCM-wave file header ;comment these lines out if you prefer a RAW file db 'RIFF' dd (Length shl 1) + 36 db 'WAVEfmt ' dw 10h,0,1,1 db 11h,2Bh,0,0,22h,56h dw 0,2,10h db 'data' dd (Length shl 1) ;Initiating robber and prey variables A = 0 shl Prec B = 1 shl Prec ;Main fluctuating growth model calculation loop repeat Length ;This could be optimized by implementing a "sar" operator into Fasm Tmp = ( A*CoLambda + B*Lambda )/PrecDiv B = ( B*CoLambda - A*Lambda )/PrecDiv A = Tmp dw (A/WordDiv) Lambda = ( Lambda * Reverb) shr Prec CoLambda = (CoLambda * CoReverb) shr Prec end repeat I know that this kind of stuff uses mathematical difficult stuff. But if you don't know how it works, ask me, but please, try to be specific. (DOn't blame me if my math-vocabulary is not always correct 'cause english is not my language of birth) _________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
22 Sep 2004, 18:46 |
|
MCD 22 Sep 2004, 19:14
And for all those who really like fractal images, here is a complete collection of my best images. Although they are much smaller than the originally PNGs (about 5-22Mb PNG per image ~ 20MEGAPIXELS), the archive is still _CHUNKY_ (sorry old modems) not to degrade quality too much (1Mpixel per image).
If someone whiches, I could give him the originals... They were all created with FractInt 20.0 ans UltraFractal 3, so I could pass you the parameters/formulas too. Don't mind me, but for the TrueColor ones, I prefer using the LWF-format (Lura Wave format) which is already supported many image programs or plugged in(Photoshop, IrfanView, XnView, PainShopPro...) not to break compatibility, but for better image quality! Sorry folks! but I must interrupt this post because it seems to be impossible to upload this 6.27MB archive here. =>Privalov, is there a file size limitation? How could I upload this file, HELP! _________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
22 Sep 2004, 19:14 |
|
decard 22 Sep 2004, 19:52
If you want, you can send it on my email (mtymek _@_ decard.net) and I will upload this archive on my website (I can keep it here for some time).
|
|||
22 Sep 2004, 19:52 |
|
MCD 22 Sep 2004, 20:33
Has anyone tried my Beat already?
|
|||
22 Sep 2004, 20:33 |
|
Matrix 22 Sep 2004, 22:29
MCD wrote: And for all those who really like fractal images, here is a complete collection of my best images. Although they are much smaller than the originally PNGs (about 5-22Mb PNG per image ~ 20MEGAPIXELS), the archive is still _CHUNKY_ (sorry old modems) not to degrade quality too much (1Mpixel per image). Why do you do such a thing? you can make a few hundred byte com file which zooms as further as you wanna zoom in to the fractal land. real-time and you shouldn't upload big files, just make a free website or something like bravesnet.com , monkeymanv2.com, 250free.com , khsv.tk , web1000.com , free.hostdepartment.com ... and then give a link instead MATRIX |
|||
22 Sep 2004, 22:29 |
|
scientica 23 Sep 2004, 21:51
MCM, yeah, just tried it -- rather cool (works (as expected) flaw less in linux as well )
|
|||
23 Sep 2004, 21:51 |
|
gunblade 24 Sep 2004, 10:09
you continue to amaze, MCM
the beat generator works as you said it would.. and with such little code well done |
|||
24 Sep 2004, 10:09 |
|
MCD 14 Oct 2004, 17:44
Well, there are dozens of similar things I _COULD_ do, but don't have time/nerve starting it. If someone whiches any further Fasm-experiments,
just write it here/post me a PM. I should really stop this kind of fancy, but I have lots of maths/physics stuff I would really like to try with Fasm. You can really get addicted to this kind of semi-Nonsense. Help me! Just a thing: my nick is MCD which means Mad Computer Doggy (MCM? MGM? ) |
|||
14 Oct 2004, 17:44 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.