Remote-processing CAMBASIC Manual do Utilizador Página 121

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 208
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 120
Commands - 88
ON ITR
Tasking Statement
SYNTAX: ON ITR n GOSUB line/label
ON ITR n GOSUB
PURPOSE: To enable or disable a progr am br anch due to an hardw are inter rupt.
REMARK S: Check your hardware manual to determine if this statement is active for your card. It is not active
for the RPC-2300 or RPC-150.
n = 0 or 1. These correspond to ITR 0 and IT R 1 as descr ibed in the har dwar e manual.
The ON ITR statement traps a hardware interrupt so software can service it. When a hardware
interrupt occurs, it sets an internal flag and that. interrupt is disabled. If an appropriate ON ITR has
been declared, a program branch will occur.
Hardware interrupts will remain disabled until a corresponding RETURN ITR statement has been
executed. If the subroutine ends with just a RETURN, the interrupt remains disabled. You can
cancel an ON ITR at any time by executing the statement without a line number.
NOTE: Not all hardware pr oducts implement a hardware interr upt. See your C PU card user’s
manual.
RELATED: RETURN ITR
EXAMPLE: 10 ON ITR 0 GOSUB..clock
20 .
30 .
40 .
50 ..clock
60 BIT 1,1,OFF 'turn whatever off
70 RETURN ITR 0
ERRORS: < Can’t compile> if line/label does not exist
< Command not available> if not implemented on your card
< Data out of range> - when n is not 0 or 1
Vista de página 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 207 208

Comentários a estes Manuais

Sem comentários