Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mysql Examples Explanations Explain Examples

Authors: Harry Baker ,Ray Yao

1st Edition

B0CQK9RN2J, 979-8872176237

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago