It is possible to automate the interactive command line testing. The TLM is a slave to IRTC and as such we may send a sequence of operations to it provided each will execute before a communication timeout occurs.
If we wish to test the Target hardware before embarking on the software we may set port bits and read port bits from Host programs e.g.
ONLY META DEFINITIONS ALSO FORTH ALSO
H: TEST (S - ) $01 I/O P1DIR [TARGET] C!
BEGIN 10 MS 1 I/O P1OUT [TARGET] C!
10 MS $FE I/O P1OUT [TARGET] C!
KEY? UNTIL KEY DROP ;
IN-META
This routine will toggle PORT1 bit 0 approximately every 10 milliseconds until a key is pressed on the Host PC. [TARGET] is required to compile the Host address of C! as this is a Target definition.
The TEST word above only exists in the Host. It uses the code in the TLM to operate but does not add any extra. It is possible to incorporate Target definitions with the Host ones and then refer to them from within the Host words.
The Host program should be compiled in and run from the Remote mode after communication with the ISP is established.