Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the program List File 1 given below. Do the following a) b) After each instruction write its addressing mode and effective address if

image text in transcribed
1. Consider the program List File 1 given below. Do the following a) b) After each instruction write its addressing mode and effective address if it has one. Draw the corresponding flow chart. The idiv instruction divides the value in D by that in X. The integer quotient (DX) and remainder (D%X) put in the D and X registers, respectively The Z flag becomes high only if the quotient equals zero. Complete the following execution history. Stop once the 'bra Done' instruction is reached. c) PC x [ Res Z-flag Next Inst. 2. In your own words explain for our processor how to determine the effective address of an instruction that pushes a byte into the stack. How is this different from that of a pull instruction. 3. Use table 2 as well as the Instruction Set Summary, given in the instruction set Reference Guide to encode the following instructions. For each first give the post byte in binary indicating each respective field, then give the opcode and post byte in hexadecimal. a) 1daa -3, x b) stab 5, Y c) suba 2, SP Consider the program S a) 4. tackEx2.asm that makes use of the stack. Hand assemble to produce a list file for given program For each instruction write it's effective address for the first time it executes. Perform an execution history, listing the PC, SP, A, and B registers as well as the contents of addresses SOFFE and SOFFF, and the next instruction. Stop at the 'bra Done' instruction. b) c) PC SP A B ISOFE ISOFFF) Next Inst. . Consider the program Prog3.asm that uses a subroutine. Do the following: Hand assemble to produce a list file for the given program. For each instruction write it's effective address for the first time it executes. But for the jsr instruction write the address that is jumped to. Before the first instruction in the subroutine AbsVal executes determine what value is in the SP register as well as the contents of addresses SOFFE and SOFFF a) b)

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions