This is fasm:                                                           
                                                                      
org 100h

mov ah,09
mov dx,message
int 21h

mov ah,08
int 21h
int 20h
message db "Hello$"
                                                                This is ms-dos debugger:
                                                                             

100:db "Hello$"
108:mov ah,9
10A:mov dx,100
10D:int 21
10F:mov ah,8
111:int 21
113:int 20                                                                             


But this ms-dos debugger code is not running.How can i create goto message routine in ms-dos debugger?
Posted on 2011-11-28 11:23:57 by Helegurbann
Why in the world would you want to use DEBUG when you've got a perfectly good assembler?

The "old school" way of doing it is to jump over your data - much like you've done in the "creat" example. The Fasm code puts the message ("hello$") at the end. Shouldn't matter if there's some "wasted space" between the end of your code and the message. Try something like:

-a 100
mov dx, 120
mov ah, 9
int 21
mov ah, 8
int 21
int 20

-e 120 "hello$"
-g 100
-q


Are you writing this out to a disk file and running it, or running it from within DEBUG? Simply assembling it doesn't cause it to execute, y'know. Could this be why your "creat" example isn't working?

Best,
Frank

Posted on 2011-11-28 12:16:38 by fbkotler