Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME TAS -- Test and set operand
SYNOPSIS
TAS<ea>
Size = (Byte)
FUNCTION Test of a byte addressed by <ea>, bits N and Z of SR are set according to result of test. Bit 7 of byte is set to 1. This instruction uses read-modify-write cycle, which is not dividable and allows synchronisation of several processors. But this instruction is NOT ALLOWED ON AMIGA! This instruction can easily be substituted by BSET.
FORMAT
1514131211109876543210
0100101011MODEREGISTER
 <ea>
REGISTER <ea> is destination, addressing modes are the following:
Addressing ModeModeRegister
Dn000No 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--
RESULT
X-Not affected.
N-Set if MSB of byte is set. Cleared otherwise.
Z-Set if byte is zero. Cleared otherwise.
V-Always cleared.
C-Always cleared.


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