
##############################################################################
##                     WUDEBUG 0.1 alpha source code                        ##
##                  Copyright (c) 1997, Michael Tippach                     ##
##############################################################################


##########################       Credits     #################################


  Thanks to Simon Tatham and Julian Hall, the authors of NASM for their kind
  permission to incorporate the NDISASM  instruction decode routine into the 
  debugger.


##############################################################################


This code is provided "as is".  It resembles the current state of WUDEBUG. I'm
still working on it and the code actually is a mess.  Don't blame me for that,
just delete it if you find it unreadable, it's not been written to be released
some day.  The code comes with absolute no warranty,  even without the implied
warranties of merchatability or fitness for a particular purpose.  In no event
shall  the author(s  be liable for any  kind of loss or damage  arising out of
the use, abuse or inability to use the code.

However, IMO releasing something slightly more complex than mere "Hello world"
style code snippets may give you some more ideas on how to code with WDOSX.

You may freely copy and  distribute the  sourcecode  provided you keep all the
files, including this one together and unaltered. 

You are not allowed to distribute modified  versions of the sourcecode or exe-
cutables build  from any  version of the code ( regardless whether modified or
not ) without my prior permission.

The reason  I'm saying so is that I don't want  to  answer anyone's  questions
regarding Wudebug 0.1 alpha 12xx.445.455 build by A.B. with modifications done
by C.D. which have been even more modified by E.F. you get the picture,  don't
you?

If you feel the need, to improve on the code ( there's a lot to do yet ), just
do it. If you further feel the  improved  code is worth beeing released to the
public, don't hesitate to contact me at tippchm@dialin.deh.de. In either case,
contacting me _first_ is a good  idea since  there may have  been other things
done to Wudebug inbetween, rendering your improved version useless or at least
difficult to take care of.

You must not  incorporate  any portion of the code in a product that is not to
be released as freeware. If you want to make money, do it the honest way!

Then again,  I seriously  doubt anyone would like to use  the code as it is in
any decent production ;-)

Enough of that drivel.

As I said, the code is a mess.  It's just taken from my  development directory
without any further polishing or so afterwards.

The NDISASM decode routine files are NOT included. You need to obtain the NASM
0.93 sourcecode distribution to rebuild the debugger.

You need to take the following files from that package and compile them:

             disasm.c
             insnsd.c
             names.c
             sync.c
             disasm.h
             nasm.h
             insns.h
             sync.h

Note that the debugger code  assumes all registers except edx, ecx, eax beeing
preserved across calls to .ASM routines from C code and vice versa.

Your C compiler may handle this different. Borland C 4.0 and above is fine.
