Module 10 - Coding Assembly Language
Module 10 - Coding Assembly Language
Example:
➢ Example:
Example
X db 0
Msg db “Aloha!$”
Label – it refers to address of instruction or procedure
Example
Example:
Format: DOSSEG
Example: DOSSEG
3. .MODEL
It specifies and initializes the memory mode
before defining any segment
Tiny 0 0
Small 1 1
Format: .DATA
Example: .DATA
6. .CODE
It defines and marks the code segment
which consists of a set of instructions
Format: .CODE
Example: .CODE
7. END
It is placed at the last line of the source
code
Format: END
Example: END
8. FOR DEFINING DATA
DIRECTIVE LENGTH (IN BYTES) DESCRIPTION
DB 1 Define Byte
DW 2 Define Word
Example
Msg db “ITE DEPARTMENT, COD MEMBER”, 0Ah, 0Dh, “$”
Msg db “ITE Department, COD Member”, 10d, 13d, “$”