Question: Within the . data segment, declare two signed 3 2 - bit integers ( named small and large ) and initialize one with the smallest
Within the data segment, declare two signed bit integers named small and large and initialize one with
the smallest possible value and the other with the largest possible value. Use a hexadecimal number using the
h radix when initializing each, keeping in mind that hexadecimal numbers with an or above in the most
significant digit are negative.
Within the code segment, move the small value into the eax register and add one to the register.
Run and examine both the eax register and the EFLAGS register. Using comments within the code segment,
explain the value in eax and explain the value in EFLAGS regarding the bits CF PF ZF SF and OF
Add code to move the large value into eax and add one. Repeat your explanation for both eax and the EFLAGS
bit values.
Modify the data segment and add the following:
Declare a nullterminated string IN TWO DIFFERENT WAYS that contains the word Assemblycase matters
here
Remember that a string is just a sequence of bytes that are stored in consecutive memory addresses
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
