Code: Select all
sub procedure my_lcd_print (dim byref x as word)
dim p as ^word ' create pointer
p = @x ' attach to x
while p^ <>0
P0 = p^
p1.B4 = 1
p1.B4 = 0
inc(p)
wend
end sub
main:
my_lcd_print ("hello world")
while TRUE ' Endless loop
wend
end.
how can i pass a pointer to a string to a subroutine ?
I am trying to make optimised libraries. the standard libraries consume waay too much room and are too slow.