Hi Marek.
I don't have suitable hardware available - sorry. But I can give some general guidelines on using the debugger. First put a Debug_Break; line just before the Write statement. Compile and install to your hardware, and using your dongle as debugger run the hardware until the breakpoint is reached. Click the ASM button and use F7 to step into the code. Keep your source code to hand. The registers you are interested in are _ACCCLO and _ACCCHI which should start at zero, then as you hit the line after SYSTEM._L0048: for the first time they should be zero and 1, and the second time zero and 2, and so on. A couple of lines later, after the ELPM statement has executed, the value in _ACCA should be ASCII code for 'A' then 'B' then 'C'. I expect the _ACCA register, from what you describe, to be 'A' then $FF, but why is not clear. If the _ACCCLO and _ACCCHI registers are not as expected, then that is the are to examine next. If all the registers (including _ACCA) are as expected, then we need to look at some sort of hardware incompatibility - maybe some timing issues or something like that, but we will have at least eliminated the main software (or not).
I don't have suitable hardware available - sorry. But I can give some general guidelines on using the debugger. First put a Debug_Break; line just before the Write statement. Compile and install to your hardware, and using your dongle as debugger run the hardware until the breakpoint is reached. Click the ASM button and use F7 to step into the code. Keep your source code to hand. The registers you are interested in are _ACCCLO and _ACCCHI which should start at zero, then as you hit the line after SYSTEM._L0048: for the first time they should be zero and 1, and the second time zero and 2, and so on. A couple of lines later, after the ELPM statement has executed, the value in _ACCA should be ASCII code for 'A' then 'B' then 'C'. I expect the _ACCA register, from what you describe, to be 'A' then $FF, but why is not clear. If the _ACCCLO and _ACCCHI registers are not as expected, then that is the are to examine next. If all the registers (including _ACCA) are as expected, then we need to look at some sort of hardware incompatibility - maybe some timing issues or something like that, but we will have at least eliminated the main software (or not).