avr: fixed a bug.

This commit is contained in:
Martin Preuss
2026-01-23 22:23:32 +01:00
parent c59cdb1470
commit 026e9179e7
2 changed files with 4 additions and 17 deletions

View File

@@ -288,19 +288,6 @@ test:
bigcall OBJ_HandleSignal
#if 0
ldi xl, LOW(EEPROM_OFFS_TLV)
ldi xh, HIGH(EEPROM_OFFS_TLV)
eeloop:
bigcall Eeprom_CheckAddr
brcc eeloop_end
ldi r16, 0xff
bigcall Eeprom_WriteByte
adiw xh:xl, 1
rjmp eeloop
eeloop_end:
#endif
ret

View File

@@ -21,7 +21,7 @@
.equ EEPROMDUMP_FONT_HEIGHT = 8
.equ EEPROMDUMP_BYTESPERLINE = 8
.equ EEPROMDUMP_LINESPERPAGE = 14
.equ EEPROMDUMP_LINESPERPAGE = 18
; SDRAM data for EepromDump
.equ EEPROMDUMP_SD_OFFS_BEGIN = WIDGET_SD_SIZE
@@ -256,10 +256,10 @@ eepromDumpDrawLine:
ldi r18, EEPROMDUMP_BYTESPERLINE
eepromDumpDrawLine_loop:
bigcall Eeprom_ReadByte ; R16=byte read
brcc eepromDumpDrawLine_ret
adiw xh:xl, 1
push r18
bigcall Eeprom_ReadByte ; R16=byte read
brcc eepromDumpDrawLine_ret
adiw xh:xl, 1
push xl
push xh
bigcall HexByteToAscii ; X=ptr to addr (R16, R17)