-2


 You can load DIS.COM into a text editor & edit the Defaults menu
at the top. Start of Line CAPITOL LETTERS = ON, else off. (dICTBFUsLwb#SnC)
.DIS in the Syntax message sets the outfile extension name.
You can change it to .ASM  or something.
 Make 2 versions of DIS in path & alter the top Defaults, so
DIS.com  outputs standard defaults unaltered, with TEXT on.
DIS2.com outputs no tEXT. (Makes code patches, & you Line up Labels.)
DIS3.com outputs a Decimal Dump with Text. (has a bug I haven't found yet.)
Then you have enough info to make the standard DIS output work.
When DIS.com can't get the instructions right, DIS2 has the needed code.
Douglas Herr's e16.com can edit 2 Large Files at once, align the two .DIS
files by their Labels L####: & do a copy/paste code patch to fix the .DIS
with text. Candyman's QDD32.exe (found on the FASM DOS forum, get it.)
& NASM nDISasm.com out files run through my DISn.com have the same format
as DIS.com output, so one file can patch the other.
Big Buffers on writes lines like: times 250 DW 0 ( FPU & CMP stay on also.)
 Decimal numbers in the instructions & HEX in the EOL dump, worked best 4me.
 If you just want to alter a programs keyboard input, color, or things that
don't change it's size, alter a DIS3.com D = Decimal Dump, ELSE,
-3

 DIS a.com & get it to assemble to EXACTLY THE SAME CODE as the original.com
then fix the Labels, so you can change size anywhere, by adding code.
Test it with, times 20 DB 144 ;20 NOPs written at the start. It changes all
address values, & if the Labels are not working, the program fails when run.
(NC.exe ^J or ^ENTER autoload inFile name + space, the space is removed.)
 Once DISed, rename ?.DIS to x?.asm & it will reassemble to a different name
even though the .D## out files still have the same basename.  DIS that.COM &
FCV old.out new.out ;Visual File Compare each out file, to it's match.
It shows if the Labels for each line are different, BECAUSE a line of code
didn't assemble to the exact same code size. Edit to HEX dump those Lines.
So start from the beginning .ASM & rewrite bad sized Lines to be a HEX dump.
Use the EOF info for that + ;comment the original Line, RE assemble+DIS again,
repeat to EOF. Lines like this, MOV DX,[$01AF] ;need labels dropped or made
so added code that changes sizeDIF, doesn't move new data to the address.
Change the $ to L & it is a Label. Then make or find & drop the Label for it.
Messages: sizeDIF often changes size, codeDIF just assembles to dif values.
DIS.com can't fix those Labels yet. Or ever? it might not be a Label?
Once you get FC.exe = same & the Labels working, then you can alter it.
Make a backup.001 before every change you make. Maintain ethics please.

-4

DIS.com output files.DIS can be used as an info source used to fix code output
from other disassemblers, make code patches, even change a text file to an
include file. You should have enough info available to fix what you want,
using your 3 DIS#.com outFiles. Alter the default extension .DIS file name
so repeated DIS of the same.com produced files that don't overwrite the last.
 Small.com under 2k seem easy enough to fix, but Large.com could take a life
time to fix, so evaluate the work a head & quit before you commit to an OOPs.
DIS.com will fill your hard drive, so DEL .DIS bulk crap, & DIS it later?
 DIS.com can't tell the difference between DATA and INSTRUCTIONS, so it just
disassembles data as if it's an instruction. If the DIS looks like a bad
programmer wrote it, its probably DATA. Same with 386 code & text sometimes.
A lot of "mt_OP" & "illegal" messages= 386+ code? use QDD32.exe & code like
CMP followed by INC, is DATA usually?  To clean up that mess I rely on the
HEX dump which is ALWAYS CORRECT. Comment the bad insruction & Dump in HEX.
 DB $FA,$CE,0 ; or the EOL info 'chars' for text &  DB "Hello gramma",13,10
The Last line of a .DIS file adds bytes to complete the instruction, edit it.
The DIS.com plan was to dump enough info to be able to fix an.asm for FASM.
DIS.com shows size coders machine code4 256 byte DOS.com contests.
Write in any language & DIS it4 FASM, then edit. View .com guts b4 running.

-5


You are not authorized to use DIS.com with bad intent, (First, do no harm.)
otherwise it's free ware dude.  Share your improvements, keep a history.
AND
Please don't support the USA DRUG WAR, 100 more years of insanity is insanity.
People in government will put your child in jail for what they consume,
but not their children, because they just need a little more help is all.
They have no use for your drug addict kids,
& don't know they are NOT AUTHORIZED to use them.
Once the socialist government starts paying for your health care, with your
money, they act as if they own you, so be careful of what you wish for,
or you just might get it.  (=food for thought) cuz
The world is only as harsh & cruel as we choose to make it on ourselves.

dis.com by Bitdog
You can contact me on the FASM forum DOS section,
& private message me for problems, or requests.


