|
|
| Line 1: |
Line 1: |
| [[Category:83Plus:BCALLs:By Name|ControlCmdFailed]] | | #REDIRECT [[83Plus:BCALLs:8111]] |
| [[Category:83Plus:BCALLs:By Address|80ED - ControlCmdFailed]]
| |
| == 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 ==
| |
| <nowiki>B_CALL ControlCmdFailed
| |
| jr c,commandFailed</nowiki>
| |