Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
section .data
arr db 1,2,3,4,5
sum db 0
section .text
global _start
_start:
mov al, 0
mov ecx, 0
sum_loop:
add al, [arr+ecx]
inc ecx
cmp ecx, 5
jl sum_loop
mov [sum], al
mov eax, 60
xor edi, edi
syscallCoding works best on desktop or with an external keyboard.