Author Topic: Where to get some good ASM Tutorials  (Read 19996 times)

0 Members and 1 Guest are viewing this topic.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Where to get some good ASM Tutorials
« Reply #20 on: April 01, 2007 »
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:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: Where to get some good ASM Tutorials
« Reply #21 on: March 05, 2008 »
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:

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
coding: jwasm,masm
hobby: www.scd2003.de

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Where to get some good ASM Tutorials
« Reply #23 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.

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:

Code: [Select]
.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:
Code: [Select]
t0a test1.asm +com
Now if you add some more data, in the end of you prog, for example:
Code: [Select]
db 'A','S','M',' ','R','u','l','e','z',' ',':',')',24hRepeat it for 50 times and compile with:
Code: [Select]
t0a test1.asm +comCheck file size, and now compile it with:
Code: [Select]
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 :)
« Last Edit: March 05, 2008 by rbraz »
Challenge Trophies Won:

Offline maracuja

  • C= 64
  • **
  • Posts: 31
  • Karma: 4
    • View Profile
Re: Where to get some good ASM Tutorials
« Reply #24 on: May 11, 2011 »
Haha , Dos Rulez :D :)

Rasters bars for the next ? :D

It's goodtime !  ;D :P
« Last Edit: May 11, 2011 by maracuja »