...
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:
.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',' ',':',')',24hCompile with:
t0a test1.asm +comNow if you add some more data, in the end of you prog, for example:
db 'A','S','M',' ','R','u','l','e','z',' ',':',')',24hRepeat it for 50 times and compile with:
t0a test1.asm +comCheck file size, and now compile it with:
t0a test1.asm +com +compressAs 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
