CALL JJRECVBYTE
Contents |
Effect
Stores 1-byte data input from the joystick port 2 in an integer variable.
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 JJRECVBYTE (<Variable>)
Parameter
<Variable> must be an integer variable that will contain the numeric value sent with CALL JJSENDBYTE.
Example
CALL JJSENDBYTE (201): CALL JJRECVBYTE (A%)
Related to
CALL JJRECV, CALL JJRECVMSG, CALL JJSEND, CALL JJSENDBYTE, CALL JJSENDMSG