Question: write a program in assembly X86 using the C++ instruction Design the parity.asm program, and use assembly language to realize the function of the following
Design the "parity.asm" program, and use assembly language to realize the function of the following C++ instructions. unsigned short num 1=325; unsigned short even =0, odd =0; if(num 1%2=0){ event+; \} else \{ odd + ; \} Assemble the "parity.asm" file and link the "parity.o" file to get the " parity" executable file. Run the "parity" file with the DDD debugger to display the memory of num1, as well as the simulation results of even and odd. Insert source code (parity.asm) and simulation results (GDB window) of the memory (num1, even, and odd) in the document. Write an analysis to verify simulation results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
