SUI
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
Comments
Post a Comment