-a 100
XXXX:0100 mov ah,09 ;String Function
XXXX:0102 mov dx,0109 ;Address of 0109
XXXX:0105 int 21 ;Do it
XXXX:0107 int 20 ;exit the program
XXXX:0109 db "HelloWorld" ;Charater to output
XXXX:0113 ;<return>
-rcx ;edit the cx register
CX 0000
:0113 ;File size of our program
-n hello.com ;Name of file with a .com extention
-w ;Write the byte size
Writing 00113 bytes
-q ;quit the program
You will get used to it someday. I had trouble first look
-a 100
XXXX:0100 mov ah,09 ;String Function
XXXX:0102 mov dx,0109 ;Address of 0109
XXXX:0105 int 21 ;Do it
XXXX:0107 int 20 ;exit the program
XXXX:0109 db "HelloWorld" ;Charater to output
XXXX:0113 ;<return>
-rcx ;edit the cx register
CX 0000
:0113 ;File size of our program
-n hello.com ;Name of file with a .com extention
-w ;Write the byte size
Writing 00113 bytes
-q ;quit the program
You will get used to it someday. I had trouble first look
@Sean3: Are you running XP? Might want to consider explaining the context of your snippet:
Typing those commands into debug.exe (an assembler/debugger included in Windows operating systems before Vista) will yield the executable "hello.com". This is a 16-bit console program that will only run natively on 32-bit operating systems (can be emulated rather easily using DOSBox on a 64-bit OS).
dandymcgee wrote:@Sean3: Are you running XP? Might want to consider explaining the context of your snippet:
Typing those commands into debug.exe (an assembler/debugger included in Windows operating systems before Vista) will yield the executable "hello.com". This is a 16-bit console program that will only run natively on 32-bit operating systems (can be emulated rather easily using DOSBox on a 64-bit OS).
dandymcgee wrote:@Sean3: Are you running XP? Might want to consider explaining the context of your snippet:
Typing those commands into debug.exe (an assembler/debugger included in Windows operating systems before Vista) will yield the executable "hello.com". This is a 16-bit console program that will only run natively on 32-bit operating systems (can be emulated rather easily using DOSBox on a 64-bit OS).