Transfer functions

Transfer of data between registers can only be done in one of these ways:

From register M to another register
From a register to register A
Exchange a register with A

These are the only possible transfers. Other transfers, when needed, have to be coded with several instructions, often with funny combinations of them.

Also, there are some special cases of transfer operations that are not allowed, or that have special meanings.

From register M to another register:

 Example of normal use:

B

 Transfers the contents of M into B
 Forbidden cases:

 
 (or M) would be useless
 R  
 Special cases A  Has a special meaning, and is used for constants. If one needs to transfer M into A the contents, the instruction to use is (see below)
A/   Used for constants

From a register to register A:

 Examples of normal use:

D/

 Transfers the contents of D/ into A

 
 Transfers the contents of M into A
 R  Transfers the contents of R into A
 Forbidden case: A  would be useless

Exchange register with A:

 Examples of normal use:

F/

 Exchanges F/ and A

 
Exchanges M and A
 Special cases:  R Works like R
A Has a special meaning, and is usef for absolute value (see under math operations)

The transfer insrtuctions also include the special instruction /that transfers in M the fractional part of A. All other registers are unchanged.

This page is part of the Programma 101 Web