Assembly Programming Assembly STOS Instruction - Assembly Programming

What is Assembly STOS Instruction?

The STOS instruction copies the information item from AL (for bytes - STOSB), AX (for words - STOSW) or EAX (for doublewords - STOSD) to the destination string, pointed to by ES:DI in memory.

The following example demonstrates use of the LODS and STOS instruction to convert an upper case string to its lower case value –

When the above code is compiled and executed, it produces the following result –

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Assembly Programming Topics