avr: fixed a bug.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user