Syntax: ACI 8-bit Where 8-bit is an immediate value. Byte: 2 byte Addressing Mode: Immediate Addressing Working: 1. 2. 3. 4. Flag Example: ACI 22H where [c flag] = 1 And [A]= 11H After execution of ACI 22H [A] = 34H Program: write an ALP for addition of Register A that is 44H and carry flag is 1 with immediate value 30H. Store result at memory location 5000H. Label Mnemonics Comments Start: ACI 30H ; a= a+cy+ 30h...a= 75h STA 5000H Stop: HLT Output: [5000H]= 75H
Syntax: INR R Where R can be any of the general purpose registers (A,B,C,D,E,H andL) Byte: 1byte Addressing Mode: Register Addressing Working: 1. 2. 3. 4. Flag Example: INR B Where [B]= 10H After execution of INR B [B]= 11H
Comments
Post a Comment