<<< | Index | add_16_bytes.ASM >>> |
Download sample program add_16_bytes.asm ( download ).
Current version of the program is summing an array of 16 bytes. The steps are:
Load starting address of the array into ESI.
Loop for each element in the array.
Get the value using the offset in ESI via indirect memory addressing.
Add the value to the running total in register AL.
Update the offset in ESI to point to the next element of the array.
Update loop counter.
If counter is not zero, repeat from step 4.
<<< | Index | add_16_bytes.ASM >>> |