CALL JJRECV
This page was last modified 17:24, 29 July 2021 by Mars2000you.

Contents

Effect

Writes the data input from joystick port 2 to the specified area of MSX memory.

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 JJRECV (<StartAddress>,<EndAddress>,S)

Parameters

<StartAddress> and <EndAddress> are used to specify the area of the computer RAM (or VRAM).

The parameter S is used to write the data to VRAM - This can be done in any screen mode but only the active pages are valid when the screen mode is higher than 4.

Examples

CALL JJRECV (&HC000,&HD0FF)
CALL JJRECV (&H0,&H3FFF,S)

Related to

CALL JJSEND, CALL JJRECVBYTE, CALL JJRECVMSG, CALL JJSENDBYTE, CALL JJSENDMSG

Compatibility

JJFS BASIC