Question: 1 Write an assembly language program that declares three integer variables called number1 initialized to 9, number2 initialized to 15 and number3 initialized to 23.
1 Write an assembly language program that declares three integer variables called number1 initialized to 9, number2 initialized to 15 and number3 initialized to 23. The assembly language code must add the three numbers and move the result into ebx. The program also must find the difference between number2 and number3 (i.e. 15 23). The difference must be placed in edx Write the flag values z and c for each of these instructions after each line is executed. Write the destination value after each instruction is executed. If a destination value is a negative number, write its representation in register. 2- 3- 4 Write an assembly language program that moves the number 2 to BL and 0 to AL. Add BL to AL ECX many times having AL as the destination. Move 10 into ECX before the loop. What wll the value of AL when the loop is done? What does this code do in general if we change the value of ECX
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
