R.O.M.E.68000 Home
Prev. Table of Cont. Help Similar Instr.

This is the R.O.M.E.68000 Manual version 0.51.
This is an experimental version.
Copyright © 1997 by G. Mezzetti; last update: January 1, 1999.


Ordinary Instructions of the ``Control'' Class

ConFront PoinTers

Mnemonic:
CFPT
Operands:
A,B

Oper. Addressing Group Op. Use Mult. Op.
A dadr d -
B dadr e -

Instruction Key:
1E
Formal Description:

(B + @(B)) - (A + @(A)) --> B.
   {Subtract the address of the location pointed at by A}
   {from the address of the location pointed at by B;}
   {puts in B the offset obtained in this way.}

Informal Description

This instructions calculates the offset (as an integer modulus 65536) of the two locations pointed at by its operands (the order is B - A), and puts it in B. Note that the pointer initially found in B is overwritten, so it should be a copy that you created previously, for instance with MVPT.


Prev. Table of Cont. Help Similar Instr.

Gustavo MEZZETTI  /  mezzetti@math.unipd.it