Question: You are to design, write, assemble, and simulate an assembly language program which will calculate the factorial N ! of an unsigned 1 - byte
You are to design, write, assemble, and simulate an assembly language program which will calculate the
factorial N of an unsigned byte number N
The factorial of N is defined as: and NN N for N
For example, for N N $D
One way to calculate N is iteratively in N steps:
calculate
calculate
calculate
calculate
N calculate NNN
For this lab, N is a byte number, while the result N is stored as a byte number in NFAC in BIG
ENDIAN format
YOU MUST FOLLOW THE C PROGRAM BELOW TO DO NOT CHANGE. my current assmebly program isn't calculating correctly, when N is set to it says the NFAC is $D which is incorrect. So please help me And if you could change my program as little as possible and DO NOT go against the psudocode as it must be to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
