WinLpt (WndLpt)

Intro

Application

Vis Plugin

Screenshots

History

Downloads

Lpt Tools

SDK

Script

Basic syntax

All Instructions

Extended syntax

Additional rules

Hardware

LED-to-LPT connection

Panel map

Arduino

Lpt Tools

LPT Buttons

Stroboscope

EasyDrive

LptPort

Other

Mark As Good

Unmark bad clusters

XOR, INV, EOR, ~

Invert specified pins. Logical EOR. (Exclusive OR)

Syntax

xor [<mask> [count]]
inv [<mask> [count]]
eor [<mask> [count]]
~ [<mask> [count]]

Parameters

<mask>
  • 1) Sequense of 0 or 1, for ex. 111000111000.
  • 2) Enum of bit-numbers at bracket, for ex. (1), (2,3,4) or (8,12,5,11), its accordingly to 100000000000, 011100000000 or 000010010011. First left bit is 1 (but not zero).

count
  • Decimal number from 2 to 100, tells how many times next command or block will be retried.

Example 0

sleeps 500 ; Set sleeps = 500 ms
 
101010101010
 
CYCLE:
 
xor
 
goto CYCLE
exxor.mlh_b.gif
exxor.sqr_p.gif

Example 1

sleeps 500 ; Set sleeps = 500 ms
 
off        ; Set all outputs to LOW
 
CYCLE:     ; Deine Label
 
xor 10101010 4 ; Do EOR for 4 times
~ 101010 4     ; Do EOR for 4 times
~ (1,3) 4  ; Do EOR for 4 times
~ (1)      ; Do EOR for bit 1
~1         ; Do EOR for pointed bit
~1 2       ; Do EOR for pointed bit for 2 times
 
goto CYCLE ; Infinite cycle
exxor1.mlh_r.gif