; WD Marvell Royl serial flash 256 ROM read 
;
; input file: rom256.bin (512 bytes)
; configuration sector contains (hex):
; 0000 24 00 01 00 00 00 00 00 00 00 04 00 00 00 00 00
; 0010 00 .... (remaining all zero's)
;
reset
waitnbsy
regs = $45 $0b $00 $44 $57 $a0 $80
waitnbsy
regs = $d6 $01 $be $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsfrom = rom256.bin
regs = $d5 $80 $bf $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsto = 4rom0.bin
regs = $d5 $80 $bf $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsto = 4rom1.bin
regs = $d5 $80 $bf $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsto = 4rom2.bin
regs = $d5 $80 $bf $4f $c2 $a0 $b0
waitnbsy
checkdrq
sectorsto = 4rom3.bin
; end