X-Git-Url: http://git.smho.de/gw/?a=blobdiff_plain;f=common%2FOWRomFunctions.s;h=e88941611e28d3977f2055d32ae628b02aa7c3c3;hb=cd92472e6fd63693741f8e168123a4182802651b;hp=0b1488dd9b9d074ae9e191e9460dc8e96807965e;hpb=6aa7a2df05f4f65bf6c7260487a470798a5ed1b1;p=owSlave2.git diff --git a/common/OWRomFunctions.s b/common/OWRomFunctions.s index 0b1488d..e889416 100644 --- a/common/OWRomFunctions.s +++ b/common/OWRomFunctions.s @@ -102,6 +102,8 @@ #ifdef _CHANGEABLE_ID_ ; lesen der ID aus dem EEPROM beim Start read_EEPROM_ID: + push r_bytep + push r_rwbyte//r_temp2 and Z is not in gnu C save area ldi r_temp2,lo8(E2END) ldi zh,hi8(E2END) subi r_temp2,7 @@ -123,6 +125,8 @@ read_EEPROM_ID_loop: cpi r_bytep,8 brne read_EEPROM_ID_loop read_EEPROM_ID_end: + pop r_rwbyte + pop r_bytep ret #endif @@ -437,7 +441,7 @@ OWINIT: #ifndef _DIS_FLASH_ ; check for bootloader jumper ;vor allen anderen Registerconfigs - + push r_temp ldi r_temp,(1<