Syntax: SUI 8-bit Where 8-bit is an immediate data operand. Byte: 2byte Addressing Mode: Immediate Addressing Working: 1. 2. 3. 4. Flag Example: SUI 11H where [A]= 22H After execution of SUI 11H [A] = 11H Program: write an ALP for 8bit subtraction of value present in Register A that is 44H with an immediate value 30H. Store result at memory location 5000H. Label Mnemonics Comments Start: SUI 30H STA 5000H Stop: HLT Output: [5000H]= 14H
Syntax: LDAX Rhp Where Rhp is higher order register the pair. (HL, BC or DE) Byte: 1byte Addressing Mode: Register Indirect Addressing Working: for execution of this instruction, microprocessor will allocate first byte for opcode and the operand is register which don't need allocation. Example: LDAX B where [C]= 50H [B] = 20 H [2050H]= 88H After execution of LDAX B [A]= 88 H
Comments
Post a Comment