beautypg.com

Move c, #1, Move dst., #0, Move dst., #1 – Maxim Integrated MAXQ Family User Manual

Page 195: Move c, #1 -18, Move dst., #0 -18, Move dst., #1 -18, Maxq family user’s guide

background image

18-18

MAXQ Family User’s Guide

MOVE C, #1

Set Carry Flag

Description:

Sets the Carry (C) processor status flag.

Status Flag:

C

← 1

Operation:

C

← 1

Encoding:

15

0

Example(s):

; C = 0

MOVE C, #1

; C

← 1

MOVE dst., #0

Clear Bit

Description:

Clears the bit specified by dst..

Status Flags:

C, E (if dst is PSF), S, Z

Operation:

dst.

← 0

Encoding:

15

0

Example(s):

; M0[0] = FEh

MOVE M0[0].1, #0

; M0[0] = FCh

MOVE M0[0].7, #0

; M0[0] = 7Ch

Special Notes:

Only system module 8 and peripheral modules (0-5) are supported by MOVE dst., #0.

MOVE dst., #1

Set Bit

Description:

Sets the bit specified by dst..

Status Flags:

C, E (if dst is PSF), S, Z

Operation:

dst.

← 1

Encoding:

15

0

Example(s):

; M0[0] = 00h

MOVE M0[0].1, #1

; M0[0] = 02h

MOVE M0[0].7, #1

; M0[0] = 82h

Special Notes:

Only system module 8 and peripheral modules (0-5) are supported by MOVE dst., #1.

1101

1010

0001

1010

1ddd

dddd

0bbb

0111

1ddd

dddd

1bbb

0111

Maxim Integrated