Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME BSET -- Bit set
SYNOPSIS
BSETDn,<ea>
BSET#<data>,<ea>
Size = Byte, Long
FUNCTION Tests a bit in the destination operand and sets the Z condition code appropriately, then sets the bit in the destination.
If the destination is a data register, any of the 32 bits can be specifice by the modulo 32 number. When the distination 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 BSET Dn,<ea>:
1514131211109876543210
0000REGISTER111MODEREGISTER
 <ea>
In the case of BSET #<data,<ea>:
 <ea>
1514131211109876543210
0000100011MODEREGISTER
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