You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write an Assembly Language program to sum 10 bytes of data, the sum may exceed 8 bits, store the lower byte of the sum at memory location 3000H and upper byte at 3010H.
INPUT: E4, A0, FF, CD, A4, 16, F1, B2, 56, 67
OUTPUT: (3000H): 06
(3010H):6A
Approach : simply add number by number if number exceeds 8 bit then keep track on how many time exceed in different bit .
use JC insrtuction if carry generated ( carry flag = set ) => increment exceeds bit
answer => total exceeds bit + content of accumlator