I am trying to get comms via hserout & hserin.
code snippet:
hserin [990,main],0,8 ‘ receive 8 bytes into scratchpad
ptr = 0 ‘ reset sp pointer
'echo out input
hserout 0,(@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptr)
this works fine - I get back what I send. Interestingly, if I send more or less than 8 bytes, I get only the same number back.
However, something apparently simple doesn't seem to work eg.
hserout 0, (#b0)
or
hserout 0, ("hello")
Any help would be appreciated.
Thanks
code snippet:
hserin [990,main],0,8 ‘ receive 8 bytes into scratchpad
ptr = 0 ‘ reset sp pointer
'echo out input
hserout 0,(@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptrinc,@ptr)
this works fine - I get back what I send. Interestingly, if I send more or less than 8 bytes, I get only the same number back.
However, something apparently simple doesn't seem to work eg.
hserout 0, (#b0)
or
hserout 0, ("hello")
Any help would be appreciated.
Thanks