Results 1 to 3 of 3

Thread: Simple ASM app help

  1. #1
    Guest

    Post

    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Guest
    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
  •  



Click Here to Expand Forum to Full Width