DHC Demogroup
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[ASM] Simple effect.

Go down

[ASM] Simple effect. Empty [ASM] Simple effect.

Post  Admin Wed Nov 03, 2010 5:45 pm

Yep. Here is one of the first ASM effects I ever coded. Might not bee too awesome, but it is at least a small effect useful in demo-coding for some!

Code:

; Colors by Daemon.
; ========================
org 0x100      ; Start      
mov ax,13h       ; VGA
int 10h         ; Interrupt
les bp,[bx]      ; Let's get started!!   
loop1:         ; Begin Loop
   add al,22   ; Add 22 to AL
   inc cx      ; Increase CX
   stosb      ; Transfer 1 Byte
   jl loop1   ; Jump if Less to Loop
   inc al      ; Increase AL
   jmp loop1   ; Jump Back 2 Loop
; =========================


Happy coding, everyone!

- Daemon[DHC].

Admin
Admin

Posts : 14
Join date : 2010-11-03

http://dhcdemo.clanteam.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum