🡄 Previous

Next 🡆

Contents > General-purpose Computer > Assembly Language

Transfer Instructions

A transfer instruction copies an 8-bit source register to an 8-bit destination register. Its format is:

T(source)(destination)

where source,destination ∈ { A, B, M, N } and sourcedestination.

Each transfer instruction corresponds to an opcode with bits 0000ssdd, where ss and dd are one of the values below.

ValueRegister
00A
01B
10M
11N

The twelve transfer instructions follow.

InstructionNamePseudocodeOpcode
TABTransfer A to BB = A;01
TAMTransfer A to MM = A;02
TANTransfer A to NN = A;03
TBATransfer B to AA = B;04
TBMTransfer B to MM = B;06
TBNTransfer B to NN = B;07
TMATransfer M to AA = M;08
TMBTransfer M to BB = M;09
TMNTransfer M to NN = M;0B
TNATransfer N to AA = N;0C
TNBTransfer N to BB = N;0D
TNMTransfer N to MM = N;0E

The transfer instructions do not affect the flags.

🡄 Previous

Next 🡆