logo

Computer Architecture Assignment

7 Pages437 Words106 Views
   

Added on  2020-05-28

Computer Architecture Assignment

   Added on 2020-05-28

ShareRelated Documents
Running Head: COMPUTER ARCHITECTURE1Computer ArchitectureInstitutionDateName
Computer Architecture Assignment_1
COMPUTER ARCHITECTURE 2Question 3Length of instruction = 13 bitsAddress field size = 5 bits.Two address instructions = 5One address instructions = 20Maximum instruction code represented utilizing 13 bits = 2^13 = 8192And the address field size is 5 bits therefore, each address will contain 2^5 Possible value= 322-Address instruction will require 32*32 address space. But we have 5 such instructions. Thus 5*32*32 = 5120The 1-Address instruction will require 32 address space but we have 20 instructions. Thus 20*32 = 640The number of 0-address instructions to accommodate therefore is:The total – (2 Address instr + 1 Address instr) (Harris & Harris, 2015)8192- (5120+640)8192-5760= 2432
Computer Architecture Assignment_2
COMPUTER ARCHITECTURE 3Question 4Take:P=X+YQ=Y-ZR=X*YThen, A=P×QR2 Machine instruction: - Two address machine holds one source operand and destination operand using the register.MOV T1, XADD T1, YMOV P, T1MOV T2, YSUB T2, ZMOV Q, T2MOV T3, XMUL T3, YMOV R, T3
Computer Architecture Assignment_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Arithmetic Operations with General Register Computer
|9
|1059
|74

Computer Organization and Architecture : Assignment
|6
|778
|175

Study on Computer Organization and Architecture
|6
|806
|217

Computer Organization - Study Material and Solved Assignments
|7
|837
|175

Computer Organization Assignment PDF
|7
|805
|100

Computer Organization And Architecture: Assignment
|4
|299
|338