Hi guys,

I have been talking to our friend pedja089 about the lib in the first lib.

I did some good improvements, and now, I can print strings and Variables correctly.

I have already started writing some basic graphic routines, and I would like to publish it here as a contribution if our friend pedja089 agree with it, and I think he will.

To test it I did a small simple digital clock, just to check if printing is working.

The code compiles ok when I use a 18F4550 as a target controller. The hex's size is about 4500 bytes.

But, when I change to the 16F877, (which has 8kb available) it always show me the following erros :

Message[303] c:\teste_~1\glcd_p~1.asm 207 : Program word too large.Truncated to core size. (6573)
Message[303] c:\teste_~1\glcd_p~1.asm 207 : Program word too large.Truncated to core size. (7420)
Message[303] c:\teste_~1\glcd_p~1.asm 207 : Program word too large.Truncated to core size. (436C)
Message[303] c:\teste_~1\glcd_p~1.asm 207 : Program word too large.Truncated to core size. (6F63)
Message[303] c:\teste_~1\glcd_p~1.asm 207 : Program word too large.Truncated to core size. (6800)
Message[303] c:\teste_~1\glcd_p~1.asm 207 : Program word too large.Truncated to core size. (7820)

The line 207 in the Asm code is :

data Str, 0

from the macro :

PrintStr macro x, y, Str
local TheString, OverStr
goto OverStr
TheString
data Str, 0
OverStr
MOVE?CB x, _GLCD_X
MOVE?CB x, _GLCD_SX
MOVE?CB y, _PosY
MOVE?CW TheString, _GLCD_Addr
L?CALL _GLCD_StringOut
endm

I admit that I am absolutely noob on writing/uderstanding assembler.

Does some one have any ideao of what is wrong with this Macro.

Is this restricted to 18F series ?

Thank you !

regards,

Sérgio