Mercurial > public > hwos_code
changeset 142:8531f39eb70a
option_read and option_write eeprom banking
author | mh@mh-THINK |
---|---|
date | Thu, 31 Jul 2014 16:36:15 +0200 |
parents | 9883f30adf10 |
children | be997abd1f73 |
files | src/options.asm |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/options.asm Thu Jul 31 11:40:48 2014 +0200 +++ b/src/options.asm Thu Jul 31 16:36:15 2014 +0200 @@ -271,6 +271,8 @@ addlw LOW(eeprom_opt_backup) ; Add offset movwf EEADR movlw HIGH(eeprom_opt_backup) + btfsc STATUS,C ; >256 + addlw .1 ; Yes: +1 movwf EEADRH movf opt_type,W ; Option type is string ? @@ -343,6 +345,8 @@ addlw LOW(eeprom_opt_backup) ; Add offset movwf EEADR movlw HIGH(eeprom_opt_backup) + btfsc STATUS,C ; >256 + addlw .1 ; Yes: +1 movwf EEADRH movf opt_type,W ; Option type is string ?