•  Back 
  •  Instruction Set 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : MC56001 Documentation
Author      : JAY Software
Version     : 1.0 (19/11/1997)
Subject     : Programming/Assembler
Nodes       : 152
Index Size  : 4106
HCP-Version : 4
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : 
@help       : 
@options    : -i +y +z -t4
@width      : 100
View Ref-FileCLR                     Clear Accumulator

Operation:
    0 -> D              (parallel move)

Assembler Syntax:
    CLR D               (parallel move)

Description:
    Clear the destination accumulator. This is a 56-bit clear instruction.

Example:
    CLR A   #$7F,N0     ;clear A, set up N0 addr. reg.

    Before Execution:
        A = $12:345678:9ABCDE

    After Execution:
        A = $00:000000:000000

Explanation of Example:
    Prior to execution, the 56-bit A accumulator contains the value
$12:345678:9ABCDE. The execution of the CLR A instruction clears the
56-bit A accumulator to zero.

Condition Codes:

     15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |LF|**| T|**|S1|S0|I1|I0|**| L| E| U| N| Z| V| C|
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    |<-           MR         ->|<-       CCR      ->|

    L- Set if data Limiting has occured during parallel move
    E- Always cleared
    U- Always set
    N- Always cleared
    Z- Always set
    V- Always cleared

Instruction Format:
    CLR D

    D = (A,B)

Timing:     2 + mv oscillator clock cycles

Memory:     1 + mv program words