Question: Introduction to Assembly Language Programming Please help me with these questions. 3. Show the result of the following operations. Translate hexadecimal numbers into binaries and
Introduction to Assembly Language Programming
Please help me with these questions.

3. Show the result of the following operations. Translate hexadecimal numbers into binaries and do the binary level addition and subtraction. Assume that all numbers are 32-bit 2's complement signed numbers a. Ox80123F2F b. 0xC00100FF - 0x40032000 Consider the computations of problem 3.a and 3.b above. For each computation, is overflow occurred? a. Answer based on the overflow rule that is explored in the lecture. 4. b. Now, let's verify your answer with ARM Keil debugger. Create an "overflow.s" like below: 1) Define three word-variables inputl, input2 and output in DATA area Use myData as DATA area's name 2) Assign values used in 3.a and 3.b to variables inputl and input2. Assign 0 3) Define a function 4) In_ main function, load values from inputl and input2 that are defined in 5) to output main in CODE area. Use myOverflow as CODE rea s name 1) to registers rl and r2 Check add and sub instructions in ARM Keil Assembler User Guide /www.keil com/s man/docs/armasm/armasm dom1361289850039 htm) and find the proper formats of instructions to compute addition and subtraction with condition flags setting. Use the instructions to compute the operations of 3.a and 3.b. Store the computation result to r3 Store the value of r3 to the variable output. 6) Run Debug Session (as directed in the installation guide). Answer if overflow is occurred for each of 3.a and 3.b by explaining how you observed the overflow from the debugger (e.g., which bit of what register you've checked) Check points: We will evaluate your code by checking the following items Usage of CODE and DATA area names as specified in the description Usage of variable and register names as specified in the description -Correct usage of memory operations, load and store (Don't forget to store back the result to the variable output) - Correct usage of add and sub instructions (Beware, you should find the proper type of add and sub instructions to check overflow) Correct code structure/grammar (e.g., indentations) Your code must be at least compilable and executable 3. Show the result of the following operations. Translate hexadecimal numbers into binaries and do the binary level addition and subtraction. Assume that all numbers are 32-bit 2's complement signed numbers a. Ox80123F2F b. 0xC00100FF - 0x40032000 Consider the computations of problem 3.a and 3.b above. For each computation, is overflow occurred? a. Answer based on the overflow rule that is explored in the lecture. 4. b. Now, let's verify your answer with ARM Keil debugger. Create an "overflow.s" like below: 1) Define three word-variables inputl, input2 and output in DATA area Use myData as DATA area's name 2) Assign values used in 3.a and 3.b to variables inputl and input2. Assign 0 3) Define a function 4) In_ main function, load values from inputl and input2 that are defined in 5) to output main in CODE area. Use myOverflow as CODE rea s name 1) to registers rl and r2 Check add and sub instructions in ARM Keil Assembler User Guide /www.keil com/s man/docs/armasm/armasm dom1361289850039 htm) and find the proper formats of instructions to compute addition and subtraction with condition flags setting. Use the instructions to compute the operations of 3.a and 3.b. Store the computation result to r3 Store the value of r3 to the variable output. 6) Run Debug Session (as directed in the installation guide). Answer if overflow is occurred for each of 3.a and 3.b by explaining how you observed the overflow from the debugger (e.g., which bit of what register you've checked) Check points: We will evaluate your code by checking the following items Usage of CODE and DATA area names as specified in the description Usage of variable and register names as specified in the description -Correct usage of memory operations, load and store (Don't forget to store back the result to the variable output) - Correct usage of add and sub instructions (Beware, you should find the proper type of add and sub instructions to check overflow) Correct code structure/grammar (e.g., indentations) Your code must be at least compilable and executable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
