Arera - you are correct in the way it works. Clearing the indicator byte as below will solve the problem you raise.
[code:1:3fc26890a6]
dim rbyte as byte
readeeprom rbyte , 100 'bootloader sets this loc to 125 so that i know a bootloader is there.
if rbyte <> 125 then
rbyte = peek(0) 'no bootloader programmed. read R0 directly
else
readeeprom rbyte , 80 'bootloader writes R0 to this address
end if
rbyte = 00
writeeeprom rbyte,100 'clear the loc
[/code:1:3fc26890a6]
↧