NOTE I need this in assimbly language please Write a program

NOTE: I need this in assimbly language please

Write a program to compute the summation of an array of N 8 - bit numbers and store the result into memory. N is no larger than 255.

Solution

DATA SEGMENT A DB 10,12,14,15,18,21,31,02,04,16,11,13,09,05,16 DATA ENDS CODE SEGMENT ASSUME DS:DATA,CS:CODE START: MOV AX,DATA MOV DS,AX MOV CL,16 LEA BX,A MOV AH,00 MOV AL,00 L1: ADD AL,BYTE PTR[BX] INC BX DEC CL CMP CL,00 JNZ L1 MOV AH,4CH INT 21 CODE ENDS END START
NOTE: I need this in assimbly language please Write a program to compute the summation of an array of N 8 - bit numbers and store the result into memory. N is n

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site