Machine Organization I
V22.0201  Fall 2002
Nathan Hull
Assignment 1
Due: Thursday, October 3rd
Create a program which inputs numbers N (base) and M (exponent)
and then computes the N to the Mth power. Note that since both inputsand output
are BYTE quantities, there could be an error. If a carry past 255 happens during
your calculations, set the Error Code equal to 2.
Input: N = (base)

Input: M = (Exponent)

Output: (N^{M})

Error Code

1000H

1001H

1002H

1003H

The error code is = 1 if the exponentiation was calculated correctly,
and is = 2 if an error occured.
You should submit your finished code to your ETutor by Thursday, October
4th..