Question

Question 1 (20 marks) a) Lists the four (4) fields of an assembly language statement of 80386 microprocessor. (2 marks) b) Wh

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a) The four fields of an assembly language statement of 80386 microprocessor are

(i) Prefix field - These are used to alter the operation of the instruction. This field may be specified before any instruction.

(ii) Opcode field - This field is used to specify the type of operation to be performed by any instruction.

(iii) Operand field - This field is used to specify the data on which the opearation has to be performed. This data may be the content of a register (Register specifier), this data may be a address location from which the data is to be read (Addressing-mode specifier) or the data may be directly specified in the instruction (Immediate operand).

(iv) Displacement field - This field is used to calculate the address of an operand.

(b) The pair of registers used to hold the address of instructions in memory in case of 80386 microprocessor are CS (Code segment) which is a 16-bit register and EIP which is a 32-bit register. The EIP register is similar to IP (Instruction pointer) as in case of 8086 microprocessor.

(c) The given instruction is ADD AX, [BX+DI]

This is an addition instruction. This instruction is used to add the content of the accumulator (AX) and the content of the memory location whose offset can be calculated by adding the contents of base register (BX) and destination index (DI). After addition, the result will be placed in AX.

(d) The name of the valid register pairs used to hold the base and offset address of stack operation in 80386 microprocessor are Stack Segment Register (SS) and Stack Pointer Register (ESP).

Add a comment
Know the answer?
Add Answer to:
Question 1 (20 marks) a) Lists the four (4) fields of an assembly language statement of...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write an 8086-family assembly language procedure (code fragment) that would fill the first part of a...

    Write an 8086-family assembly language procedure (code fragment) that would fill the first part of a complete segment of memory (assume the segment is the data segment) with zeros (up to a certain offset within the segment), and the rest of the segment with ones. The code will fill the locations within the segment, up to the offset given in BX, with all 0s. Once the offset reaches the value in BX (inclusive), fill the rest of the locations form...

  • Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at...

    Section B - ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper 1. (5 marks) Consider the following assembly instruction STMFD r13!, (r5-6} Before executing this instruction, registers hold the following values: Register Value Register r9 Value r4 0x00400040 0x00000000 r5 r10 0x11223344 0x00800080 r6 0x55667788 r11 0x10001000 r7 0x99aabbcc r12 0x20002000 r8 exddeeff00 r13 ex40004000 What memory locations are affected after executing the above instruction? In a table, with a...

  • Write an assembly intel 8088 16 bit code MASM,(The 8088 includes has four 16-bit data registers...

    Write an assembly intel 8088 16 bit code MASM,(The 8088 includes has four 16-bit data registers (AX, BX, CX and DX). BX can also be used as an address register for indirect addressing. The most/least significant byte of each register can also be addressed directly) using push, pop, and stack print the array 8,9,10,1,2,3,4,5,6,7 please provide the full assembly code.

  • Class: Assembly Language x 86 Processors I need help reviewing the following topics: 1.) Define a...

    Class: Assembly Language x 86 Processors I need help reviewing the following topics: 1.) Define a bit, byte, and a nibble. 2.) Define a program, a register, Cache Memory. 3.) What is the meaning of backward compatibility? 4.) List & define x89 processor Modes 5.) What is the processor's operation (Instruction Execution) Cycle ( I am most confused on this topic) 6.) List the processor's Basic registers.

  • Suppose a computer has 20-bit instructions. The instruction set consists of 32 different operations. All instructions have an opcode and two address fields (allowing for two addresses). The frst...

    Suppose a computer has 20-bit instructions. The instruction set consists of 32 different operations. All instructions have an opcode and two address fields (allowing for two addresses). The frst of these addresses must be a register, and the second must be memory. Expanding opcodes are not used. The machine has 16 registers. What is the maximum allowable size for memory? o 2 K byte O 14K byte O 11 K byte Next » ous Suppose a computer has 20-bit instructions....

  • 1.Write the "destination" register in the instruction 671A in a string of 4 bits. 2.The instruction...

    1.Write the "destination" register in the instruction 671A in a string of 4 bits. 2.The instruction 9158 uses two registers as operands, and a third register as a destination for the result. Which registers are used for the operands?   9 and 1   1 and 5   5 and 8   9 and 8 3. Translate the following instruction into English: 54F2 Add the bit patterns in registers F and 2 together as if they were presented in two's complement and leave the...

  • pls both ans Question 20 5 pts Suppose a computer has 32-bit instructions. The instruction set...

    pls both ans Question 20 5 pts Suppose a computer has 32-bit instructions. The instruction set consists of 64 different operations. All instructions have an opcode and two address fields (allowing for two addresses). The first of these addresses must be a register direct address, and the second must be a memory address. Expanding opcodes are not used. The machine has 16 registers. How many bits can be used for the memory address? Question 21 5 pts Suppose we have...

  • ECE3166 ADVANCED MICROPROCESSORS JUNE 2020 Question 2 (a) State the addressing mode and physical address of...

    ECE3166 ADVANCED MICROPROCESSORS JUNE 2020 Question 2 (a) State the addressing mode and physical address of the source operand for the x86 instructions below. Then, state the results and affected registers after execution of the instructions. The initial register / memory contents are given in Table Q2. MOV ECX ES [BX][SI] - 7 [4 marks] MUL BYTE PTR[202H] [5 marks] Table Q2 Register Register Content (Hex) CS 3000 DS 3001 ES 3002 SS 3003 AX BX SI DI Content (Hex)...

  • Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the...

    Question 2 ARM Assembly Language (25 marks) An ARM instruction set summary is provided at the end of this paper. (5 marks) Explain the difference between eor and eors instruction. Use an example to show why both forms are useful. а. b. (5 marks) Explain using an example what the "Idr r3, [r7,#4]" instruction does. c. (10 marks) The following is the assembly language generated by a C compile type mystery, %function mystery: args 0, pretend = 0, frame =...

  • Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF...

    Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF = 1.    Give the new contents of AL after each of the following instructions is executed.    Assume the above initial conditions for each part of this question. a. SHL AL,1 b. SHR AL,1 c. ROL AL,2 d. ROR AL,3 e. SAR AL,2 f. RCL AL,1 g. RCR AL,3 B. Suppose EAX contain ABCDH.    Show the contents of BX and CX after...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT