Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[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 · ·