Home  Site Map  Instruction Index 

SET  -  Set Condition Instruction


The SET instruction sets a flag condition in an 8 bit Register or a memory address.

Many of these SET Instructions have the same or similar effects and therefore share the same Op Code.

This command has 2 parts, Instruction, then either a Register, or a memory address.


  • O = Overflow Flag
  • C = Carry Flag
  • S = Sign Flag
  • P = Parity Flag
  • N = Not that action
  • E = Equals
  • L = Lower than
  • G = Greater than
  • Z = Zero value
  • A = Above
  • B = Below

Syntax: SET.. 0x03 or SET.. AL etc.


Instructions in Op Code sequence

Op Code   Instruction
90SETO
91SETNO
92SETB, SETC, SETNAE
93SENB, SETNC, SETAE
94SETZ, SETE
95SETNZ, SETNE
96SETBE, SETNA
97SETA, SETNBE
98SETS
99SETNS
9ASETP, SETPE
9BSETNP, SETPO
9CSETL, SETNGE
9DSETNL, SETGE
9ESETLE, SETNG
9FSETG, SETNLE

Instructions according to use

Operates On   Instruction
CarrySETC, SETNC
OverflowSETO, SETNO
ParitySETP, SETNP, SETPE, SETPO
SignSETS, SETNS
LowerSETL, SETB, SETLE, SETNA, SETNG, SETNGE, SETNAE, SETBE
GreaterSETG, SETA, SETGE, SETNB, SETNL, SETNLE, SETNBE, SETAE
EqualSETE, SETNE
ZeroSETZ, SETNZ, SETCXZ, SETECXZ