Atari Logo
Atari Computer

Hauptseite -
Welches System? -
Hardware -
Software -
Emulatoren -
Internet
MausNet
Programmieren
Verweise
Über

Assembler

Previous Next TOC

NAME BCHG -- Bit change
SYNOPSIS
BCHGDn,<ea>
BCHG#<data>,<ea>
Size = Byte, Long
FUNCTION Tests a bit in the destination operand and sets the Z condition code appropriately, then inverts the bit in the destination. If the destination is a data register, any of the 32 bits can be specified by the modulo 32 number. When the destination is a memory location, the operation must be a byte operation, and therefore the bit number is modulo 8. In all cases, bit zero is the least significant bit. The bit number for this operation may be specified in either of two ways:
  1. Immediate -- The bit number is specified as immediate data.
  2. Register -- The specified data register contains the bit number.
FORMAT In the case of BCHG Dn,<ea>:
1514131211109876543210
0000REGISTER101MODEREGISTER
 <ea>

In the case of BCHG #<data,<ea>:
 <ea>
1514131211109876543210
0000100001MODEREGISTER
00000000NUMBER OF THE BIT

REGISTER <ea> is always destination, addressing modes are the following:
Addressing ModeModeRegister
Dn *000No reg. Dn
An--
(An)010No reg. An
(An)+011No reg. An
-(An)100No reg. An
(d16,An)101No reg. An
(d8,An,Xi)110No reg. An
(bd,An,Xi)110No reg. An
([bd,An,Xi]od)110No reg. An
([bd,An],Xi,od)110No reg. An
Addressing ModeModeRegister
Abs.W111000
Abs.L111001
(d16,PC)--
(d8,PC,Xi)--
(bd,PC,Xi)--
([bd,PC,Xi],od)--
([bd,PC],Xi,od)--
#data--
* Long only; for others modes: Byte only.
RESULT
X-not affected
N-not affected
Z-Set if the bit tested is zero. Cleared otherwise.
V-not affected
C-not affected


Best viewed with any browser English version not yet available.

Änderungen und Irrtümer vorbehalten. Letzte Änderung:
14 September 2001.
Home - Mail an den Webmaster - Impressum