In 8085 Instruction set, RZis a mnemonic, which stands for “Return if Zero”. This instruction is used to return to the main program, only if the Z flag value is 1. If Z flag value is 0, program flow continues in the subroutine sequentially. It is a 1-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesRZC81Let us consider the following sample code for a better explanation –AddressHex CodesMnemonicComment200031LXI SP, 5000HSP ← 5000H.Initializing the SP200100Low order Byte of the address200250High order Byte of the address200321LXI H, 4050HHL ← 4050H, Initializing the HL register pair200450Low order Byte of the address200540High order Byte of the address2006CDCALL 200BHCalling the ... Read More
In 8085 Instruction set, RPO is a mnemonic, which stands for “Return if Parity Odd”. This instruction is used to return to the main program, only if Z flag value is 0. If Z flag value is 1, program flow continues in the subroutine sequentially. It is a 1-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesRNZE01Let us consider the following sample code for a better explanation –AddressHex CodesMnemonicComment200031LXI SP, 5000HSP ← 5000H.Initializing the SP200100Low order Byte of the address200250High order Byte of the address200321LXI H, 4050HHL ← 4050H, Initializing the HL register pair200450Low order Byte of the address200540High order Byte of the address2006CDCALL 200BHCalling ... Read More
In 8085 Instruction set, RP is a mnemonic, which stands for “Return if Positive”. This instruction is used to return to the main program, only if S flag value is 0. If S flag value is 1, program flow continues in the subroutine sequentially. It is a 1-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesRNZF01Let us consider the following sample code for a better explanation –AddressHex CodesMnemonicComment200031LXI SP, 5000HSP ← 5000H.Initializing the SP200100Low order Byte of the address200250High order Byte of the address200321LXI H, 4050HHL ← 4050H, Initializing the HL register pair200450Low order Byte of the address200540High order Byte of the address2006CDCALL 200BHCalling the ... Read More
In this program, we will see how to move blocks of data from one place to another.Problem StatementWrite 8085 Assembly language program to move a data block. The blocks are assumed to be overlapping. The block size is given, the block is starting from Xand we have to move it to the location Y.DiscussionThe overlapping block movement is tricky; we need to use some special tricks to move a block in overlapping address locations. Here the block is starting at position X, we have to move it to position Y. The location Y is inside the block. So Y < ... Read More
In this program, we will see how to check the 4th bit of an 8-bit number.Problem StatementWrite 8085 Assembly language program to check whether the fourth bit of a byte is 0 or 1.When it is 0, store 00H at any specified location, and when it is 1, store FFH at the specified location.DiscussionWe are considering the 8-bit number, and storing 00H or FFH by checking the 4th bit on the number from left. The logic behind it is very simple. We are just performing bit-wise and operation on the given data with 08H. If the result is non-zero, then the 4th ... Read More
Women in today’s world are taking major positions in different sectors and are performing extraordinarily well in their work roles. The contribution of women is extremely crucial for the inclusive economic development of the country. The principle of Gender Equality is enshrined in our constitution and the feminist movement in the late 1970s strengthened the concept. If we want women to succeed in their work lives, it is important to create a safe atmosphere for a woman to give a holistic contribution. Let's know how:Infrastructure FacilitiesIt is extremely important to keep the infrastructure facilities extremely strong in any workplace. Proper ... Read More
In this program, we will see how to multiply two 8-bit numbers using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to multiply two 8-bit numbers stored in a memory location and store the 16-bit results into the memory.DiscussionThe 8085 has no multiplication operation. To get the result of multiplication, we should use the repetitive addition method. After multiplying two 8-bit numbers it may generate 1-byte or 2-byte numbers, so we are using two registers to hold the result.We are saving the data at location 8000H and 8001H. The result is storing at location 8050H and 8051H.InputAddressData......8000DC8001AC......Flow DiagramProgramAddressHEX CodesLabelsMnemonicsCommentsF00021, 00, 80LXI H, ... Read More
Using mnemonics without any alteration in the content, data can be transferred in three different cases – From one register to another registerFrom the memory to the register andFrom the register to the memoryThese can be guided by addressing modes. Addressing modes in 8085 can be classified into 5 groups −Immediate addressing modeRegister addressing modeDirect addressing modeIndirect addressing modeImplied addressing modeImmediate addressing modeIn this mode, the 8/16-bit data is specified in the instruction itself as one of its operands. For example MVI E, ABH means ABH is copied into register A.MVI E ABHBeforeAfter(A)Any valueABHAs an example, if we consider instruction MVI E, ... Read More
Life is no longer a simple journey. It is complex and tiring and requires a lot of work to be completed within a short spell of time to meet arduous deadlines. Hence, it is extremely important to understand the tricks and hacks in the art of multi-switching rather than multi-tasking which helps a person do many things in one day with dedication and concentration in totality.Make A Schedule and Write It DownMany people fail to deal with multiple affairs at the same time and get stressed out due to the simple reason of not scheduling it properly. Write it in ... Read More
‘Education is the most powerful weapon which you can use to change the world.’ – Nelson Mandela.There is no denial of the fact that education plays an extraordinary role in a person’s life to develop proper intelligence as well as an emotional quotient. Hence, our constitution also makes a provision for providing free and compulsory education under Article 21 (A) which also expands the horizon of Right to life.This is mainly because education enhances the life of any individual. It is only through right education and a right to an education that helps in developing the essential knowledge and required ... Read More