Question

Suppose Pep/9 contains the following four hexadecimal values: A: 18BA X: ED20 Mem[001F]: FD03 Mem[0021]: 1A3C...

Suppose Pep/9 contains the following four hexadecimal values: A: 18BA X: ED20 Mem[001F]: FD03 Mem[0021]: 1A3C If these statements execute continuously, What are the four hexadecimal values after each statement executes ?

(a) C90021

(b) F1001F

(c) 61001F

(d) 990021

Homework Answers

Answer #1

Greetings!!

Given machine code represents the following instructions:

(a) C90021 - LDWX 0X0021,D [C9 represent LDWraaa where r=1 represent register X and aaa = 001 represent direct addressing mode. Similarly for all other instructions. Please use manual for getting the opcodes and the corresponding instructions]

(b) F1001F - STBA 0X001F,D

(c) 61001F - ADDA 0X001F,D

(d) 990021 - ORX 0X0021,D

What the instructions do:

LDWX 0X0021,D ;LOAD 0X1A3C WHICH IS STORED AT MEMORY 0Z0021 IS LOADED INTO REGISTER X

STBA 0X001F,D ;STORE THE LOWER BYTE XBA FROM REGISTER A TO THE MEMORY ADDRESS 0X001F

ADDA 0X001F,D ;ADD ACCUMULATOR CONTENT 0X18BA AND MEMORY CONTENT 0XBA03 ie D2BD IN A

ORX 0X0021,D ;OR WITH 0X1A3C AND 0X1A3C ie 0X1A3C IN REGISTER X

After the execution:

A:0XDABD

X:0X1A3C

MEM[001F]:0XBA03

MEM[0021]:0X1A3C

Hope this helps

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Example the Pep/9 system contains the following four hexadecimal values register A: 25B6 register X: AE20...
Example the Pep/9 system contains the following four hexadecimal values register A: 25B6 register X: AE20 Mem[091D]: 0FF0 Mem[0A71]: 301D If these are the values before each of the following instructions executes, indicate which of these values is changed when each statement is executed, and show the new value. If a register or a memory location shown above is unchanged by the instruction, don't show its contents; only show the item that changed and what the new 16-bit value of...
1. Suppose that x, y, z, and w are int variables. What is stored in x,...
1. Suppose that x, y, z, and w are int variables. What is stored in x, y, z, and w after the following statements execute? (3, 6) x = 9; y = x - 4; z = (y + 7) % 6; w = (x * z) / y - 3; z = w + (x - y + 2) % x)
9)provide the binary and hexadecimal representations for the integer -37 in the following forms. a)Sign and...
9)provide the binary and hexadecimal representations for the integer -37 in the following forms. a)Sign and Magnitude as an 8 bit value b)8 bit 1’s complement as an 8 bit value c)2’s complement as an 8 bit value d)2’s complement as a 12 bit value
C++ What is the value of average after the following code executes? double average; average =...
C++ What is the value of average after the following code executes? double average; average = 4.0 + 3.0 * 2.0 + 1.0; Consider the following function: int compute(int n) { int x = 1; for (int i = 1; i <= n; i++) { x *= i; } return x; } What is the returned value for the following function call? int value = compute(4); What is the value of number after the following statements execute? int number; number...
The table below shows values for four differentiable functions. Suppose we know the following things: h'(x)...
The table below shows values for four differentiable functions. Suppose we know the following things: h'(x) = g(x) g'(x) = f(x) f'(x) = b(x) b'(x) = h(x) 0 1 2 3 4 b(x) 2 4 3 1 0 f(x) 1 4 2 3 0 h(x) 2 0 3 1 4 g(x) 2 0 4 3 1 a) What is intergal from a = 2 and b = 4  f(x) dx? b) What is intergal from a = 0 and b =...
(a) Suppose you are given the following (x, y) data pairs. x 1 2 6 y...
(a) Suppose you are given the following (x, y) data pairs. x 1 2 6 y 2 1 9 Find the least-squares equation for these data (rounded to three digits after the decimal). ? = ?+ ? x (b) Now suppose you are given these (x, y) data pairs. x 2 1 9 y 1 2 6 Find the least-squares equation for these data (rounded to three digits after the decimal). ? = ?+?  x (c) In the data for parts...
In Java 1. What will be the value of x after the following section of code...
In Java 1. What will be the value of x after the following section of code executes: int x = 3; if (x > 3)     x = x – 2; else     x = x + 2; A. 1 B.3    C.5              D.7 2. What will be the value of y after the following section of code executes: int y = 5, z = 3; if (y > 4){      z = 2;      y = y – 1;...
Given f′(x) = (9-x)2/ (x2+9)2 and f′′(x) = (2x(x2-27)/ (x2+ 9)3 , answer the following ques-...
Given f′(x) = (9-x)2/ (x2+9)2 and f′′(x) = (2x(x2-27)/ (x2+ 9)3 , answer the following ques- tions: (a) Find the interval where f(x) is increasing and decreasing. (b) At what values of x do the local maximum and local minimum occur? (c) Find the intervals of concavity. (d) At what values of x do the inflection points occur?
A box contains four slips of paper marked 9, 10, 11, and 12. Two slips are...
A box contains four slips of paper marked 9, 10, 11, and 12. Two slips are selected without replacement. List the possible values for each of the following random variables shown below: (a) x = sum of the two numbers 20, 21, 23, 24, 26 20, 22, 24, 26, 28    9, 10, 11, 12, 13 19, 20, 21, 22, 23 19, 21, 23, 25, 27 (b) y = difference between the first and second numbers -3, -1, 1, 3 -5,...
Consider a random experiment of throwing FOUR perfectly balanced and identical coins. Suppose that for each...
Consider a random experiment of throwing FOUR perfectly balanced and identical coins. Suppose that for each toss that comes up heads we win $4, but for each toss that comes up tails we lose $3. Clearly, a quantity of interest in this situation is our total wining. Let X denote this quantity. Answer the following questions. (a) What are the values that the random variable X takes? (b) Find P(X = 16) =? & P(X = 2) =? & P(X...