comparison src/eeprom_rs232.inc @ 650:bc214815deb2

3.19/10.75 release
author heinrichsweikamp
date Sun, 28 Aug 2022 13:13:38 +0200
parents aeca5717d9eb
children 75e90cd0c2c3
comparison
equal deleted inserted replaced
649:ef2ed7e3a895 650:bc214815deb2
146 ; 146 ;
147 ; memory_address: address:2 containing source address in memory (bank safe) 147 ; memory_address: address:2 containing source address in memory (bank safe)
148 ; eeprom_address: address:2 containing destination address in EEPROM 148 ; eeprom_address: address:2 containing destination address in EEPROM
149 ; 149 ;
150 EEPROM_CC_WRITE macro memory_address, eeprom_address 150 EEPROM_CC_WRITE macro memory_address, eeprom_address
151 movlw HIGH(eeprom_address) ; extract bank in EEPROM
152 movwf EEADRH ; set bank in EEPROM
153 movlw LOW (eeprom_address) ; extract start address in EEPROM
154 movwf EEADR ; set start address in EEPROM
155 movff memory_address,EEDATA ; copy byte to EEPROM data register 151 movff memory_address,EEDATA ; copy byte to EEPROM data register
152 movlw HIGH(eeprom_address) ; extract bank in EEPROM
153 movwf EEADRH ; set bank in EEPROM
154 movlw LOW (eeprom_address) ; extract start address in EEPROM
155 movwf EEADR ; set start address in EEPROM
156 call write_eeprom ; execute write 156 call write_eeprom ; execute write
157 endm 157 endm
158 158
159 159
160 ;----------------------------------------------------------------------------- 160 ;-----------------------------------------------------------------------------