[b][red]This message was edited by stevem222 at 2002-9-24 11:18:37[/red][/b][hr]
I know that I am missing something, but I don't know what. Can somebody help me? I want to be able to be prompted in dos for the number (which I am), input the number (can do that too), and have that number returned (not happening; get an upward arrow). See below:
;;program displaying a number 1-8
Prompt db 'Enter a number 1-8: $'
msg db 10, 13, '$'
msg2 db 'Factorial is: $'
mov ax, @data
mov dx,offset prompt
mov ah, 01h; get character input
mov dx, offset msg
mov dx, offset msg2
mov ah, 02h
mov ah,4ch;send return to dos code
0 · ·