begin:
cls
/////////////////////////////////////////////
//    MEC16XX
/////////////////////////////////////////////
echo 1. Backup flash
echo 2. Program flash
echo 3. Exit
option 1 backup 2 restore 3 end
backup:
echo backup flash
detect
getram flash
save flash
goto continue
restore:
detect
echo backup flash, load the file escape to ignore or comment the following line
ldram flash
pause
erase flash
sprogram flash
cmpram flash
continue:
pause
goto begin
end: