Question: Using Visual Studio Lab Work Vrite the following programs in the lab: 1. Write an assembly program that sums two long integers and displays the

Using Visual Studio
Lab Work Vrite the following programs in the lab: 1. Write an assembly program that sums two long integers and displays the result on screen. Numbers should be stored as strings. num! BYTE 42345 num2 BYTE 23456" The output should be: The Sum = 65801 2. Write an assembly program that subtracts two long integers and displays the result on screen. Numbers should be stored as strings. numl BYTE "42345" num2 BYTE "23456" The output should be: The subtraction = 18889 3. Write an assembly procedure that adds two unpacked decimal numbers of arbitrary size (both lengths must be the same). Write a test program that passes several pairs of integers. We suggest that you use the following registers to pass information to the procedure: numl BYTE 04,02,03,04,05 num2 BYTE 02, 03, 04,05,06 The output should be: The Sum = 0605080001 ESI - pointer to the first number EDI - pointer to the second number EDX - pointer to the sum ECX - number of bytes to add
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
