• Welcome to Dark Bit Factory & Gravity.
 

Where to get some good ASM Tutorials

Started by Rbz, May 07, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rbz

I found a webpage with some good tutorials about asm:

http://www.dd.chalmers.se/~f99laan/3d/download.html

Take a look at "General graphics tutorials..." section.

The tutorial by Adam's is very good, one of the best.

http://www.dd.chalmers.se/~f99laan/3d/www-download/asmtuts.zip


Enjoy :)


[Edited: Attached asmtuts.zip to this post]
Challenge Trophies Won:

Shockwave

Thanks for the links!
What assembler do you use for your tiny stuff?
I wouldn't mind having a go at making something.
Shockwave ^ Codigos
Challenge Trophies Won:

Clyde

@Shockie: You might be able to do some of them with the inline ASM in FreeBasic dude.

Cheers for the links Rbraz buddy :D
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Rbz

For 1K tentacle I have used T0A - The 0ok Assembler by Null OK, its nice and simple assembler capable to compress the final executable.

But now I'm using Flat Assembler much better and friendly, FASM have a simple IDE that help alot when you need to find errors in your code.

And they are free!



Challenge Trophies Won:

Shockwave

Thanks mate, I'll use the flat assembler I think.
Shockwave ^ Codigos
Challenge Trophies Won:

Phoenix

Thanks for the links Rbraz, I'm giving FASM a shot right now, following the tutorial. ASM is pretty tricky but I'm starting to get the hang of it :)

Rbz

#6
No problem dude :)

I found another tutorial that will help with fasm.

http://sulaiman.netadvant.com/sulaiman.zip


The autor have translated some of the Iczelion's Assembly Tutorial into fasm.

Enjoy!


[Edited: Attached sulaiman.zip to this post]
Challenge Trophies Won:

Steve Elliott

rbraz, what do you think of MASM32?
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express, Windows Vista Home Premium
Samsung NC10 Intel Atom @ 1.60Ghz, 2Gb RAM, Intel 945 Express, Windows XP Home Edition
Scorpions's coming...

Shockwave

Isn't Masm the assembler that imitates C style instructions?
I don't know anything about it, except that if you were looking to write some 1kb style stuff, that T0A is probably the one to go for, I think that's what Rbraz used to write Tentacle.

Then again, it is possible to write some very small stuff using C.

http://www.intro-inferno.com/production.php?id=1688

Shows a 256byte C program, although it is said that the same program is possible in 128b with asm. But it does go to show that you don't necessarily need to use asm to get a small file.
Shockwave ^ Codigos
Challenge Trophies Won:

Steve Elliott

#9
Yes MASM has some C style instructions that are the equivalent of jmp and cmp etc (so no loss in speed).

I'm looking to have a go at assembly for speed, compactness and because it's something I haven't done before!  I'm not too bothered about fitting everything into 1K - I was just impressed by the 1K demo.

[Edit]
After a quick test FASM seems easier to use.
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express, Windows Vista Home Premium
Samsung NC10 Intel Atom @ 1.60Ghz, 2Gb RAM, Intel 945 Express, Windows XP Home Edition
Scorpions's coming...

Shockwave

Any questions you get, please feel free to post them, there are at least half a dozen people here who will be able to help with most stuff.
Shockwave ^ Codigos
Challenge Trophies Won:

Steve Elliott

Cool.  I'm coding in Cobra mainly - but I'm definitely looking to try and get something running in asm.
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express, Windows Vista Home Premium
Samsung NC10 Intel Atom @ 1.60Ghz, 2Gb RAM, Intel 945 Express, Windows XP Home Edition
Scorpions's coming...

Rbz

Quote from: Steve Elliott on March 03, 2007
rbraz, what do you think of MASM32?
Hello Steve, welcome aboard!

I use MASM32 too, it's really good choice, you can emulate "High Level Syntax" (.if .else .while .repeat etc..) that make your code more readable.

You can try FASM, I just love it, very simple IDE to use that help a lot, you can make Windows or DOS (16 / 32 / 64 bits) programs.
All my others 1kb are coded in FASM.

:cheers:
Challenge Trophies Won:

Steve Elliott

Thanks rbraz - have you written any tutorials here?  I think the basics of assembly are ok - but the graphics and sound need a few tutorials to help a noob.

Have you seen the San Angeles Observation 4K demo?  That's a really inspiring demo which uses Opengl and asm like your 1K demo.
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express, Windows Vista Home Premium
Samsung NC10 Intel Atom @ 1.60Ghz, 2Gb RAM, Intel 945 Express, Windows XP Home Edition
Scorpions's coming...

Rbz

Quotehave you written any tutorials here?
No, sorry, I'm bad writing tutorials, but I can help if you got stuck with something

QuoteHave you seen the San Angeles Observation 4K demo?
Yeah, really good

Here's one that use directx -> http://www.pouet.net/prod.php?which=29823

Challenge Trophies Won:

Steve Elliott

That demo doesn't work rbraz - it gives an error as you click on the program.
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express, Windows Vista Home Premium
Samsung NC10 Intel Atom @ 1.60Ghz, 2Gb RAM, Intel 945 Express, Windows XP Home Edition
Scorpions's coming...

Shockwave

Shame, hitch's demo works on here.
Maybe you need to update your directx?

Anyway, there are lots of examples of small intros if you can't get this to work so I wouldn't worry.
Shockwave ^ Codigos
Challenge Trophies Won:

Shockwave

By the way Steve, I was thinking about sound in assembler, you could use ufmod, it's really small and it has the capability to work with Masm and fasm.

ufmod

If you are going to try and make sound in a 1kb or a 4kb, you'll have to write some kind of synth.
Saida posted a 1kb softsynth in masm here;

Saida's Synth.

Also, this may be of interest to you as well.
Speech in 1kb

Again by Saida.

Sorry I didn't think of these last night, I was brain dead from too much celebrity tv.
Shockwave ^ Codigos
Challenge Trophies Won:

Steve Elliott

Thanks Shockwave - just need some spare time to get my head around it all now.
Intel Core2 Duo E7200 @ 2.53Ghz, 3Gb RAM Intel G45 Express, Windows Vista Home Premium
Samsung NC10 Intel Atom @ 1.60Ghz, 2Gb RAM, Intel 945 Express, Windows XP Home Edition
Scorpions's coming...

Agent Smith

#19
 :P