August 16th, 2014, 12:41
; VSC enable
reset
waitnbsy
regs = $45 $0b $00 $44 $57 $a0 $80
waitnbsy
; write 00h to section 0x1b at offset 02h in SA module 02
regs = $d6 $01 $be $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsfrom = wrt_021b.bin
waitnbsy
regs = $d6 $01 $bf $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsfrom = wd_021b.bin
; write 3Ch sectors to SA module 32
waitnbsy
regs = $d6 $01 $be $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsfrom = wrt_32.bin
waitnbsy
regs = $d6 $3c $bf $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsfrom = wd_32clr.bin
0x0000 08 00 02 00 32 00 00 00 00 00 00 00 00 00 00 00
0x0000 2a 00 02 00 02 00 1b 00 02 00 01 00 00 00 00 00
512 bytes of zeros
MHDD>.SLOFIX
16.08.2014 9:50:08 MHDD ATA/SCSI TERMINAL v2.1
16.08.2014 9:50:08 Script: SLOFIX
16.08.2014 9:50:08 LINE 1: RESET
16.08.2014 9:50:08 LINE 2: WAITNBSY
16.08.2014 9:50:08 LINE 3: REGS = $45 $0B $00 $44 $57 $A0 $80
16.08.2014 9:50:08 LINE 4: WAITNBSY
16.08.2014 9:50:08 LINE 5: REGS = $D6 $01 $BE $4F $C2 $A0 $B0
16.08.2014 9:50:08 LINE 6: WAITNBSY
16.08.2014 9:50:08 LINE 7: CHECKDRQ
16.08.2014 9:50:08 LINE 8: SECTORSFROM = WRT_021B.BIN
16.08.2014 9:50:08 LINE 9: WAITNBSY
16.08.2014 9:50:08 LINE 10: REGS = $D6 $01 $BF $4F $C2 $A0 $B0
16.08.2014 9:50:08 LINE 11: WAITNBSY
16.08.2014 9:50:08 LINE 12: CHECKDRQ
16.08.2014 9:50:08 LINE 13: SECTORSFROM = WD_021B.BIN
16.08.2014 9:50:08 LINE 14: WAITNBSY
16.08.2014 9:50:08 LINE 15: REGS = $D6 $01 $BE $4F $C2 $A0 $B0
16.08.2014 9:50:08 LINE 16: WAITNBSY
16.08.2014 9:50:08 LINE 17: CHECKDRQ
16.08.2014 9:50:08 LINE 18: SECTORSFROM = WRT_32.BIN
16.08.2014 9:50:08 LINE 19: WAITNBSY
16.08.2014 9:50:08 LINE 20: REGS = $D6 $3C $BF $4F $C2 $A0 $B0
16.08.2014 9:50:08 LINE 21: WAITNBSY
16.08.2014 9:50:08 LINE 22: CHECKDRQ
16.08.2014 9:50:08 LINE 23: SECTORSFROM = WD_32CLR.BIN
16.08.2014 9:50:09 All done.
August 16th, 2014, 15:06
August 16th, 2014, 19:43
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 52 4F 59 4C 01 00 30 00 32 00 3C 00 D4 E4 6A 59 ROYL............
August 16th, 2014, 21:16
fzabkar wrote:Please be aware that the section of code that writes MOD 32 needs to be adapted to suit one's own drive. This is because the size of MOD 32 is not the same for all models.
Specifically, one would need to modify the second hexadecimal number in the "regs = $d6 $3c ..." line to reflect the size of MOD 32 expressed in sectors. Offsets 0Ah - 0Bh contain the module's size in little-endian format.
- Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 52 4F 59 4C 01 00 30 00 32 00 3C 00 D4 E4 6A 59 ROYL............
August 17th, 2014, 18:36
August 17th, 2014, 19:42
April 22nd, 2018, 16:06
April 22nd, 2018, 16:21
January 22nd, 2019, 16:47
fzabkar wrote:Please be aware that the section of code that writes MOD 32 needs to be adapted to suit one's own drive. This is because the size of MOD 32 is not the same for all models.
Specifically, one would need to modify the second hexadecimal number in the "regs = $d6 $3c ..." line to reflect the size of MOD 32 expressed in sectors. Offsets 0Ah - 0Bh contain the module's size in little-endian format.
- Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 52 4F 59 4C 01 00 30 00 32 00 3C 00 D4 E4 6A 59 ROYL............
January 22nd, 2019, 18:48
January 22nd, 2019, 18:53
January 23rd, 2019, 7:16
fzabkar wrote:MHDD's scripting language is fairly rudimentary. I don't believe it's possible to do what you suggest.
MHDD TERMINAL: Sample scripting batch and documentation:
http://webcache.googleusercontent.com/s ... RIPTS/TEST
I have attached an updated program that reports the size of MOD 32.
January 23rd, 2019, 9:41
Powered by phpBB © phpBB Group.