CSC 222         Lab 6
Fall 2000

Topic: Recursive Procedures
	Creating a program that will read in a base 10
	number, find the factorial, and print it out in
	decimal or hex.

1) Write and assemble a program that will read in a 
    base 10 number, find the factorial, and print it out
	in decimal or hex. Run the program using Code View.

Example:
5
60



Sample

.model small
.stack 100H
.data

.code
Sample  proc
	mov	ax, @data
	mov 	ds,	ax

;;	program goes here

	mov	al, 	0	; exit to DOS
	mov 	ah,	4ch	
	int	21h
	Sample	endp

Fact	PROC

;;	procedure goes here

	ret
Fact	ENDP

	end	Sample