X-Git-Url: http://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2FOWRomFunctionsDual.s;fp=common%2FOWRomFunctionsDual.s;h=1a9b0d4217659431f8f8315715c5dfa4d55ccb2c;hp=adc571c5d619b97532bfb2e335b888c029c08960;hb=cd92472e6fd63693741f8e168123a4182802651b;hpb=0f5b4d994ac87afdd294f6fc79692bcf92e337de diff --git a/common/OWRomFunctionsDual.s b/common/OWRomFunctionsDual.s index adc571c..1a9b0d4 100644 --- a/common/OWRomFunctionsDual.s +++ b/common/OWRomFunctionsDual.s @@ -64,6 +64,7 @@ #define OW_FWCONFIGINFO1 7 #define OW_FWCONFIGINFO2 8 +.comm idtable,64 #ifdef _CHANGEABLE_ID_ #define OW_WRITE_NEWID 9 @@ -71,7 +72,6 @@ #define OW_SET_NEWID 11 #define OW_FIRST_COMMAND 12 .comm newid,8 -.comm idtable,64 .macro CHANGE_ID_COMMANDS cset 0x75,OW_WRITE_NEWID @@ -406,10 +406,10 @@ h_fwconfiginfo_go: rjmp handle_end_inc h_fwconfiginfo_crc: lds r_rwbyte,crc - rjmp handle_end + rjmp handle_end_inc h_fwconfiginfo_crc2: lds r_rwbyte,crc+1 - rjmp handle_end + rjmp handle_end_inc h_fwconfiginfo_all: rjmp handle_end_sleep @@ -507,19 +507,11 @@ h_setid_EEPROM_write: //rcall read_EEPROM_ID2 push r_idm1 push r_idm2 - push r_idn1 - push r_idn2 push xl push xh - push yl - push yh rcall init_idtable - pop yh - pop yl pop xh pop xl - pop r_idn2 - pop r_idn1 pop r_idm2 pop r_idm1 h_setid_bad_code_all: @@ -540,10 +532,12 @@ spause: .global OWINIT OWINIT: + #ifndef _DIS_FLASH_ ; check for bootloader jumper ;vor allen anderen Registerconfigs - + push r_temp + ldi r_temp,(1<