global _start ;segment readable executable section ".text" koniec: mov eax, 4 mov ebx, 1 mov ecx, koncowy mov edx, koncowy_dl int 80h call pentla mov eax, 1 xor ebx, ebx int 80h _start: mov eax, 4 mov ebx, 1 mov ecx, startowy mov edx, startowy_dl call pentla int 80h jmp koniec pentla: inc ecx cmp ecx, edx jb pentla ret ;segment writable executable section ".data" startowy db "Program w toku!", 10, 0 startowy_dl equ $-startowy koncowy db "Program zakonczony!", 10 koncowy_dl equ $-koncowy pentlak db "Jestem w pentli!", 10 pentlak_dl equ $-pentlak section "Frubi" struc Punkt x resw 0 y resw 0 z resw 0 endstruc