2- A computer with memory size 128K word with 32 bits each. its instruction format has indirect bit I, REG. part to specify one of 16 registers, an opcode part OPCOD, and address part ADR. The number of bits in REG, OPCOD, and ADR respectively are: O A- 4, 16, and 16 O B- 4, 10, and 16 O C- 4, 16, and 17 D- 4, 10, and 17
Q: a- Find the total execution time for the program on 1,2,4, and 8 processors, and show the relative…
A:
Q: I want all staps for Consider a computer which has a memory which is capable of storing 4096 K words…
A: GIVEN:
Q: 2- Draw memory and microprocessor contents before and after execution the following instruction: MOV…
A: Given: We are given a microprocessor instruction below: Goal: We have to find the contents of…
Q: (a) Suppose that a processor executes instructions each of which is 16-bits long. How many different…
A: Given: Each instruction is 16 bits long find how much different instruction repertoires of this…
Q: Mode • Operation code • Register • Register • Memory
A: Step 1 of 2 :) We are given memory size, number of registers and number of addressing modes. Also,…
Q: Suppose gaming consoles PlayStation 5 and Xbox Series X use different implementations of AMD's Zen…
A: As far bartleby guidelines, I answered only sub questions in first "1" in the given question 1.…
Q: Q3/Assume that the microprocessor can directly address 64K with a 16 data pins The memory map for…
A: The question is to choose the correct option for the given question.
Q: A CPU, which addresses the data through its 6 registers in one of 12 different modes, is to be…
A: Introduction :Given , A CPU number of registers = 06modes = 12 has to be support 10 Arithmetic , 15…
Q: 6. Assume that two numbers: dividend and divisor are saved in memory address M1 and M2 respectively.…
A:
Q: Treat the registers R1, ..., R7, the program counter PC, and the condition-codes N, z, P as…
A: Answer: 1).IINSTRUCTION :0001010110000111. Hex number :EB 2F3F 6BEF Hex signed 2 complements: 0000…
Q: There are five registers (A, X, L, PC, and SW) defined in the standard SIC machine, each register…
A: Solution :: Let's see the above questions you have posted above . I am using each blank as a…
Q: Two word wide unsigned integers are stored at the memory addresses OA00 H and 0A02 H respectively,…
A: The Code for given data is as follows: MOV AX, 0; MOV DS, AX ; MOV BX, 0A10H; MOV DX, [0A00H]; ADD…
Q: Q1: Suppose the hypothetical processor has two I/O instructions: (3+3+3) 0011=Load AC from I/O…
A: Answer:
Q: The following diagram shows some registers like processor registers R1 and R2, Program counter PC…
A: Given: The following diagram shows some registers like processor registers R1 and R2, Program…
Q: Register Content Data Memory Content wo Ох1006 Ох1000 O×FEB1 W1 ОХАВУА Ox1002 Ox0193 w2 w3 Ох0015…
A: Zero Flag (Z) : After any arithmetical or logical operation if the result is 0 (00)H, the zero flag…
Q: Q13/Assume that the microprocessor can directly address 64K with a and 8 data pins The memory map…
A: Assume that the microprocessor can directly address 64k with a and 8 data pins the memory map for…
Q: Q13/Assume that the microprocessor can directly address 64K with a and 8 data pins The memory map…
A: check further steps for the answer :
Q: The following diagram shows some registers like processor registers R1 and R2, Program counter PC…
A: a) The different ways in which the operands are specified in an instruction is called the addressing…
Q: Q2. In The following, the instructions are dependent on each other, if A = B8 H. and Cy 1, next to…
A:
Q: (a) An instruction at address 021 in the basic computer has I=0, an operation code of the AND…
A: Answer
Q: g instruction sequence where registers R1,R2 and R3 are general purpose and MEMORY[X] denotes the…
A: The given code is iterating 10 times and incrementing the contents of locations 3000 to 3000+i by…
Q: Part 2: Intro to MIPS 1. a. Provide the type and assembly language instruction for the following…
A: Answer 1.a: First, rearranging the bits in the form of Assembly language instruction, we get, 000000…
Q: 3-Assume a program requires the execution of 50 x 106 FP instructions, 110 x 106 INT instructions,…
A: The answer is..
Q: Q3) If BP=1000, DS=0400, SS=0700, CS=0500 and AL=EDH, for the following instruction: MOV [BP] +…
A: It is defined as a physical location of required data in a memory. The user never directly deals…
Q: (b) Consider a 16-bit processor in which the following appears in main memory, starting at location…
A: Given: Consider a 16-bit processor in which the following appears in main memory, starting at…
Q: Q2. A. Define the content of registers and/or Memory location after executing each instruction in a…
A: 1)Mov Ax, 33 H P. A= DS × 10H + [33H] = 200H × 10H +33H = 2000H +33H P. A…
Q: 2- Given a control memory microinstruction size of 30 bits. Change the instruction shown in Figure…
A: Given that: Control memory size = 30 bits F1 = 3 bits F2 = 3 bits F3 = 4 bits BR = 2 bits CD = 2…
Q: 2-Two word wide unsigned integers are stored at the physical memory addresses 00A00 and 00A02,…
A: Given two unsigned integers stored at the physical memory address 00A00 and 00A02. Need to write…
Q: Memory location2017H through 2020H contain, respectively, OAH, 9BH, C2H, and A8H. What does AX or AL…
A: Assembly language: Assembly language is used to tell directly the computer what to do. The computer…
Q: 16. If the first instruction "LXI H, 1100H" is positioned at address 7000H in memory, at what…
A: Correct answer of above given question is Option(1) 7003H i.e next instruction is located at address…
Q: Assume that the microprocessor can directly address 64K with a and 16 data pins The memory map for…
A: Step 1 The answer is given in the below step
Q: staps Consider a computer which has a memory which is capable of storing 4096 K words and each word…
A: It is defined as the operation field of an instruction specifies the operation to be performed. This…
Q: 3. Assume $s1 = 0xefbcad97, $s2 = 0x6521fedc, calculate and $s0,$s1,$s2 or $s0,$s1,$s2 xor…
A: Here is the answer:-
Q: The following diagram shows some registers like processor registers R1 and R2, Program counter PC…
A: Given: The following diagram shows some registers like processor registers R1 and R2, Program…
Q: a) Generate a full RTN code in Fetch, Decode, Execute and Write Back step for: MUL 602, #5, #2…
A: The answer is
Q: Q4) A- Write an assembly program to move (N) memory contents located at starting address with offset…
A: Answer is given below .
Q: Question 2: Problem Solving Suppose that you have a computer with a memory unit of 24 bits per word.…
A: Answer :
Q: 4. A computer has a 5-stage instruction pipeline of one cycle each. The 5 stages are: Instruction…
A: ANSWER:-
Q: H.W.: Consider a hypothetical machine with two steps instruction cycle: fetch cycle and execute…
A: a) The first two bits of an instruction provide the opcode, while the following six bits specify the…
Q: Problem 6 Assume that the instruction MOV EAX,[EBX+4*ECX] is to be encoded by a Pentium processor…
A: Given:
Q: isters. The computer supports instructions, where each instruction consists of following fields: •…
A: We are given memory size, number of registers, and number of addressing modes. Also, the field in…
Q: Consider the hypothetical processor which has 256 words memory. A 19 bits instruction is placed in 1…
A: The Answer is in below step
Q: 1.14 Assume a program requires the execution of 50 x 106 FP instruction 110 x 106 INT instructions,…
A: The answer is
Q: The following diagram shows some registers like processor registers R1 and R2, Program counter PC…
A: An instruction code is a sequence of bits that tells the computer how to do something.• An…
Q: 2- Draw memory and microprocessor contents before and after execution the following instruction: MOV…
A: Given: We are given a microprocessor instruction that is executing. Goal: We have to find out…
Q: 2) COMP1, COMP2, COMP3 and COMP4 are different types of general register computers using 3, 2, 1 and…
A: a) Write a program to evaluate these equations (all 3 of them sequentially together) for…
Q: A particular (fictional) CPU has the following internal units and timings (WR and RR are write/read…
A: Answer is given below-
Q: For the following machine specs: a. The 2-bus processor supports 10 instructions only: add, sub, Id,…
A: It is defined as the commands or programs written in machine code of a machine (computer) that it…
Q: An instruction in address (021)16 in the simple machine has a mode bit I = 0, an operation code of…
A: Actually, given information An instruction in address (021)16 in the simple machine has a mode bit…
Q: Consider the instruction fields below: Op= 0, rs= 17 , rt= 3, rd= 4, shamt= 0, funct= 39 Provide the…
A: Answer:)
Step by step
Solved in 2 steps with 2 images
- (Practice) a. Using Figure 2.14 and assuming the variable name rate is assigned to the byte at memory address 159, determine the addresses corresponding to each variable declared in the following statements. Also, fill in the correct number of bytes with the initialization data included in the declaration statements. (Use letters for the characters, not the computer codes that would actually be stored.) floatrate; charch1=M,ch2=E,ch3=L,ch4=T; doubletaxes; intnum,count=0; b. Repeat Exercise 9a, but substitute the actual byte patterns that a computer using the ASCII code would use to store characters in the variables ch1, ch2, ch3, and ch4. (Hint: Use Appendix B.)A set of eight data bytes is stored in memory locations starting from XX70H. Write a program to add two bytes at a time and store the sum in the same memory locations, low order sum replacing the first byte and a carry replacing the second byte. If any pair does not generate a carry, the memory location of the second byte should be cleared. Data(H) F9, 38, A7, 56,98,52, 8F, F2Q1: Suppose the hypothetical processor has two I/O instructions: (3+3+3)0011=Load AC from I/O0111=Store AC to I/OIn this case, the 12-bit address identifies a particular external device. Show the program execution using figure for the following program:a) Load AC from device 6b) Add contents of memory location 880c) Store AC to device 7 (Note: Question is to be solved similar to the pictures attached with minimum explaination of a line or two with the steps and SHOULD include the memory location 880 as stated in the question)
- Assume that CS=3500, DS=4500, SS=5500, SI=2200, DI=4200, BX=7300, BP=8000, AX=3420 (all values are in hex). Calculate the physical address of the memory and show the contents in each of the following: a) MOV [BP]+10,AX b) MOV [SI],AX c) MOV [BX][DI]+20,AXQUESTION ONE (1) 1. The hypothetical machine has two I/O instructions: 0011 = Load AC from I/O 0111 = Store AC to I/O In these cases, the 12-bit address identifies a particular I/O device. List the steps for every execution for the following program and illustrate using table that explain the process below : a. Load AC from device 5. b. Add contents of memory location 940. c. Store AC to device 6. d. Assume that the next value retrieved from device 5 is 3 and that location 940 contains a value of 2.3 The 8-bit registers R1, R2, R3, and R4 initially have the following values:R1 - 1111 0010, R2- 1 1 1 1 1 1 1 1 , R3- 1011 1001 , R4 1 1 101010Determine the 8-bit values in each register after the execution of the following sequence ofmicrooperations.R1 <-R1 + R2R3<- R3 ^ R4, R2 <- R2 + 1R1 <- R1 – R3
- 5. When two words are multiplied (one in BX), the most significant word of result will be in _______, and the least significant word will be in __________ (1 Mark) a. BX, CX b. CX, BX c. AX, DX d. DX, AX 6. Compare and contrast SUB and CMP instructions? (1 Mark) 7. Write the contents of AH and BL after execution of the program. (1 Mark) MOV AH,40h SAL AH, 01 MOV BL,80h SAR BL,01 HLT AH= ____________ BL= ____________ 8. Write the contents of AL and BL register after execution of the program (1 Mark) MOV AL, FFh MOV BL, AL CMP AL, F0H SUB BL,10H HLT AL= ____________ BL= ____________ 9. Identify and correct the mistakes. (1 Mark) MOV AX, 32H ____________________ MOV BL, 2424H ____________________ DAS AX, BL ____________________ HLT ____________________ 10. Write an ALP to rotate right the contents of AL register 4 times including carry and save the result in DH register (1 Mark)A computer is using a fully associative cache and has 216 bytes of main memory (byte addressable) and a cache of 64 blocks, where each block contains 32 bytes. a. How many blocks of main memory are there? b. What will be the sizes of the tag, index, and byte offset fields? c. To which cache set will the memory address 0xF8C9(hexadecimal) map?D] An integer arithmetic unit that can perform addition and multiplication of 16-bit unsigned numbers is to be used to multiply two 32-bit unsigned numbers. All operands, intermediate results, and final results are held in 16-bit registers labeled R0 through R15. The hardware multiplier multiplies the contents of Ri (multiplicand) by Rj (multiplier) and stores the double-length 32-bit product in registers Rj and Rj+1, with the low-order half in Rj. When j = i − 1, the product overwrites both operands. The hardware adder adds the contents of Ri and Rj and puts the result in Rj. The input carry to an Add operation is 0, and the input carry to an Add-with-carry operation is the contents of a carry flag C. The output carry from the adder is always stored in C. Specify the steps of a procedure for multiplying two 32-bit operands in registers R1, R0, and R3, R2, high-order halves first, leaving the 64-bit product in registers R15, R14, R13, and R12. Any of the registers R11 through R4 may…
- Q:Answer the following sentence with (True) or (False) and correct the false answer: 1. You can input data of size 16-bit through the fixed port. 2. In the maximum mode, the status signals S₁, S₂ and S3 are controlled by the bus controller. 3. HLDA is an output signal. 4. In 8086, when executing the instruction MOV AL, [SI+100D H] where SI-100AH, Ao=0 and BHE=1 5. When S, is 0, the TF is disabled.Convert given code to LEGv8 code:int f, g, y //global 64-bit variablesint sum (int a, int b) { // at memory address X0+1000.return (a +b)} int main (void) // at memory address X0 + 800{f=2;g=3;y= sum (f, g);return y;}Convert this code, making valid assumptions about registers and register use. Notethat brackets and global variable declarations are not affecting the addresses of the instructionsin memory.[Note: You are allowed to use only instructions implemented by the actual MIPS hardwareprovided in attached photos below. Use assembly language format from the references orthe book. Note, base ten numbers are listed as normal (e.g. 23), binary numbers areprefixed with 0b and hexadecimal numbers are prefixed with 0x.] Write a C program and corresponding assembly program based on MIPS ISA that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input is invalid. The input is valid if the sum of every pair of two edges is greater than the remaining edge. [Direction: You can consult any resources such as books, online references, and videosfor this assignment, however, you have to properly cite and paraphrase your answerswhen it is necessary.] solve it any how urgently please.