Question: ELEN 306 Microprocessor Laboratory Lab 6 Exercises In Programming Instructions Spring 2017 I. Write a program using the Loop instructions to sum allthe odd numbers
ELEN 306 Microprocessor Laboratory Lab 6 Exercises In Programming Instructions Spring 2017 I. Write a program using the Loop instructions to sum allthe odd numbers from 3 to 17. (Do the math to check your results). ll. White a program using the DAA instruction to add the following two BcD numbers: 3689 2867 then demonstrate on paper how the computer obtained the result Ill. Write an assembly language program with the following lines placed in the data segment: (You can use any program you might have already written and simply insert these lines.) ORG 900H FILE6 DB 8.10, 10H,0AH,16, 16H,32.32H.100.?.4 DUP(6) DW 1234, ABCDH DD 123456H Run the program. Examine the how the computer stored the data starting at address 900H. In the Results Section, you are to analyzelexplain what was observed. IV. Write (or find an assembly language program with all the "over head" to include setting up the stack segment (SS) and the data segment (SS) registers. Then include the below of instructions. Unassemble the program and note the code for the JNZ and the JMP instructions. Show the calculations for the displacement part of the instructions. HERE MOV CX,9 MOV AL,0 MOV BL,2 ADD AL,BL INC BL DEC CX JNZ HERE JMP THERE MOV AL,DL MOVAH, DH THERE INT 20 v. Results: Provide an analysis of the calculated results of each of the above programs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
