chapter 7 Logic, shift and rotate instructionswarda aziz
this is a solution to exercise of chapter 7 from Assembly language programming and organization of the IBM PC.
If you find any mistakes in my solution , please discuss with me. as i am also a human and can do mistakes.
Introduction of memory Segmentation
Segmentation is the process in which the main memory of the computer is logically divided into different segments and each segment has its own base address.
Memory segmentation is the methods where whole memory is divided into the smaller parts called segments of various sizes.
A segment is just an area in memory.
The process of dividing memory this way is called segmentation.
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...warda aziz
this pdf covers solution to chapter 8 and 9 of assembly language and organization of the IBM PC. if you find any mistakes in my writing , please disccuss with me.
chapter 7 Logic, shift and rotate instructionswarda aziz
this is a solution to exercise of chapter 7 from Assembly language programming and organization of the IBM PC.
If you find any mistakes in my solution , please discuss with me. as i am also a human and can do mistakes.
Introduction of memory Segmentation
Segmentation is the process in which the main memory of the computer is logically divided into different segments and each segment has its own base address.
Memory segmentation is the methods where whole memory is divided into the smaller parts called segments of various sizes.
A segment is just an area in memory.
The process of dividing memory this way is called segmentation.
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...warda aziz
this pdf covers solution to chapter 8 and 9 of assembly language and organization of the IBM PC. if you find any mistakes in my writing , please disccuss with me.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
Logical instructions in assembly language for 8086 processor. Instructions covered are AND, OR, XOR, NOT and Test instruction. Effect on flags is discussed.
Addressing mode and instruction set using 8051logesh waran
1. Immediate addressing mode:
In this type, the operand is specified in the instruction along with the opcode. In simple way, it means data is provided in instruction itself.
Ex: MOV A,#05H -> Where MOV stands for move, # represents immediate data. 05h is the data. It means the immediate date 05h provided in instruction is moved into A register.
2.Register addressing mode:
Here the operand in contained in the specific register of microcontroller. The user must provide the name of register from where the operand/data need to be fetched. The permitted registers are A, R7-R0 of each register bank. Ex: MOV A,R0-> content of R0 register is copied into Accumulator.
3. Direct addressing mode:
In this mode the direct address of memory location is provided in instruction to fetch the operand. Only internal RAM and SFR's address can be used in this type of instruction.
Ex: MOV A, 30H => Content of RAM address 30H is copied into Accumulator.
4. Register Indirect addressing mode:
Here the address of memory location is indirectly provided by a register. The '@' sign indicates that the register holds the address of memory location i.e. fetch the content of memory location whose address is provided in register.
Ex: MOV A,@R0 => Copy the content of memory location whose address is given in R0 register.
5. Indexed Addressing mode:
This addressing mode is basically used for accessing data from look up table. Here the address of memory is indexed i.e. added to form the actual address of memory.
Ex: MOVC A,@A+DPTR => here 'C' means Code. Here the content of A register is added with content of DPTR and the resultant is the address of memory location from where the data is copied to A register.
E-file or electronic file is a file processing system and also called file moving system. Open a new file, add notes, send files from person to person, store file and etc. via electronic devices.
E-file or electronic file is a file processing system and also called file moving system. Open a new file, add notes, send files from person to person, store file and etc. via electronic devices.
This project is on “E-Filling System”. The purpose of the project is faster movement of files and documents through different layers of non-government and government offices. This system used to store and track electronic documents or file. It is very effective because centralized source of information, Import Security, Cost-effectiveness, improved workflow, maximized customer satisfaction, easy retrieval and flexible search. The aim of the Electronic-file System is to execute Paperless Communication system throughout the organization. Paperless Communication helps to accommodate the system smoothly and to ensure quick disposal of proposal. However, the goal of our system is not to become a slave of paper - searching for it, filing it, approved it, storing it and losing it at inconvenient times - but rather to handle paper electronically to lower its intrinsic administrative cost.
E-file or electronic file is a file processing system and also called file moving system. Open a new file, add notes, send files from person to person, store file and etc. via electronic devices.
E-file or electronic file is a file processing system and also called file moving system. Open a new file, add notes, send files from person to person, store file and etc. via electronic devices.
NAME
Albert Einstein
PLACE OF BIRTH
March 14 1879
Ulm, Württemberg, Germany
OCCUPATION
Physicist , Scientist
EDUCATION
Luitpold Gymnasium , Eidgenossische Polytechnische Schule (Swiss Federal Polytechnic School)
PLACE OF DEATH
April 18, 1955
Princeton, New Jersey
Simulation of Queueing Systems(Single-Channel Queue).Badrul Alam
A grocery store has one checkout counter. Customer arrive at this counter at random from 1 to 8 minutes apart and each interval time has the same probability of occurrence. The service time vary from 1 to 6 minutes, with probability give below:
Definition: Sequence, Subsequence, Longest common subsequence.
Example of subsequence.
Using application details.
Lcs algorithm( Brief ).
LCS recursive solution.
Additional Information of lcs simulation.
CODE: LCS-LENGTH(H, Z, m, n).
Example of simulation.
Constructing a LCS
CODE:PRINT-LCS
Minimization or minimal DFS which means if you constructed a DFA on your own you might not get the same answer wish I got, but we get some DFA’s because some experience. Now the question is can we take any DFA and prove that or the DFA can be minimized, so that is called minimization of DFA
Introduction: A group of two or more computing devices connected via a form of communications technology. For example, a business might use a computer network connected via cobles or the internet in order to gain access to a common server or to share programs, files and other information.
Symbol of ER(Entity Relationship) diagram.Schema relationship to E-R diagram. Attribute,Multi value attributes
,Derived Attribute, Entity, Relationship, Week Entity, Identifying relationship
Pipeline processing and generation of computer.Badrul Alam
Instruction pipeline processing system is good for arithmetic and logical instruction. And also, good for multiple tasking at a single time. But has some hazards. If can possible, avoid those hazards then get good benefited for instruction pipeline processing.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
4. LOGICAL INSTRUCTION:
Logical table of and, or, xor, and not gate:
a b a AND b a OR b a XOR b
0 0 0 0 0
0 1 0 1 1
1 0 0 1 1
1 1 1 1 0
a NOT a
0 1
1 0
9. AND, OR INSTRUCTION EXAMPLE:
Example-1: Clear the sign bit of AL while leaving the other bits unchanged
Solution: Use the AND instruction with 01111111b=7FH as the mask. Thus,
AND AL,7FH
Example-2: Set the most significant and least significant bits of AL while
preserving the other bits.
Solution: Use the QR instruction with 10000001b = 81h as the mask .Thus ,
OR AL , 81h
10. CONVERTING:
• Converting an ASCII Digit to a Number:
• Converting a Lowercase to a Uppercase:
• Clearing a register:
For example ,if the “5” key is pressed, AL gets 35h instead of 5.to get 5 in
AL ,we could do this..
SUB AL , 30h
SUB DL,20h
We already know two ways to clear a resister. For example, to clear AX we
could execute..
MOV AX,0 or SUB AX ,AX
12. SHIFT INSTRUCTION: SHL AND SAL
• The SHL (shift left ) instruction shifts the bits in the destination to the left.
• A 0 is shifted into the right most bit position and the msb is shifted into CF.
0 1 1 0 0 1 0 1
00100 1
0000 0
0
CF
CF
11 1-S
2-S1111
0
0
13. SHIFT INSTRUCTION: SHR
• The instruction SHR(shift right) performs right shift on the destination operand.
• A 0 is shifted into the msb position ,and the rightmost bit is shifted into CF.
0 1 1 0 0 1 0 1
00000
000 00 0
1 1 1 1
1 1 1
1-S
2-S
CF
CF
0
0
14. SHIFT INSTRUCTION: SAR
• The SAR instruction (shift arithmetic right) operates like SHR, with one
difference: the msb retains its original value.
0 1 1 0 0 1 0 1
00000
000 00 0
1 1 1 1
1 1 1
1-S
2-S
CF
CF
15. ROTATE INSTRUCTION: ROL
• The instruction ROL (rotate left )shifts bits to the left .The msb is shifted into
the rightmost bit . The CF also gets the bit shifted out of the msb .
0 1 1 0 0 1 0 1
000 1
1000
0 1111
11111
CF
CF
1-S
2-S
16. ROTATE INSTRUCTION: ROR
• The instruction ROR (rotate right ) works just like ROL , except that the bits are
rotate to the right .The rightmost bit is shifted into the msb , and also into The CF.
0 1 1 0 0 1 0 1
00000
000 01 0
1 1 1 1
1 1 1
1-S
2-S
CF
CF
17. ROTATE INSTRUCTION: RCL
0 1 1 0 0 1 0 1
000 0
1000
1111
0111
1
0
• The instruction RCL (Rotate through carry left ) shifts the bits of the
destination to the left. The msb is shifted
into the CF, and the previous value of CF is shifted into the rightmost bit.
1-S
2-S
18. ROTATE INSTRUCTION: RCR
0 1 1 0 0 1 0 1
0000
00 00
1 1 1
1 1 1
1-S
2-S
0
1
1
1
The instruction RCR( Rotate through carry right) works just like RCL,
except that the bits are rotated to the right.
CF