The document discusses different types of instructions and addressing modes in assembly language. It explains that instructions tell the CPU to perform operations and can contain data. The main types of instructions are data movement, arithmetic/logical, program control, and I/O instructions. It then discusses the different addressing modes which specify how operands are accessed, including register, immediate, direct, indirect, relative, indexed, and based indexed addressing modes. It also provides examples of taking input and output in assembly language using interrupts.
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGFrankie Jones
3.1 UNDERSTANDING INSTRUCTION SET AND ASSEMBLY LANGUAGE
3.1.1 Define instruction set,machine and assembly language
3.1.2 Describe features and architectures of various type of microprocessor
3.1.3 Describe the Addressing Modes
3.2 APPLY ASSEMBLY LANGUAGE
3.2.1 Write simple program in assembly language
3.2.2 Tool in analyzing and debugging assembly language program
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGFrankie Jones
3.1 UNDERSTANDING INSTRUCTION SET AND ASSEMBLY LANGUAGE
3.1.1 Define instruction set,machine and assembly language
3.1.2 Describe features and architectures of various type of microprocessor
3.1.3 Describe the Addressing Modes
3.2 APPLY ASSEMBLY LANGUAGE
3.2.1 Write simple program in assembly language
3.2.2 Tool in analyzing and debugging assembly language program
Mastering Assembly Language: Programming with 8086sravanithonta79
Unlock the secrets of 8086 assembly language programming with this comprehensive document. Delve into the intricacies of low-level coding, understand the architecture, and harness the full potential of the 8086 processor. From foundational concepts to advanced techniques, this guide empowers you to craft efficient and powerful programs for the 8086 platform.
This presentation is about the knowledge of computer memory which is critically study of Registers and flags in computer organization and computer architecture.
Mastering Assembly Language: Programming with 8086sravanithonta79
Unlock the secrets of 8086 assembly language programming with this comprehensive document. Delve into the intricacies of low-level coding, understand the architecture, and harness the full potential of the 8086 processor. From foundational concepts to advanced techniques, this guide empowers you to craft efficient and powerful programs for the 8086 platform.
This presentation is about the knowledge of computer memory which is critically study of Registers and flags in computer organization and computer architecture.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
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.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
2. Instructions
Instructions are sequence of bit that tells to processor or computer CPU to
perform a particular operations
Instructions can also contain data to be used in the operation
3. Types of Instructions
Data Movement/Transfer Instructions
Arithmetic and logical instructions
Program control instructions
Input Output I/O Instructions
4. Data Transfer Instructions
The instructions used to transfer data from one component to another
component during program execution
All CPUs provide different instructions to transfer data
A programmer can use these instructions to move data in CPU
These instructions can also copy data from CPU to the main memory
EXAMPLE
mov ax, 20
5. Arithmetic and logical instructions
Addition subtraction multiplication and division are arithmetic operations
(+,-,*,/)
Example:
Add ax,bx
Sub bx,ax
Greater than, less than, equal to are logical operations (>,<,>=,<=,=,!=)
6. Program Control Instructions
The instruction are used to change the sequence of instructions of a program
These instructions transfer the execution control to a certain part of program
instead of next instruction
JUMP
JUMZ(jump if zero)
7. I/O Instructions
Every CPU provides the operations of reading data from peripheral devices
and writing data to peripheral devices
Keyboard, mouse disk
8. Print “Hello World” on Screen
mov ah, 09h ; function to display message
mov dx, offset message ; offset of message string
int 21h ; DOS interrupt
mov ah, 4ch ; function terminate
int 21h ; DOS interrupt
ENDP
message db “Hello World$”
end main
11. Status Flag Registers
There are 6 Status Flags in 8086 Processor
1) Carry Flag
2) Auxiliary Carry Flag
3) Parity Flag
4) Zero Flag
5) Overflow Flag
6) Sign Flag
12. Carry Flag Register
If 9th bit generated, then the carry flag will be 1
For example
1 0 0 1 0 0 0 1
1 0 0 1 0 0 0 1
1 0 0 1 0 0 0 1 0
13. Auxiliary Carry Flag Registers
If the 4th bit contains carry, then AC is 1
For Example
0 1 1 0 1 1 1 0
1 0 0 0 1 1 1 1
1 1 1 1 0 1 1 1
4th bit generated carry so AC=1
14. Parity Flag Registers
If number of ones in the bit are even, then parity flag is equal to one
If number of ones in the bit are odd, then parity flag is equal to zero
For example
0 1 1 0 1 1 1 0
0 0 0 0 1 1 1 1
0 1 1 1 0 1 1 1
0 1 1 0 1 1 1 0
1 0 0 0 1 1 1 1
1 1 1 1 0 1 1 1
The number of ones are even so PF=1 The number of ones are odd so PF=0
16. Overflow Flag Registers
If the bit are in the range -128 to 127 then OF=0 otherwise OF=1
Example
Bin=0110 1010, Hex = 6A
𝟎 × 𝟐𝟕 + 𝟏 × 𝟐𝟔 + 𝟏 × 𝟐𝟓 + 𝟎 × 𝟐𝟒 + 𝟏 × 𝟐𝟑 + 𝟎 × 𝟐𝟐 + 𝟏 × 𝟐𝟏 + 𝟎 × 𝟐𝟎 = 𝟏𝟎𝟔
Is in range so OF Register = 0
Example
Bin=1010 1010, Hex=AA
𝟏 × 𝟐𝟕
+ 𝟎 × 𝟐𝟔
+ 𝟏 × 𝟐𝟓
+ 𝟎 × 𝟐𝟒
+ 𝟏 × 𝟐𝟑
+ 𝟎 × 𝟐𝟐
+ 𝟏 × 𝟐𝟏
+ 𝟎 × 𝟐𝟎
= 𝟏𝟕𝟎
Is out of range so OF Register = 1
17. Sign Flag Register
After any operation if the MSB(Most Significant Bit) is 1, then it indicates that
the number is negative
And sign flag is set to 1
19. Control Flag Registers
There are 3 Control Flag in 8086 processors
1. Trap Flag
2. Interrupt Enable Flag
3. Direction Flag
20. Trap Flag (TF)
It is used to set the trace mode i.e. start single stepping mode
Here the microprocessor is interrupted after every instruction so that the
program can be debugged
21. Interrupt Enable Flag (IF)
It is used to mask (disable) or unmask (enable) the INTR interrupt
If users sets IF flag, the CPU will recognize external interrupt requests.
Clearing IF disables these interrupts
22. Direction Flag (DF)
If this flag is set, SI and DI are in auto-decrementing mode in string operations
26. Basic Structure of Assembly Language
.mode small ; Define size of program
.stack 100h ; Define Storage of stack
.data ; Define Variable here
.code ; Write Assembly Program
Main Proc ; Write specific task/procedure here
.
.
.
Main End ; End procedure here
End Main ; End program here
27. Basic Structure of Assembly Language
.model small ; Model directive
Tiny Data+Code Space:<=64kb
Small Data+Code Space:Data<=64kb and code<=64kb
Medium Data+Code Space:Data<=64kb and code<=Any size
Compact Data+Code Space:Data<=Any size and Data<=64kb
Large Data+Code Space:Data<=Any size and Data<=Any size
Huge Data+Code Space:Data<=Any size and Data<=Any size
Continue
Data
Code
RAM
28. Write a program to print single character on
screen and multiple character on screen in
Assembly Language
.model small
.data
.code
main proc
mov dl, "A"
mov ah,2
int 21h
mov ah,4ch
int 21h
main endp
end main
Single Character Program
29. Write a program to print single character on
screen and multiple character on screen in
Assembly Language
.model small
.data
.code
main proc
mov dl, "M"
mov ah,2
int 21h
mov dl, "P"
mov ah,2
int 21h
mov dl, "G"
mov ah,2
int 21h
mov dl,"C"
mov ah,2
int 21h
mov ah,4ch
int 21h
main endp
end main
Multiple Character Program
30. Addressing Mode
The way in which operands are specified
Ways or model to access data is called addressing modes
The term addressing modes refers to the way in which the operand of an
instruction is specified
The operand may be mentioned directly or specified in register or memory
31. What is addressing mode?
Addressing mode are different ways by which CPU can access data or operands
They determine how to access a specific memory address
To load any data from and to memory/register, MOV instruction is used
The syntax of MOV instruction is:
MOV destination, Source
32. Mov instruction addressing mode?
The MOV instruction copies a byte or a word from source to destination
Both operands should be of same type either byte or a word
The syntax of MOV instruction is:
MOV destination, source
Example
Mov ax,10
33. Types of addressing mode
Register addressing mode
Immediate addressing mode
Direct addressing mode
Register indirect addressing mode
Based relative addressing mode
Indexed relative addressing mode
Based indexed addressing mode
34. Register addressing mode
This mode involves the use of register
These registers hold the operands
This mode is very fast as compared to others because CPU doesn’t need to
access memory
CPU can directly perform an operation through registers
Example
MOV AX,BX AX=BX
35. Immediate Addressing Mode
In this mode, there are two operands
One is a register and the other is a constant value
The register comes quickly after the OP code
Example
MOV AX, 405H AX=405H
MOV BX, 255 BX=255
36. Direct Addressing Mode
Loads or stores the data from memory to register
The instruction consists of a register and offset address
Example
MOV AX, [ADDRESS]
37. Register Indirect Addressing Mode
The register indirect addressing mode uses the offset address which resides in
one of these registers i.e. BX,SI,DI.
The instruction consists of a register and offset address
Example
MOV AX, [ADDRESS]
38. Based Relative Addressing Mode
This addressing mode uses a base register either BX or BP and a displacement
value to calculate physical address
Physical Address = Segment Register (Shifted to left by 1) + Effective address
Example
MOV [AX+4], BX
39. Indexed Relative Addressing Mode
This addressing mode is same as the based relative addressing mode
The only difference is it uses DI and SI registers instead of BX and BP registers
Example
MOV [DI]+12, BX
40. Based Indexed Addressing Mode
The based indexed addressing mode is actually a combination of based
relative addressing mode and indexed relative addressing mode
It uses one base register (BX,BP) and one index register (SI,DI)
Example
MOV AX,[BX+SI+10]
41. How to take input and output in
assembly language
.mode small
.data
.code
main proc
Mov ah, 1 : 1 is used for output
Int 21h
Mov dl, al
Mov ah, 2 :2 is used for output
Int 21h
main endp