cls
forever:
dialog 6
Read ECU Info
Read Slave Flash
Load Slave Flash
Write Slave Flash
Verify
Exit
begin:
option 1 ecuinfo 2 backup 3 load 4 restore 5 verify 6 end
ecuinfo:
run vpwparameter
goto forever
backup:
if DEBUG == 0
echo Please hit detect first to enter DEBUG ON may take 15 seconds
goto continue
endif 
echo Read Slave Flash
getram Slave
goto continue
load:
echo Load Slave Flash
ldram Slave
goto continue
restore:
if DEBUG == 0
echo Please hit detect first to enter DEBUG ON may take 15 seconds
goto continue
endif 
confirmdlg
if CONFIRM == 0
goto continue
endif
echo Write Slave 
erase Slave
sprogram Slave
cmpram Slave
if CMPRAM == 0
echo Please power off/on the ECU and try again
endif
goto continue
verify:
cmpram Slave
continue:
goto begin
end:
