Examples

Setting COBSW to:

COBSW=+1+4

sets the programmable switches as follows:

0 off
1 on
2 off
3 off
4 on
5 off
6 off
7 off
8 off

The command:

cobrun -2+5-7+7 ./myprog

loads the program myprog.int, myprog.gnt or myprog.so from the current directory (depending on the program search order) with programmable switches 5 and 7 on and switch 2 off. Note that since the last setting of switch 7 (that is +7) is the one used, that switch is turned on. Switches 0, 1, 3, 4, 6 and 8, which are not specified, are off by default.