I an trying to create Hangman using ASSEMBLY 8086x TASM MS-DOS. I want to create a procedure that takes lets the user type a certain letter and it will appear on the screen on specific coordinates. Is there a way to print a character on the screen on specific locations with x and y? Here is what I have written so far:
proc b
mov cx,10
InTheWordLoop:
push cx
mov ah, 1 ;char input
int 21h
mov bx, offset ArrayBasketball
mov si,0
cmp [byte ptr (bx + si)], al
jne fin
mov ah,2
mov dl,al
fin:
inc si
pop cx
loop InTheWordLoop
ret
endp b
I want to print the character above the underlines. The word in this example is "Basketball" which has 10 characters.