Assembly language programming introduction.pptx

HumairaNeha1 17 views 16 slides Jul 11, 2024
Slide 1
Slide 1 of 16
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16

About This Presentation

assembly language programming


Slide Content

A ssembly L anguage P rogramming - i ntroduction

Program Development Steps 2 Defining the problem Representing Program Operation Flowchart (checkout the book’s examples) Structured Programming and Pseudocode Overview Three basic operations(sequence, decision, iteration) Finding the Right Instruction Writing the Program

Addressing mode Addressing Modes – The term addressing modes refers to the way in which the operand of an instruction is specified. MOV destination, source 1. Immediate addressing mode MOV CX, 437BH 2. Register Addressing mode MOV CX, AX 3. Direct Addressing Mode MOV BL, [1000H] or MOV AX,DS:[1000H] MOV BX, [437AH] 4. Register Indirect Addressing e.g : MOV AX,[BX]

Constructing the Machine Codes for 8086 instructions 4

Coding Template for 8086 instruction

Instruction codes for 8086 registers 6

MOD and R/M bit pattern for 8086 instruction 7

Appendix A MOV, IN, OUT, ADD, ADC, INC, AAA, DAA, SUB, DEC, CMP, MUL, DIV, AND, OR, NOT, XOR, CALL, JMP, RET, LOOP

MOV SP, BX

MOV SP, BX

MOV CL, [BX]

MOV 43H[SI], DH

MOV CX, [437AH]

Naming Address- Labels NEXT: MOV AL, 02H . . . . . . . . . . . . JMP NEXT

References Microprocessors and Interfacing: Programming and Hardware Douglas V. Hall

Thank You
Tags