CALL JJSENDBYTE
Contents |
Effect
Sends 1-byte data to the joystick port 2.
Notes:
- This instruction is for general-purpose serial communication at 38400 bps. You can use it when communicating with the terminal software or between two MSX computers.
- Be careful when writing programs for two-way communication. One computer must be the sender, the other one the receiver. If both computers are in the receiver status, they will deadlock and freeze.
- If an error occurs during communication or data cannot be received correctly, MSX may freeze while waiting for reception. In such a case, please click the [x] button of "Joy Joy File Server" once. By sending dummy data, the problem may be resolved.
Syntax
CALL JJSENDBYTE (<Data>)
Parameter
<Data> can only be a numeric value (between 0 and 255). It will be stored in an integer variable with CALL JJRECVBYTE.
Example
CALL JJSENDBYTE (201): CALL JJRECVBYTE (A%)
Related to
CALL JJRECV, CALL JJRECVBYTE, CALL JJRECVMSG, CALL JJSEND, CALL JJSENDMSG