Modify the main procedure in facto.asm so that the user is first
prompted to input the value of the variable n whose factorial is
to be computed, then the value is actually read from the console,
and finally the computed factorial value is presented to the user
in standard decimal notation.
Use the following specifications of Writeint, Readint, and Writeint
(from section 4.7 of the textbook):
- Writestring: Write a null-terminated string to standard output.
Input: DX points to the string.
- Readint: Read a signed ASCII decimal string from standard input
and store it as a 16-bit binary integer. Output: AX contains the value.
- Writeint: Write an unsigned 16-bit integer to standard output
in ASCII binary, decimal, octal, or hexadecimal format.
Input: AX contains the integer to display, BX contains the radix value
(2, 8, 10, or 16).