Witam.
Problem polega na "przesunięciu" pamięci programu pomiędzy tym co pokazuje dissasembler a rzeczywistą zawartością pamięci(używam AVR Studio 4 oraz 5.1).
Wklejam kawałek kodu z okna deassemblacji:

Problem polega na "przesunięciu" pamięci programu pomiędzy tym co pokazuje dissasembler a rzeczywistą zawartością pamięci(używam AVR Studio 4 oraz 5.1).
Wklejam kawałek kodu z okna deassemblacji:
CALL 0x00003CEA
00003C4E NOP Undefined
00003C4F NOP Undefined
RJMP PC-0x0000
00003C50 NOP Undefined
ST -Y,R10
00003C51 NOP Undefined
ST -Y,R11
00003C52 NOP Undefined
--- c:\users\michau\documents\avrstudio 5.1\AVRAssembler3\AVRAssembler3\AVRAssembler3.asm
RCALL PC+0x0078
00003C53 NOP Undefined
MOV R10,R16
00003C54 NOP Undefined
RCALL PC+0x0076
00003C55 NOP Undefined
MOV R3,R10
00003C56 NOP Undefined
MOV R2,R16
00003C57 NOP Undefined
STS 0x0061,R3
00003C58 NOP Undefined
00003C59 NOP Undefined
STS 0x0060,R2
00003C5A NOP Undefined
00003C5B NOP Undefined
LDI R18,0x07
00003C5C NOP Undefined
LDI R19,0x00
00003C5D NOP Undefined
MOVW R16,R2
00003C5E NOP Undefined
CALL 0x00003D5D
00003C5F NOP Undefined
00003C60 NOP Undefined
STS 0x0063,R17
00003C61 NOP Undefined
00003C62 NOP Undefined
STS 0x0062,R16
00003C63 NOP Undefined
00003C64 NOP Undefined
LD R11,Y+
00003C65 NOP Undefined
LD R10,Y+
00003C66 NOP Undefined
RET
00003C67 NOP Undefined
CALL 0x00003D52
00003C68 NOP Undefined
--- c:\users\michau\documents\avrstudio 5.1\AVRAssembler3\AVRAssembler3\AVRAssembler3.asm
00003C69 NOP Undefined
SBIW R28,0x01
00003C6A MOVW R30,R30 Copy register pair
CLR R0
00003C6B CPC R30,R0 Compare with carry
STD Y+0,R0
00003C6C CP R15,R30 Compare
CLR R12
00003C6D SUBI R16,0xE0 Subtract immediate
CLR R20
00003C6E LDI R30,0xF0 Load immediate
CLR R21
00003C6F LDI R30,0x57 Load immediate
RJMP PC+0x0016
00003C70 CPC R14,R17 Compare with carry
RCALL PC+0x005A
00003C71 LDI R27,0x3E Load immediate
MOV R10,R16
00003C72 MUL R11,R15 Multiply unsigned
RCALL PC+0x0058
00003C73 CPI R31,0xAF Compare with immediate
MOV R14,R16
00003C74 ??? Could not decode instruction
MOV R2,R14
00003C75 SBCI R19,0x02 Subtract immediate with carry
CLR R3
00003C76 LDD R0,Y+42 Load indirect with displacement