83Plus:BCALLs:50FB

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: GetVarCmdUSB

BCALL Address: 50FB

Sends a silent link request to another calculator and receives a variable to RAM via USB or link port.

Inputs

  • OP1: type and name of variable to request (must be zero'd out)
  • (sndRecState): 15h
  • iy+1Bh set up accordingly
  • 0,(iy+1Bh) must be set to receive from USB, reset to receive from link port

Outputs

  • None

Destroys

  • All

Comments

This BCALL will not throw any errors if problems are encountered.

It is basically the same as GetVarCmd, but if 0,(iy+1Bh) is set, it will attempt to use the USB port first. If that transfer fails or the flag is reset, it will fall back to the link port.