In 8085 Instruction set, we are having one mnemonic JC a16, which stands for “Jump if Carry” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present carry flag value is 1.If carry flag value is 0, program flow continues sequentially. It is a 3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJC LabelDA3Let us consider one example of this instruction type JC 4000H. It is a 3-Byte instruction. The result of execution of this instruction ... Read More
In 8085 Instruction set, we are having one mnemonic JNZ a16, which stands for “Jump if Not Zero” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present zero flag value is 0. If zero flag value is 1, program flow continues sequentially. It is a 3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJNZLabelC23Let us consider one example of this instruction type JNZ 4000H. It is a 3-Byte instruction. The result of execution of this ... Read More
In 8085 Instruction set, we are having one mnemonic JZ a16, which stands for “Jump Zero” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present zero flag value is 1. If the zero flag value is 0, program flow continues sequentially. It is a 3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJZ LabelCA3Let us consider one example of this instruction type JZ 4000H. It is a 3-Byte instruction. The result of execution of this instruction ... Read More
In 8085 Instruction set, we are having one mnemonic JPO a16, which stands for “Jump if Parity Odd” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present parity flag value is 0. If parity flag value is 1, program flow continues sequentially. It is a 3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJPO LabelE23Let us consider one example of this instruction type JPO 4000H. It is a 3-Byte instruction. The result of execution of ... Read More
In 8085 Instruction set, we are having one mnemonic JPE a16, which stands for “Jump if Parity Even” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present parity flag value is 1. If the parity flag value is 0, program flow continues sequentially. It is a 3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJPE LabelEA3Let us consider one example of this instruction type JPE 4000H. It is a 3-Byte instruction. The result of execution ... Read More
The atexit module in the standard distribution of Python has two functions – register() and unregister(). Both functions take some existing function as an argument. Registered functions are executed automatically when the interpreter session is terminated normally.If more than one functions are registered, their execution is in the reverse order of registration. It means, functions f1(), f2() and f3() are registered one after other, their order of execution will be f3(), f2() and f1().The unregister() function removes the specified function from list of functions to be automatically invoked.Following code shows how a function is registered for automatic execution upon termination ... Read More
The Timer class and other convenience functions in timeit module of Python's standard library are designed to provide a mechanism to measure time taken by small bits of Python code to execute. The module has a command line interface and the functions can be called from within program as well.Easiest way to measure time of execution is by using following convenience functiontimeit()This function returns object of Timer class. It mainly requires two parameters.stmt − a string containing valid Python statement whose execution time is to be measured.setup − a string containing Python statement which will be executed once, primarily to ... Read More
In software development jargon, 'debugging' term is popularly used to process of locating and rectifying errors in a program. Python's standard library contains pdb module which is a set of utilities for debugging of Python programs.The debugging functionality is defined in a Pdb class. The module internally makes used of bdb and cmd modules.The pdb module has a very convenient command line interface. It is imported at the time of execution of Python script by using –m switchpython –m pdb script.pyIn order to find more about how the debugger works, let us first write a Python module (fact.py) as follows ... Read More
In 8085 Instruction set, we are having one mnemonic JP a16, which stands for “Jump if Positive” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present sign flag value is 0. If the sign flag value is 1, program flow continues sequentially. It is a3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJPLabelF23Let us consider one example of this instruction type JP 4000H. It is a 3-Byte instruction. The result of execution of this instruction ... Read More
In 8085 Instruction set, we are having one mnemonic JM a16, which stands for “Jump if Minus” and “a16” stands for any 16-bit address. This instruction is used to jump to the address a16 as provided in the instruction. But as it is a conditional jump so it will happen if and only if the present sign flag value is 1. If the sign flag value is 0, program flow continues sequentially. It is a3-Byte instruction.Mnemonics, OperandOpcode(in HEX)BytesJM LabelFA3Let us consider one example of this instruction type JM 4000H. It is a 3-Byte instruction. The result of the execution of ... Read More