@@ -1,3 +1,6 @@
+section .bss
+ st resb 6 ; 6 byte for death
+
section .data
n dw 0;
@@ -6,24 +9,19 @@ section .text
global _start
_start:
- inc dword [n]
+ mov [st+5], byte 0xa
+ mov [st+4], byte 0x68
+ mov [st+3], byte 0x74
+ mov [st+2], byte 0x61
+ mov [st+1], byte 0x65
+ mov [st+0], byte 0x44
- mov ecx, [n]
- add ecx, '0'
- mov [n], ecx
mov eax, 4
mov ebx, 1
- mov ecx, n
- mov edx, 1
+ mov ecx, st
+ mov edx, 6
int 0x80