Menu

bin2mbd

Michal Jurica

Program convert input file into CODE block in .mbd file. You can specify new
target file or use existing one (it can add to existing images aswell) or target
file can be created from input file name if you don't specify it. Program can be
used for creating empty disc images when you specify just output file name.

Program syntax is as follow:

  bin2mbd [options] [file.bin]

All options are optional. If some option is requied and not set, it's used
default value. You must set input file name, output file name or both of them.

Options are:

-nt <arg>     no. of tracks of new disc image, default 82
-ns <arg>     no. of sectors of new disc image, default 11
-nsur <arg>   no. of surfaces of new disc, default 2
-d <arg>      no. of directory where the program put the file, default 0
--dir <arg>   same as -d
-a <arg>      starting address of binary file
-o <file>     set output file
-h            show help text
--help        same as -h
-v            show version of program
--version     same as -v

Format of .mbd file

For the format of .mbd file look at http://busy.speccy.cz/tvorba/mb02form.htm.
Boot also contain:

System identification on address #40 - #5F is array of random bytes that is
16 bytes long, written two times. BSDOS recognize different diskettes of the
same name by this identification. XOR of this array is written at address #16.

Space in bytes #17 - #1F contain:

#17     - irrelevant, default #FF
#18,#19 - formater version, FF17-V30 set word 30
#1A     - logic number of second sector of first FAT, usually #3
#1B     - logic number of second sector of second FAT, usually #7
#1C     - logic number of third sector of first FAT, usually #4
#1D     - logic number of third sector of second FAT, usually #8
#1E     - logic number of fourth sector of first FAT, usually #5
#1F     - logic number of fourth sector of second FAT, usually #9
#1A     - logic number of second sector of first FAT, usually #3
#1B     - logic number of second sector of second FAT, usually #7
#1C     - logic number of third sector of first FAT, usually #4
#1D     - logic number of third sector of second FAT, usually #8
#1E     - logic number of fourth sector of first FAT, usually #5
#1F     - logic number of fourth sector of second FAT, usually #9

Related

Wiki: Home

MongoDB Logo MongoDB