init
[sped.git] / sped.asm
1
2 %macro write_str 2
3     mov eax, 4
4     mov ebx, 1
5     mov ecx, %1
6     mov edx, %2
7     int 0x80
8 %endmacro
9
10 section .data
11     msg db "SPED - the stupidly pointless editor", 0x0a
12     len equ $ - msg
13
14 section .text
15 global _start
16 _start:
17     write_str msg, len
18
19     mov eax, 1
20     mov ebx, 42
21     int 0x80