Browse Source

added spaghetti for spaghetti code

Phil 5 năm trước cách đây
mục cha
commit
36a1c4d276
1 tập tin đã thay đổi với 32 bổ sung0 xóa
  1. 32 0
      spaghetti.asm

+ 32 - 0
spaghetti.asm

@@ -0,0 +1,32 @@
+section .data
+	n dw 0;
+
+section .text 
+
+	global _start
+	
+_start:
+	inc dword [n]
+	inc dword [n]
+	inc dword [n]
+	inc dword [n]
+	inc dword [n]
+	inc dword [n]
+	inc dword [n]
+	inc dword [n]
+
+
+	mov ecx, [n]
+	add ecx, '0'
+	mov [n], ecx
+	
+	mov eax, 4
+	mov ebx, 1
+	mov ecx, n
+	mov edx, 1
+	int 0x80
+
+
+	mov eax, 1
+	mov ebx, 0
+	int 0x80