Download Print this page

Samsung S3C8248 User Manual page 124

8-bit cmos

Advertisement

S3C8248/C8245/P8245/C8247/C8249/P8249
BAND
— Bit AND
BAND
dst,src.b
BAND
dst.b,src
dst(0) ← dst(0) AND src(b)
Operation:
dst(b) ← dst(b) AND src(0)
The specified bit of the source (or the destination) is logically ANDed with the zero bit (LSB) of
the destination (or source). The resultant bit is stored in the specified bit of the destination. No
other bits of the destination are affected. The source is unaffected.
Flags:
C: Unaffected.
Z: Set if the result is "0"; cleared otherwise.
S: Cleared to "0".
V: Undefined.
D: Unaffected.
H: Unaffected.
Format:
opc
opc
NOTE: In the second byte of the 3-byte instruction formats, the destination (or source) address is four
Examples:
Given: R1 = 07H and register 01H = 05H:
BAND R1,01H.1
BAND 01H.1,R1
In the first example, source register 01H contains the value 05H (00000101B) and destination
working register R1 contains 07H (00000111B). The statement "BAND R1,01H.1" ANDs the bit 1
value of the source register ("0") with the bit 0 value of register R1 (destination), leaving the
value 06H (00000110B) in register R1.
or
src
dst | b | 0
dst
src | b | 1
bits, the bit address 'b' is three bits, and the LSB address value is one bit in length.
Bytes
3
3
R1 = 06H, register 01H = 05H
Register 01H = 05H, R1 = 07H
INSTRUCTION SET
Cycles
Opcode
(Hex)
6
67
6
67
Addr Mode
dst
src
r0
Rb
Rb
r0
6-17

Advertisement

loading

This manual is also suitable for:

C8245P8245C8249C8247P8249