;script name: Disable PUIS Workaround
;WD Marwell Platform 
;
DISABLEDEBUG
print "^01 \14\15 ----------------------------------------"
print "^01 \14\15 Disable PUIS Hack WDM ONLY."
print "^01 \14\15 NO WARRANTY OR SUPPORT do not PM me."
print "^01 \12 Original author (Guru) is not responsible."
print "^01 \14\15 ----------------------------------------"
print "^01 \12  TYPE 1 if you agree or TYPE 2 to EXIT ."

%agree = USERINPUT

if %agree = 1 @go
if %agree = 2 @end

@go:

regs = $07 $00 $00 $00 $00 $a0 $ef
print "^01 \14\15 Spinning up drive please wait....."
waitnbsy

regs = $45 $0b $00 $44 $57 $a0 $80
waitnbsy

regs = $d6 $01 $be $4f $c2 $a0 $b0
waitnbsy
checkdrq
print "^01 \14\15  Disable PUIS......"
sectorsfrom = OFF.bin
print "^01 \10\15 ALL DONE :O) ."
@end:
; end
