glad to see some interest

some ideas needed :-

currently to display a string
Code:
fg=$F800  ; set colour
 TEXTSIZE=2 
 ARRAYWRITE buffer,["HELLO WORLD",0]
 GLCDC 1,63     ; set x ,y position
 ch=0
 WHILE (ch< 32) AND (buffer[ch]>0  )  ; check for end of string
 GLCDC  buffer[ch]        ; disp ch
 ch=ch +1
 WEND
I would rather have a usercommand

GLCDS 1,63 ,buffer
but I can't figure a way of getting the address of buffer from the usercommand macros
GLCDS 1,63 ,"HELLO WORLD"
but I can't figure a way of getting the string data from the usercommand macros

I would like to put the display hardware dependent code into a separate include file (that way other displays could be incorporated)
not all the useful input combinations have had their macros written for each user command
more user commands are required
drawHline,drawVline,drawline,drawcircle,drawrect,f illcircle


the hardware connection interface is defined like this
Code:
  tft_dc_bit con 4
  tft_cs_bit con 1
  tft_rst_bit con 8
  tft_port var latd
its a bit clunky I sure there are better ways

bit banging the data could be investigated

over to you