English
Language : 

S3CK225 Datasheet, PDF (100/256 Pages) Samsung semiconductor – CalmRISC 8-Bit CMOS MICROCONTROLLER
INSTRUCTION SET
S3CK225/FK225
BITR — Bit Reset
Format:
Operation:
Flags:
NOTE:
Example:
BITR adr:8.bs
bs: 3-digit bit specifier
R3 ← ((adr:8) & ((11111111)2 - (2**bs))) if (TF == 0)
(adr:8) ← ((adr:8) & ((11111111)2 - (2**bs))) if (TF == 1)
BITR resets the specified bit of a value read from memory and stores the result in R3 or back
into memory, depending on the value of TF. TF is set or clear by BMS/BMC instruction.
Z: set if result is zero. Reset if not.
Since the destination register R3 is fixed, it is not specified explicitly.
Given: IDH = 01, DM[0180h] = FFh, eid = 1
BMC
BITR
80h.1
// TF ← 0
// R3 ← FDh, DM[0180h] = FFh
BMS
BITR
80h.2
// TF ← 1
// DM[0180h] ← FBh
7-36