Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Someone
Tuesday, February 2nd, 2010 at 10:50:44pm UTC 

  1.   ; tiny.asm
  2.   BITS 32
  3.   GLOBAL _start
  4.   SECTION .text
  5.   _start:
  6.  
  7.         mov ecx,0
  8. line:
  9.         mov ebx,0
  10. pixel: 
  11.        
  12.         mov eax,ebx
  13.         sub eax,320     
  14.         imul eax,eax
  15.        
  16.         mov edx,ecx
  17.         sub edx,240
  18.         imul edx,edx
  19.         add edx,eax
  20.         mov eax,0x19
  21.         int 0x80
  22.         inc ebx
  23.         cmp ebx,640
  24.         jnz pixel
  25.         inc ecx
  26.         cmp ecx,480
  27.         jnz line
  28.        
  29.         mov edx,len
  30.         mov ecx,heya
  31.         mov ebx,1
  32.         mov eax,4
  33.         int 0x80
  34.        
  35.         mov eax,53281
  36.         mov ebx,0xBADF00D
  37.         mov [eax],ebx
  38.  
  39.         mov     eax, 1
  40.         mov     ebx, 42 
  41.         int     0x80
  42.  
  43. section .data
  44.        
  45. heya db 'All Done!',0xa,0
  46. len equ $ - heya

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right worth-right