83Plus:BCALLs:4F3F

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: SendCmd

BCALL Address: 4F3F

Sends almost any packet you want over the link port that contains data and receives acknowledgement.

Inputs

  • A: command to send (15h for data packet, 06h/0A2h/0C9h for variable header, etc.)
  • BHL: page:address of variable data if sending data packet
  • DE: size of packet data
  • iy+1Bh set up accordingly

Outputs

  • None

Destroys

  • All

Comments

This BCALL will throw ERR:LINK if any problems are found.

It also behaves very, very strangely when (sndRecState) is 08h, (varClass) is 0Ah, and DE>=037Dh, so you should probably zero out (sndRecState) just in case.