Set in Python PYTHON by Ravinder Nath Rajotiya - April 10, 2022April 11, 20220 SETS in PYTHON A set is an unordered collection of items. Every element of a set is unique, i.e. there are no duplicate. A set itself is a mutable i.e. we can add or remove items in a set. Items of a set are immutable i.e. we cannot modify items of a set using its index. A set is declared using {} or in-built set() function How many items in a set: A set can have any number of integer, float, tuple, string types etc s={3,5,”Hello”, 3.14} What cannot be in a set: A set cannot have mutable elements like lists, sets or dictionaries as its elements. So it will be wrong to create a set: >>>s={3,5, [6,7], 3.14} error – set cannot have list as the set
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
Experiment Number 1 8086 Programming by Ravinder Nath Rajotiya - April 19, 2019May 25, 20220 AIM :Write a program to add and subtract two 16-bit numbers with/ without carry using 8086 Objective: To understand working of 8086 Based System. To draw flowchart of the 16-bit Addition To develop and execute program, To verify the result of two 16-bit long number. System Requirement : 8086 Trainer Kit with Key Board Setting up the Trainer Kit: Ensure that standard IBM PC/AT system keyboard is connected System is Powered ON Student has a handy opcode table for programming Use data Address as : For Program Code segment address : 1000 Offset address : 0200 For Data segment address 0000 offset address : 1300 Flowchart to Add two 16-bit numbers: Algorithm: Start Initialize the BX, and SI Registers Read the contents of the memory