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

rain_storm

This has proven invaluable to me its an interrupt list

http://www.ctyme.com/intr/int.htm

check it out it has em all (I think) its easy to navigate and has links to similar interrupts

Challenge Trophies Won:

taj

Rbraz,

I'm going through one of the tutorials you suggested step by step and its very good so firstly, thankyou. Now obviously the next thing is to code something in anger, I'm not a proud man (in this way) so I am happy to work from existing code and adapt. My question therefore is would I find most examles in MASM or in FASM.

Also when you say OOk asm can compress - are we talking compressing 4ks or 256b intros - which I thought nobody compresses (am I wrong)? Can you clarify a bit here please?

Thanks,

Taj
Challenge Trophies Won:


Rbz

#23
Quote from: taj on March 05, 2008
...
My question therefore is would I find most examles in MASM or in FASM.
...
If I remember correctly those examples are coded in TASM,  but it's easy to recode to FASM or MASM, in fact it's a good exercise to recode those examples.

Quote from: taj on March 05, 2008
Also when you say OOk asm can compress - are we talking compressing 4ks or 256b intros - which I thought nobody compresses (am I wrong)? Can you clarify a bit here please?
T0A is a really good assembler for democoding, too bad there's not much material to learn from  or  manual. And yes, you can compress your win32 bits exe or 16 bits com file, check this out:

.CPU 386
.BITS 16
.ENTRYPOINT

mov al,13h
int 10h
push 0a000h ; Vga memory
pop es

;-------------Write text
mov ah,02h
mov bh,00h
mov dx,0A0Dh
int 10h
mov ah,9
mov dx,text
int 21h

Main:

;-------------Loop (While not key hit)
mov ah,01
int 16h
jz Main


;-------------Return to text mode
mov al,03h
int 10h

;-------------Exit to DOS
mov ax,4c00h
int 21h

text:
db 'A','S','M',' ','R','u','l','e','z',' ',':',')',24h

Compile with:
t0a test1.asm +com

Now if you add some more data, in the end of you prog, for example:
db 'A','S','M',' ','R','u','l','e','z',' ',':',')',24h
Repeat it for 50 times and compile with:
t0a test1.asm +com
Check file size, and now compile it with:
t0a test1.asm +com +compress

As you can see your com file will be compressed, but if I remember correctly this isn't allowed in 256 bytes democoding, you know, the demoscene purists :)
Challenge Trophies Won:

maracuja

#24
Haha , Dos Rulez :D :)

Rasters bars for the next ? :D

It's goodtime !  ;D :P