83Plus:BCALLs:80ED

From WikiTI
Revision as of 17:06, 5 November 2006 by Brandonw (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Unofficial Name: ControlCmdFailed

BCALL Address: 80ED

Checks for success/failure on a USB control request.

Inputs

  • None

Outputs

  • C set if NAK or Stall

Destroys

  • A

Comments

This BCALL outputs 0 to port 8Eh and checks bits 2 and 4 of port 91h. If either are set, this function returns carry set.

Example

B_CALL ControlCmdFailed
jr c,commandFailed