Hi,
One way to do what you're asking for is something like
Code:
mcuStop VAR BYTE[8]   ' Array of 8 bytes
  mcuStop[0] = $55
  mcuStop[1] = $AA
  mcuStop[2] = $01
  mcuStop[3] = $FF
  mcuStop[4] = $00
  mcuStop[5] = $00
  mcuStop[6] = $AA
  mcuStop[7] = $56

HSEROUT [STR mcuStop]
However, with 24 commands, each consisting of 8 bytes you're going to "waste" 152 bytes of RAM on this - which may or may not matter.

Another aproach would be to create 24 subroutines and call them using GOSUB
Code:
mcuStop:
  HESEROUT [$55, $AA, $01, $FF, $00, $00, $AA, $56]
  RETURN

mcuCoast:
  HSEROUT [$55, $AA, $12, $EE, $00, $00, $AA, $56]
  RETURN

GOSUB mcuStop
GOSUB mcuCoast
Yet another posibillity might be the user command feature in PBP3 but that's a quite advanced feature.

It looks like all of the commands starts and ends with the same sequenct of bytes, 55, AA, xx, xx, 00, 00, AA, 56 where xx are the actual data. Is that valid for all commands?

/Henrik.


55, AA, 1, FF, 0, 0, AA, 56