Page 1 of 1

QUESTION 2 An 8086/8088 assembly program is given below. Understand this program and answer questions on the next page.

Posted: Thu May 26, 2022 10:28 am
by answerhappygod
Question 2 An 8086 8088 Assembly Program Is Given Below Understand This Program And Answer Questions On The Next Page 1
Question 2 An 8086 8088 Assembly Program Is Given Below Understand This Program And Answer Questions On The Next Page 1 (96.47 KiB) Viewed 30 times
QUESTION 2 An 8086/8088 assembly program is given below. Understand this program and answer questions on the next page. DATA SEGMENT 16 DUP (?) DB ? EQU 2356H ENDS SEGMENT TOTAL: MOV AX, SEG SUM MOV DS, AX MOV AL, 0 MOV BL,OEC MOV SI, 0 ADDUP: ADD AL, [SI] INC SI INC BL JNZ ADDUP MOV [SI], AL ENDS END TOTAL a) One instruction contains a grammar error. Identify that instruction and explain the problem. b) If we want the ADDUP loop to run 6 times, what modification should be made? c) Identify the label(s) and variable(s). d) If it is required to add 10 numbers 09H,08H,...,02H,01H,00H, how should this program be modified? Note that you don't have to write the whole program. Only describe how to modify some of the original instructions. POINTS DB SUM ABC CODE