And for "Constant String" I don't know how to implement it with user command. But I know assembler part 
Here is use of asm macro
PrintStr 0,0," Test Clock"
And macro:
Code:
PrintStr macro x, y, Str
local TheString, OverStr ; define local labels so you can call macro multiple times
goto OverStr ' goto over string stored in FLASH, so processor can't execute that
TheString ;label to get address of your string
data Str, 0 ;add string to flash at TheString address and end string with 0
OverStr
MOVE?CB x, _GLCD_X
MOVE?CB x, _GLCD_SX
MOVE?CB y, _PosY
MOVE?CW TheString, _GLCD_Addr ;move addres of string to word variable, don't know how it would work with device that have more than 65535K of FLASH???
L?CALL _GLCD_StringOut
endm
ENDASM
GLCD_StringOut:
Readcode GLCD_Addr, GLCD_Char ' Get a character
if GLCD_Char = 0 then RETURN ' Look for Null char, Stop if found
......
RETURN
This is from example for nokia 3310 lcd, that I tried to get to work with GLCD with KS0108 controler.
Bookmarks