Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->JMP

JMP                     Jump

Jump to Sum of Accumulator and Data Pointer:

Control passes to the address calculated by adding the unsigned contents of the accumulator to the 16 bit data pointer.  Neither the accumulator nor the data pointer are affected.

No flags are affected.

Generic Jump:

This instruction is translated by the assembler into either AJMP, SJMP or LJMP depending on the call address.  If the address contains no forward references and the address falls within the range +128 and -127 the instruction is translated into SJMP.  If the address contains no forward references and the address falls within the current 2K page, then the instruction is translated into AJMP.  Otherwise it is translated into LJMP.

Formats:
    
DescriptionMnemonicBytesCycles
    
Jump:JMP @A+DPTR12
Generic Jump:JMP <code address>See AJMP, LJMP and SJMP