School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
@@ -0,0 +1,20 @@
bits 32
global sum
segment code use32 class=code
sum:
mov EAX,[ESP+4]
mov EBX,0
mov ECX,10
loop1:
cmp eax,0
je end
mov EDX,0
div ECX
add EBX,EDX
jmp loop1
end:
mov EDX,[ESP+8]
mov [EDX],EBX
ret