27 lines
282 B
NASM
27 lines
282 B
NASM
|
|
; %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
|