RegMove.w
Previous  Next

Description: Copies a 68K register into a BASIC variable or to a 68K register. The data used is a word.

     Syntax:
     
RegMove.w <Source>, <Destination>

Part
Description
<Source>
Required. The source can be a BASIC variable or a 68K register. 68K registers are d0 to d7 and a0 to a7.
<Destination>
Required. The destination can be a BASIC variable or a 68K register. 68K registers are d0 to d7 and a0 to a7.

Notes: The <Source> and the <Destination> cannot be both BASIC variables or 68K registers. The <Source> must be a BASIC variable if the <Destination> is a 68K register,and vice versa.

Example:

        a = 0
        b = 9
        Print "Before: "; a
        RegMove.w b, d0
        RegMove.w d0, a
        Print "After: "; a