Results 1 to 2 of 2

Thread: gotoxy in assembly

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2009
    Posts
    35

    Question gotoxy in assembly

    Code:
    ; The easiest way to print out "Hello, World!"
    
    name "hi"
    
    org 100h
    
    jmp start       ; jump over data declaration
    
    msg:    db      "Hello, World!", 0Dh,0Ah, 24h
    
    start:  mov     dx, msg  ; load offset of msg into dx.
            mov     ah, 09h  ; print function is 9.
            int     21h      ; do it!
            
            mov     ah, 0 
            int     16h      ; wait for any key....
            
    ret ; return to operating system.

    ok ,
    so i found this example with emu8086

    anybody know how to move the text? lets say 20 pixels from right
    or 20 pixels from the top.,

    just like the gotoxy function in c..

    thanks

  2. #2
    Member
    Join Date
    Oct 2006
    Posts
    53

    Re: gotoxy in assembly

    Perhaps this will do
    Code:
    msg:    db      13,10,"    Hello, World!", 0Dh,0Ah, 24h

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