Motorola HC12 Refrence Manual page 108

Table of Contents

Advertisement

BSET
(M) + (Mask) ⇒ M
Operation:
Description:
Sets bits in memory location M. To set a bit, set the corresponding bit in
the mask byte. All other bits in M are unchanged. The mask byte can be
located at PC + 2, PC + 3, or PC + 4, depending upon addressing mode.
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
Addressing Modes, Machine Code, and Execution Times:
Source Form
BSET opr8a, msk8
BSET opr16a, msk8
BSET oprx0_xysp, msk8
BSET oprx9,xysp, msk8
BSET oprx16,xysp, msk8
Notes:
1. Indirect forms of indexed addressing cannot be used with this instruction.
MOTOROLA
6-48
Set Bit(s) in Memory
X
H
I
N
Z
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
0; Cleared.
1
Address Mode
DIR
EXT
IDX
IDX1
IDX2
INSTRUCTION GLOSSARY
V
C
0
Object Code
4C dd mm
1C hh ll mm
0C xb mm
0C xb ff mm
0C xb ee ff mm
BSET
Cycles
Access Detail
4
rPOw
4
rPPw
4
rPOw
4
rPwP
6
frPwOP
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents