Posts

RX - RC, RNC, RP, RM, RZ, RNZ, RPE, RPO

  Opcode Operand Description Rx None Call conditionally     —    The  program  sequence is  transferred  from  the subroutine   to   the   calling   program  based   on   the specified  flag  of the   PSW. —    The   two   bytes   from   the   top   of   the   stack   are   copied   into  the  program  counter,  and  program  execution begins   at the new   address. —    Example:   RZ.         Opcode Description Status Flags RC Return if Carry CY = 1 RNC Return if No Carry CY = 0 RP Return if Positive S = 0 RM Return if Minus S = 1 RZ Return if Zero Z = 1 RNZ Return if No Zero Z = 0 RPE Return if Parity Even P = 1 RPO Return if Parity Odd P = 0

RET

  Opcode Operand Description RET None Return unconditionally     —    The  program  sequence is  transferred  from   the subroutine  to  the calling   program. —    The   two   bytes   from   the   top   of   the   stack   are   copied   into  the  program  counter,  and  program  execution begins   at the new   address. —    Example:   RET.

CX - CC, CNC, CP, CM, CZ, CNZ, CPE, CPO

    Opcode Operand Description Cx 16-bit address Call conditionally     —    The  program  sequence is  transferred  to  the   memory location specified  by  the  16 -bit address  given  in the  operand  based on the specified  flag  of the   PSW. —    Before   the   transfer,  the   address   of   the   next   instruction  after  the call (the  contents  of the  program counter)  is pushed  onto  the   stack. —    Example:  CZ 20 3 4   H.         Opcode Description Status Flags CC Call if Carry CY = 1 CNC Call if No Carry CY = 0 CP Call if Positive S = 0 CM Call if Minus S = 1 CZ Call if Zero Z = 1 CNZ Call if No Zero Z = 0 CPE Call if Parity Even P = 1 CPO Call if Parity Odd P = 0

CALL

  Opcode Operand Description CALL 16-bit address Call unconditionally     —    The  program  sequence is  transferred  to  the   memory location specified by the  1 6-bit address  given  in the operand. —    Before   the   transfer,   the   address   of   the   next   instruction   after CALL (the  contents  of the  program counter)  is pushed   onto  the   stack. —    Example:  CALL 2 03 4   H.

JX- JC, JNC, JP, JM, JZ, JNZ, JPE, JPO

  Opcode Operand Description Jx 16-bit address Jump conditionally     —    The  program  sequence is  transferred  to  the   memory location specified  by  the  16 -bit address  given  in the  operand  based on the specified  flag  of the   PSW. —    Example:  JZ 20 3 4   H. Opcode Description Status Flags JC Jump if Carry CY = 1 JNC Jump if No Carry CY = 0 JP Jump if Positive S = 0 JM Jump if Minus S = 1 JZ Jump if Zero Z = 1 JNZ Jump if No Zero Z = 0 JPE Jump if Parity Even P = 1 JPO Jump if Parity Odd P = 0

JMP

  Opcode Operand Description JMP 16-bit address Jump unconditionally     —    The  program  sequence is  transferred  to  the   memory location specified  by  the  16 -bit address  given  in the operand. —    Example:  JMP 2 03 4   H.

STC

  Opcode Operand Description STC None Set carry     —    The Carry  flag  is set  to   1. —    No  other  flags  are   affected. —    Example:   STC.