PDA

Click to See Complete Forum and Search --> : Simple ASM app help


Oct 21st, 2000, 01:15 AM
For some reason, it wont print the string, but it will wait for the key press, and exit to DOS.


Title1 db "Hello$"

start:
mov ah, 9
mov dx, OFFSET Title1
int 21h

;Wait for key
mov ah, 0
int 16h

;Exit to DOS
mov ax, 4c00h
int 21h

end start


By the way, im using the A86 compiler.

parksie
Oct 21st, 2000, 01:14 PM
How about using:

Title1 db "Hello",13,10,'$'

Oct 21st, 2000, 02:17 PM
Ok, got that working. How do i accept a string from the keyboard?