diff 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
line wrap: on
line diff
--- a/src/eeprom_rs232.inc	Fri Mar 04 08:30:23 2022 +0100
+++ b/src/eeprom_rs232.inc	Sun Aug 28 13:13:38 2022 +0200
@@ -148,11 +148,11 @@
 ; eeprom_address: address:2 containing destination address in EEPROM
 ;
 EEPROM_CC_WRITE		macro	memory_address, eeprom_address
+	movff	memory_address,EEDATA	; copy byte to EEPROM data register
 	movlw	HIGH(eeprom_address)	; extract bank in EEPROM
 	movwf	EEADRH					; set     bank in EEPROM
 	movlw	LOW (eeprom_address)	; extract start address in EEPROM
 	movwf	EEADR					; set     start address in EEPROM
-	movff	memory_address,EEDATA	; copy byte to EEPROM data register
 	call	write_eeprom			; execute write
 	endm