What I show is in the fist post is in the target, in the second post is a screenshot of the editor where I edited the S19 file.
Clicking disassemble shows me the correct machine code:
Decoder V-5.0.27 Build 11346, Dec 13 2011
Options: -ArgFilemodbusSlave.args -Env"GENPATH=C:/Users/Carlos/workspace/CC-BAT12-G2_QB8_v1.0/Project_Headers;C:\Freescale\CW MCU v10.2\eclipse\../MCU/lib/hc08c/device/src;C:\Freescale\CW MCU v10.2\eclipse\../MCU/lib/hc08c/lib;C:\Freescale\CW MCU v10.2\eclipse\../MCU/lib/hc08c/src;C:\Freescale\CW MCU v10.2\eclipse\../MCU/lib/hc08c/device/include;C:\Freescale\CW MCU v10.2\eclipse\../MCU/lib/hc08c/include;C:\Freescale\CW MCU v10.2\eclipse\../MCU/lib/hc08c/device/asm_include;C:/Users/Carlos/workspace/CC-BAT12-G2_QB8_v1.0/Generated_Code;C:/Users/Carlos/workspace/CC-BAT12-G2_QB8_v1.0/Sources;C:\Users\Carlos\workspace\CC-BAT12-G2_QB8_v1.0\Sources\components" -EnvOBJPATH=. -EnvTEXTPATH=. -OmodbusSlave.lst -ViewHidden -WmsgFob"%f%e:%l:%k:%d %m\n"
Decoding File: 'C:\Users\Carlos\workspace\CC-BAT12-G2_QB8_v1.0\Sources\components\modbusSlave.obj'
File format: ELF/DWARF
DISASSEMBLY OF: '.text' FROM 1572 TO 2018 SIZE 446 (0X1BE)
Opening source file 'C:\Users\Carlos\workspace\CC-BAT12-G2_QB8_v1.0\Sources\components\modbusSlave.c'
36: void modbusSlave_setReadRegisters(uint16 const * const registers[], uint8 length)
modbusSlave_setReadRegisters:
00000000 960000 STHX readRegisters
39: readRegistersLen = length;
00000003 C70000 STA readRegistersLen
40: }
00000006 81 RTS
It's weird that output file and flashed binaries later become erroneous.