SEB

SEB R[x], R[y],b - Set Bit

 

Operating Mode

                                 

R[x] := R[y]15R[y]14...R[y]b+1 1 R[y]b-1........R[y]0

          

PC := PC + 1

 

Description

 

Takes register R[y], sets Bit at position b and saves result to register R[x].

 

Status Register

 

Zero - Bit := 0

 

Binary Command

15 14 13 12 11

10 9 8

7

 6

5 4 3

2 1 0

10010

Adr(x)

-

b3

Adr(y)

b2 b1 b0

Example

 

SEB R[5], R[2],5

15 14 13 12 11

10 9 8

7

 6

5 4 3

2 1 0

10010

101

-

0

010

101

Note
Arithmetic and Logical Commands always affect the Status Bits Carry and Zero.
After any Logical Command the Carry Bit is set to 0.