Docsity

Computer Organization and Assembly Language: Bus Organization, Data Types, and Variables, Schemes and Mind Maps of Assembly Language Programming

Partial preview of the text

Download Computer Organization and Assembly Language: Bus Organization, Data Types, and Variables and more Schemes and Mind Maps Assembly Language Programming in PDF only on Docsity!

COMPUTER

ORGANIZATION AND

ASSEMBLY

LANGUAGE

Mudassar Sharif(Lecturer)

MS in Computer Science, Riphah International

University, Faisalabad

Email: [email protected]

Barani Institute of Sciences, (Sahiwal Campus)

Outline:

High Performance bus organization and architecture

Elements of bus design

Defining Data

Data Types

Labels

Elements of bus

Bus type

Bus width

Data transfer time

Arbitration Method

Bus Timing

Bus Width

Bus Width & Data Transfer Type

Bus Timing

Bus Timing

Variables

๏‚ž (^) Variable name initializer directive initializer ๏‚ž (^) Don't use reserve words. Such as MOV, ADD, AL,BL Etc.

๏‚ž initializer directive

๏‚ž (^) DB 8 BITS, 1 BYTE ๏‚ž (^) DW 16 BITS, 2 BYTE ๏‚ž (^) DD 32 BITS, 4 BYTE ๏‚ž (^) DQ 64 BITS, 8 BYTE ๏‚ž (^) DT (define tenbyte) 80 BITS, 10 BYTE ๏‚ž (^) Var1 db 48 ๏‚ž (^) Var1 db โ€˜1โ€™ ๏‚ž (^) Var db? ๏‚ž (^) Var db โ€˜aโ€™ ๏‚ž (^) Var db โ€˜12345$โ€™

Variables

๏‚ž (^) Var1 db โ€˜1โ€™ ๏‚ž (^) Var2 db? ๏‚ž (^) Var3 db โ€˜1234$โ€™ ๏‚ž (^) .code ๏‚ž (^) Main proc ๏‚ž (^) Mov ax,@data ๏‚ž (^) Mov ds,ax ๏‚ž (^) Mov dl,var ๏‚ž (^) Mov ah, ๏‚ž (^) Int 21h (Load effective address) ๏‚ž (^) Mov dl,var3 mov dx,offset var3 Lea dx,var ๏‚ž (^) Mov ah, ๏‚ž (^) Int 21h ๏‚ž (^) Mov ah,4ch ๏‚ž (^) Int 21h

Next Lecture

PCI Bus organization and architecture

Typical desktop system

Typical server system

PCI Commands