|
-
Oct 21st, 2000, 12:15 AM
#1
For some reason, it wont print the string, but it will wait for the key press, and exit to DOS.
Code:
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.
-
Oct 21st, 2000, 12:14 PM
#2
Monday Morning Lunatic
How about using:
Code:
Title1 db "Hello",13,10,'$'
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 21st, 2000, 01:17 PM
#3
Ok, got that working. How do i accept a string from the keyboard?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|