Howdy, Stranger!

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

Categories

Question on output

odan16odan16 Member Posts: 40
How do output strings of text? so far I am only able to display characters or numbers. Can anyone tell me the basics or provide an example program?

Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : How do output strings of text? so far I am only able to display characters or numbers. Can anyone tell me the basics or provide an example program?
    :
    [code]
    .DATA
    strHello db 'Hello, World!$'

    .CODE
    main:
    mov ax, @DATA
    mov ds, ax

    mov dx, offset [strHello]
    mov ah, 9
    int 21h

    mov ax, 4C00h ; Back to DOS
    int 21h

    end main
    [/code]
  • BitdogBitdog Member Posts: 528
    [b][red]This message was edited by Bitdog at 2003-3-14 22:10:41[/red][/b][hr]
    : : How do output strings of text? so far I am only able to display characters or numbers. Can anyone tell me the basics or provide an example program?

    Screwball screen output.txt "Howdy World!"
    http://bitdog.home.att.net/temp/howdy.txt
    Save as .asm assemble with Nasm.


    : :
    : [code]
    : .DATA
    : strHello db 'Hello, World!$'
    :
    : .CODE
    : main:
    : mov ax, @DATA
    : mov ds, ax
    :
    : mov dx, offset strHello
    : mov ah, 9
    : int 21h
    :
    : mov ax, 4C00h ; Back to DOS
    : int 21h
    :
    : end main
    : [/code]
    :



Sign In or Register to comment.