dialog 5
Read 28F400
Load 28F400
Write 28F400
Verify
Exit
begin:
option 1 backup 2 load 3 restore 4 verify 5 end
backup:
reset 1
wait 800
if DEBUG == 0
echo The CEM might be bricked.
goto continue
endif 
echo Read 28F400
getram 0 80000
goto continue
load:
echo Load 28F400
ldram 0
goto continue
restore:
confirmdlg
if CONFIRM == 0
goto continue
endif
reset 1
wait 800
if DEBUG == 0 
echo The CEM might be bricked.
goto continue
endif 
echo Write 28F400
flashchk 0
if FLASHSET == 0
echo flash not defined
goto continue
endif
checkmdw 0
if MEMORY == FFFFFFFF
echo Your 28F400 does not seems to be right. This might brick the CEM
goto continue
endif
program 0 80000
cmpram 0 80000
if CMPRAM == 0
echo Please power off/on the CEM and try again
endif
goto continue
verify:
cmpram 0 80000
continue:
pause
goto begin
end:
