All pastes #1776349 Raw Edit

Someone

public unlisted text v1 · immutable
#1776349 ·published 2010-02-02 22:50 UTC
rendered paste body
  ; 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