This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .data | |
array db 10, 20, 30, 40, 50 ; Declare an array with 5 elements | |
len equ $-array ; Compute the length of the array | |
avg db 0 ; Declare a byte to store the average | |
section .text | |
global _start | |
_start: | |
mov ecx, len ; Set up loop counter with number of elements |