Skip to content

Latest commit

 

History

History
51 lines (46 loc) · 2.63 KB

bs2d77.md

File metadata and controls

51 lines (46 loc) · 2.63 KB

bs2d77.py

Convert a RAW FD bit stream file (.raw) into a FM-7/FM77AV emulator disk format (.d77).
Virtually the D77 disk image format and D88 disk image format are identical. You can use the D77 disk image with the emulator software for the PC-8801 series by just modifying the file extension.

usage: bs2d77.py [-h] -i INPUT [-o OUTPUT] [--high_gain HIGH_GAIN]
                 [--low_gain LOW_GAIN] [--log_level LOG_LEVEL]
                 [--clk_spd CLK_SPD] [--abort_index] [--abort_id]
option description
-h, --help show this help message and exit
-i INPUT, --input INPUT input image file path
-o OUTPUT, --output OUTPUT output D77 image path
--high_gain HIGH_GAIN high-speed data separator gain (default: 0, recommend:0~0.4)
--low_gain LOW_GAIN low-speed data separator gain (default: 0, recommend: 0~high_gain)
--log_level LOG_LEVEL log level: 0=off, 1=minimum, 2=verbose
--clk_spd CLK_SPD FD-shield capture clock speed (default=4MHz=4000000)
--abort_index abort ID reading on 2nd index mark detection (Default=False)
--abort_id abort ID reading on 2nd identical ID detection (Default=True)

Command line example

python bs2d77.py -i bitstream.raw --abort_id
** Floppy shield bit-stream data to D77 image converter
Spin speed: 198.85759 ms
000 16/00   001 16/00   002 16/00   003 16/00   004 16/00   005 16/00
006 16/00   007 16/00   008 16/00   009 16/00   010 16/00   011 16/00
012 16/00   013 16/00   014 16/00   015 16/00   016 16/00   017 16/00
018 16/00   019 16/00   020 16/00   021 16/00   022 16/00   023 16/00
024 16/00   025 16/00   026 16/00   027 16/00   028 16/00   029 16/00
030 16/00   031 16/00   032 16/00   033 16/00   034 16/00   035 16/00
036 16/00   037 16/00   038 16/00   039 16/00   040 16/00   041 16/00
042 16/00   043 16/00   044 16/00   045 16/00   046 16/00   047 16/00
048 16/00   049 16/00   050 16/00   051 16/00   052 16/00   053 16/00
054 16/00   055 16/00   056 16/00   057 16/00   058 16/00   059 16/00
060 16/00   061 16/00   062 16/00   063 16/00   064 16/00   065 16/00
066 16/00   067 14/02   068 16/00   069 16/00   070 16/00   071 03/13
072 16/00   073 15/01   074 16/00   075 12/04   076 16/00   077 03/13
078 16/00   079 06/10
Adding raw track image data (MFM only)
 1237 sectors read (no error)
   43 error sectors
16.0 sectors in a track (average)
  • Track status
    Track# read_sectors/error_sectors E.g. 067 14/02 -> 14 sectors read and 2 error sectors (mainly data CRC error). --abort_id direct program to abort data reading when a sector which has the identical ID (CHRN) is found in a track (<= Usually, this happens when the track data is over read to the 2nd lap).