15/02/02 3.47.14, Clarence Verge <[EMAIL PROTECTED]> ha scritto:

>Bastiaan Edelman, PA3FFZ wrote:
>> 
>> Yes, I tried DEBUG en typed in "hello world" but no luck.
>> 
>> The only results were some error messages... ;-(
>> 
>> DEBUG.EXE (you can find it in command.com) is not that easy 
to use.
>
>Hi Bastiaan;
>It is not part of command.com. It is a stand alone program.
>
>> There are 24 commands and you have to state a location 
(address in
>> memory) or a file name.
>> 
>> This is the first problem: what location (starting address in 
memory)?
>
>0100h. This is the starting address of ALL .com files. Do not 
enter the "h".
>
>> Is this address free or will changes make your system crash?
>
>Debug always presents you with the next free load address for a 
.COM program.
>That means that all the segment registers point to the start of 
the next
>free segment, and location 0100h in that segment will be where 
the next
>program must load.
>
>> A new file can not be opened...
>
>Yes it can. Type: Debug Hello.com <enter>
>
>Even tho the file doesn't yet exist, you have pre-entered the 
name.
>You will get a: "-" prompt.
>Type E0100 BA 09 what ever CD 20 etc etc <enter> I don't 
remember the code.
>
>Note that you type actual hex values, not decimal equivalents, 
separated
>by spaces with your whole program entered by one <enter>
>
>Debug understands and ASSUMES Hex so don't put any "h" after 
the address.
>E0100 means ENTER @ 0100Hex.
>
>When finished, type RCX <enter> This will display the contents 
of the CX
>register, and here you will have to enter the hex count of the 
total bytes
>in the program.
>RCX: 17 <enter> That's 16+7=23 decimal. Is 23 the desired 
number ?
>W <enter> Debug will write 23 bytes to the filename you opened 
at start.
>Q <enter> That's quit.
>
>Hello <enter>
>Here you should see:
>Hello world
>
>The string I gave is terminated by CRLF.
> 
>> "a" command assembles mnemonics... but you have to know the 
instruction
>> set.
>
>Right. If you would like to see how it looks in memnonics, load 
it again
>and type: U100 <enter> and it will Unassemble the code one 
screen at a time.
>Type U <enter> to continue.
>
>To display it as a Hex dump, type D100<enter> and to continue 
there type
>D<enter>. 
>
>You can look at any .COM this way. Don't bother with .EXEs 
because the
>header will screw you up, and I'm not going to explain. <g>
>
>To RUN a program INSIDE debug so you can see what is happening 
to the
>registers as the program moves along, type G100,100 <enter>
>This means Go @ 100 (start) and then stop at the breakpoint 
100.
>Then type P<enter> to proceed one step.
>
>Type Q <enter> at any time to quit. 
>
>> So please give some more instructions on how to type in those 
23 hex
>> values.
>
>Just type. (inside debug) <G>
>
>-  Clarence Verge
>--
>-  Help stamp out FATWARE.  As a start visit: 
http://home.arachne.cz/
>-  The internet is infected - Windows is a VIRUS !!
>--
>
>



Reply via email to