Author Topic: how do you print multi line to screen  (Read 10504 times)

Offline flyhigh427

  • Jr. Member
  • *
  • Posts: 60
how do you print multi line to screen
« on: July 19, 2011, 02:13:01 PM »
hey how do i get how do i get all four lines to show on screen at once?
thanks

Code: [Select]

        mov     ah, 9           
        mov     dx, strfirst
        mov     dx, strsecond
        mov     dx, strthird
        mov     dx, strfourth       
        int     0x21       


Code: [Select]

strfirst             db      13,10,'pick'
strsecond         db      13,10,' a'
strthird            db      13,10,' number '
strfourth          db      13,10,'>>:$'



Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: how do you print multi line to screen
« Reply #1 on: July 19, 2011, 06:31:26 PM »
Did you try this?

Code: [Select]
        mov     ah, 9           
        mov     dx, strfirst
;        mov     dx, strsecond
;        mov     dx, strthird
;        mov     dx, strfourth       
        int     0x21       

Best,
Frank


Offline flyhigh427

  • Jr. Member
  • *
  • Posts: 60
Re: how do you print multi line to screen
« Reply #2 on: July 19, 2011, 06:35:55 PM »
i  got it yall
Code: [Select]


        mov   ah, 9           
        mov   dx, strfirst
        int     0x21
        strfirst             db      10,13
                              db      'pick',10,13
                              db      ' a' ,10,13                               
                              db      ' number ',10,13
                              db      '>>:$',10,13