We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaaa2f1 commit 7a94b8eCopy full SHA for 7a94b8e
code/lesson8/helloworld-args.asm
@@ -7,18 +7,18 @@
7
8
SECTION .text
9
global _start
10
-
11
-_start:
+
+_start:
12
13
pop ecx ; first value on the stack is the number of arguments
14
15
nextArg:
16
cmp ecx, 0H ; check to see if we have any arguments left
17
jz noMoreArgs ; if zero flag is set jump to noMoreArgs label (by jumping over the end of the loop)
18
pop eax ; pop the next argument off the stack
19
call sprintLF ; call our print with linefeed function
20
- dec ecx ; decrease edi (number of arguments left) by 1
+ dec ecx ; decrease edi (number of arguments left) by 1
21
jmp nextArg ; jump to nextArg label
22
23
-noMoreArgs:
+noMoreArgs:
24
call quit
0 commit comments