Updated lib label scopes and continued to lesson 18
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
|
||||
; %include '../lib/fl.asm' ; local
|
||||
%include 'lib/fl.asm' ; build.sh
|
||||
|
||||
SECTION .text
|
||||
global _start
|
||||
|
||||
_start:
|
||||
pop ecx
|
||||
pop edx
|
||||
sub ecx, 1
|
||||
mov edx, 0
|
||||
|
||||
nextArg:
|
||||
cmp ecx, 0h
|
||||
jz noMoreArgs
|
||||
pop eax
|
||||
call atoi
|
||||
add edx, eax
|
||||
dec ecx
|
||||
jmp nextArg
|
||||
|
||||
noMoreArgs:
|
||||
mov eax, edx
|
||||
call iprintLF
|
||||
call quit
|
||||
Binary file not shown.
Reference in New Issue
Block a user