Remote-processing CAMBASIC Instrukcja Użytkownika Strona 173

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag