Professional Documents
Culture Documents
COAA - Lab Assignment 4: Name: Shubham Waghule Roll No-94 GR No: 12120127 Div: CS - D Batch: B3
COAA - Lab Assignment 4: Name: Shubham Waghule Roll No-94 GR No: 12120127 Div: CS - D Batch: B3
AIM :
Write 8086 ALP to count positive number and negative number from the array of
signed number stored in memory
Memory Models in 8086
The memory models in 8086 specify the size of memory assigned to the different
parts of a program. The. MODEL directive is used at the start to specify which
model is going to be used. There are total 6 memory models:
1. TINY – In this model both code and data occupy a single physical
segment of memory. On linking a file with this model, it automatically
generates a com file which is smaller than exe file.
5. LARGE – In this model, both code and data are stored in different
physical statements.
• LEA : Used to load the address of operand into the provided register.
• ADD : The contents of the register or memory are added to the contents
of the accumulator and the result is stored in the accumulator.
• SUB : The contents of the register or the memory are subtracted from the
contents of the accumulator, and the result is stored in the accumulator.
• CALL : Used to call a procedure and save their return address to the
stack
• RET : The RET instruction stands for return. This instruction is used at
the end of the procedures or the subprograms
• SHL : Used to shift bits of a byte/word towards left and put zero(S) in.
COMMANDS :