Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

need help writing program in debug.exe

hi, anyone know how to Write an assembly language program in debug.exe that takes the keyboard input (assuming only number) and prints its factorial on the screen.

here is the code that i wrote it so far..

C:>debug
-a100
13C8:0100 mov ah,01
13C8:0102 int 21
13C8:0104 cmp al,0d
13C8:0106 jnz 0100
13C8:0108 mov ah,02
13C8:010A mov dl,al
13C8:010C int 21
13C8:010E int 20
13C8:0110
-rcx
CX 0000
:0010
-n text2.com
-w
Writing 00010 bytes
-g
hhfyfhfh
Program terminated normally
Sign In or Register to comment.