Arithmetic Instructions 8085 8085 Microprocessor by Ravinder Nath Rajotiya - December 14, 2020May 10, 20210 Arithmetic Instructions: The different instructions under this category are listed in table below: 1 ADDReg/Mem Adds accumulator with Reg or Memory word Acc ← Acc + Reg/Mem 2 ADC Reg/Mem Adds acc with carry to Reg or Memory Acc ← Acc + Reg/Mem + Cy 3 ADI 8-bit data Adds 8-bit immediate data to Accumulator Acc ← Acc + 8-bit data 4 ACI 8-bit data Adds with carry 8-bit data to Accumulator Acc ← Acc + 8-bit data + Cy 5 DAD Rp Add Register pair to HL HL ← HL + Rp 6 SUB Reg/Mem Subtract reg/Mem from accumulator Acc ← Acc + Reg/Mem 7 SBB Reg / Mem Subtract reg/Mem from acc with borrow Acc ← Acc – Reg/Mem - Cy 8 SUI 8-bit data subtract 8-bit data from acc Acc ← Acc – 8-bit data 9 SBI 8-bit data subtract 8-bit data from acc with borrow Acc ← Acc – 8-bit data - Cy 10 INR
Instruction Set 8086 8086 Microprocessor by Ravinder Nath Rajotiya - October 14, 2020April 28, 20210 Platforms for writing 8086 assembly programs. Assembly level language program for the 8086 processors can be written in the following platforms. Directly as hex codes fed into the RAM and executed on a trainer kit DOS debug utility of windows Writing the text file in notepad or gedit and then assembling using the MASM, TASM, NASM assemblers etc. We can also write and run the program in the IDE of C or C++ Classification of instructions 8086 instructions may be classified as: Classification based on size of the instruction: As discussed in topic on instruction format 8086 instruction can be from 1 to 6 byte long. The first two bytes indicate the OPCODE and the addressing Classification based on the addressing modes: The