Question: USING MASM IN VISUAL STUDIO AND IRVINE LIBRARY 1. Write an assembly program that sums two long integers and displays the result on screen. Numbers

USING MASM IN VISUAL STUDIO AND IRVINE LIBRARY 1. Write an assemblyUSING MASM IN VISUAL STUDIO AND IRVINE LIBRARY

1. Write an assembly program that sums two long integers and displays the result on screen. Numbers should be stored as strings. num1 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. num1 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: num1 BYTE 04,02,03,04,05 num2 BYTE 02,03,04,05,06 The output should be: The Sum 0605080001 ESI EDI EDX ECX pointer to the first number pointer to the second number pointer to the sum number of bytes to add

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!