From 9d03e10557ec184ec575ca6f73378eb2fd2eaa3b Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 22 Sep 2015 14:54:57 -0400 Subject: Cleanup data label --- prog1.asm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/prog1.asm b/prog1.asm index bf69e45..ea9f9d0 100644 --- a/prog1.asm +++ b/prog1.asm @@ -1,5 +1,8 @@ global _start +section .data + MAXLOOP db 10 + section .text ; while edx <= ecx @@ -14,7 +17,7 @@ loop: jmp loop exit: - ; exit value is edx, let's put it in ebx + ; exit value is in edx, move it to ebx mov ebx, edx ; clear registers @@ -28,11 +31,6 @@ exit: ret _start: - mov eax, 0 - mov edx, 0 - mov ecx, 255 + mov ecx, [MAXLOOP] jmp loop - ; exit is ebx - ;mov ebx, 0 - -- cgit