Skip to Main Content
The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
book

The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition

by Lyla B. Das
May 2024
Intermediate to advanced content levelIntermediate to advanced
665 pages
23h 2m
English
Pearson India
Content preview from The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
PROGRAMMING CONCEPTS  III 145
LEA DI, AREA ;address AREA with DI
MOV CX, 50 ;load count in CX
CLD ;clear direction ag
MOV AX, 0001 ;load AX with 0
REP STOSW ;repeat until CX = 0
.EXIT ;exit to DOS
END ;end of program
It is obvious that the STOS instruction is used to fi ll up an area in memory with the same data.
ii) LODS
e last of the string instructions is LODS.  is is an instruction for ‘loading’. Loading always
means the act of taking data from memory and putting it into a register. Here, the source
memory is the data segment and the pointer to it is SI.  e data segment is the source segment
and the destination register ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microprocessors and Microcontrollers  by Pearson

Microprocessors and Microcontrollers by Pearson

Lyla B Das

Publisher Resources

ISBN: 9781282663169