Remote-processing CAMBASIC Manuale Utente Pagina 173

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 208
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 172
Commands - 140
XOR
Numeric Fun ction
SYNTAX: n = a XOR b
PURPOSE: Performs bitwise XOR operation on two numbers. XOR'ing is usually performed during I/O
operations to toggle a line.
REMARK S: Variables a and b are in the range of 0 to 65,535 (&FF FF). When printed, numbers greater than
32768 are negative.
RELATED: OR,AND
EXAMPLE: 10 A = INP(0) :'get current status of port
20 A = A XOR 2 :'Toggle bit number 1
30 OUT 0,A :'output new status
40 PRINT A
RUN
8
ERROR: none
Vedere la pagina 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 207 208

Commenti su questo manuale

Nessun commento