Explorar el Código

added spaghetti for spaghetti code

Phil hace 5 años
padre
commit
36a1c4d276
Se han modificado 1 ficheros con 32 adiciones y 0 borrados
  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