Advertising
- Someone
- Tuesday, February 2nd, 2010 at 3:50:44pm MST
- ; tiny.asm
- BITS 32
- GLOBAL _start
- SECTION .text
- _start:
- mov ecx,0
- line:
- mov ebx,0
- pixel:
- mov eax,ebx
- sub eax,320
- imul eax,eax
- mov edx,ecx
- sub edx,240
- imul edx,edx
- add edx,eax
- mov eax,0x19
- int 0x80
- inc ebx
- cmp ebx,640
- jnz pixel
- inc ecx
- cmp ecx,480
- jnz line
- mov edx,len
- mov ecx,heya
- mov ebx,1
- mov eax,4
- int 0x80
- mov eax,53281
- mov ebx,0xBADF00D
- mov [eax],ebx
- mov eax, 1
- mov ebx, 42
- int 0x80
- section .data
- heya db 'All Done!',0xa,0
- len equ $ - heya
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.