I'm using an 18F4520 (i think) writing to an Orbital Matrix display over a serial port.

I can write characters fine, but the variable RPM displays 00000. RPM is declared as a WORD. I've tried a lot of variations, RPM as a Byte, IDec, SDec, Dec, Dec1, Dec2, etc, #RPM, but only 00000. Also the Shift command is not working. This may be a clue.

RPM = 100 ; RPM is a WORD
HSEROUT [$FE,$47,0,2,"RPM = ", DEC5 RPM]

Result >> RPM = 00000

I think the DEC is not converting the number to ASCII correctly. I also have a fair number of variables, maybe 100, and a few hundred lines of assembly in an include file to create timers and a software PWM.

These commands worked fine writing to an LCD using a parallel interface and the LCDOUT command. But since then, I expanded the assembly include file and added a few more variable.

Any ideas?

David B.