Question 2 (a) Explain the function of registers and arithmetic logic unit (ALU) flags, C, N, V and Z of a microprocesso

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 2 (a) Explain the function of registers and arithmetic logic unit (ALU) flags, C, N, V and Z of a microprocesso

Post by answerhappygod »

Question 2 A Explain The Function Of Registers And Arithmetic Logic Unit Alu Flags C N V And Z Of A Microprocesso 1
Question 2 A Explain The Function Of Registers And Arithmetic Logic Unit Alu Flags C N V And Z Of A Microprocesso 1 (129.51 KiB) Viewed 40 times
subject : computer architecture
Question 2 (a) Explain the function of registers and arithmetic logic unit (ALU) flags, C, N, V and Z of a microprocessor. (b) (iv) The initial values (in hexadecimal format) of registers, RO, R1, R2, R3 of a microprocessor as followings: (1) RO 00123456 R2 00654321 (6 marks) R1= AABBCCDD R3=000 A 5C07 Determine the contents of all the registers and arithmetic logic unit this (ALU) flags after the following instructions executed on microprocessor. Assume C = 0, N = 0, V = 0 and Z = 0 before each instruction. Please show your calculation steps. ADD.W RO, R1 instruction adds the lower 2 bytes of R0 register with the corresponding lower 2 bytes of R1 register and stores the result in R1 register. (4 marks) ADD.L R2, R3 instruction adds the content of R2 register with the content of R3 register and stores the result in R3 register. (4 marks) CL.L R3 instruction clears the content of R3 register. (2 marks) MOVE.B RO, R1 instruction moves the lower byte from R1 register to RO register.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply