|
-
Jan 24th, 2010, 10:59 AM
#1
Thread Starter
Member
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
-
Feb 9th, 2010, 03:47 AM
#2
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|