The first global LBL in RAM should have a byte code of the structure "c0 00 fn 00 <n-chars>". The three zero nybbles after the C denote the byte distance to the previous global LBL. In case of the first LBL, the distance must be zero.
The generated code generated by pressing the "<-- Encode --" is correct, when the first instruction in the code listing is a global LBL.
E.g.:
Code: Select all
LBL "X"
+
Code: Select all
DM41
08 4b000000000000 00000000000000 00000000000000 00000000000000
0c 1000000000019c 1a70016919c19a 0000002c048000 00000000000000
198 00000000000000 00000000000000 00000000c8012f c000f200584000
...
When I swap the two instructions:
Code: Select all
+
LBL "X"
Code: Select all
DM41
08 4b000000000000 00000000000000 00000000000000 00000000000000
0c 1000000000019c 1a70016919c19a 0000002c048000 00000000000000
198 00000000000000 00000000000000 00000000c6012f 40c200f2005800
...
As a obvious workaround I have put a global LBL at the beginning of the listing, which I later removed on the DM-41L.