Question: Code in assembler language. Explain please This assignment is in three parts Part A Write a program that does the following e Declare a fullword

 Code in assembler language. Explain please This assignment is in three
Code in assembler language. Explain please

This assignment is in three parts Part A Write a program that does the following e Declare a fullword LEFT with the value 127 . Declare a fullword RIGHT with the value 59 e Subtract RIGHT from LEFT. To do this, simply load these numbers into registers and use an SR registers) and use an AR. SUM . Add RIGHT to LEFT. To do this, load the two numbers into registers (a different pair of Now use an XDUMP to dump out the registers and look at the register values to see your Part B Modify the program from Part A as follows: . Declare two consecutive fullwords of storage called SUM and DIFF . Store (ST) the difference (LEFT minus RIGHT) into DIFF e Store (ST) the sum (LEFT plus RIGHT) into SUM XDUMP that area of storage (containing SUM and DIFF) using XDUMP. You can use XDUMP to print the values in storage by using the label followed by the length of the field like this XDUMP SUM, 8 or maybe as two lines XDUMP SUM,4 XDUMP DIFF, 4 e Look at the XDUMP output and verify your arithmetic is correct. Part C Now rewrite your program using explicit addressing. This means on the L and ST, take out your labels and fill in the addresses of the various fullwords. You can get these addresses from the program listing of part B (in a column at the left)

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!