A LODSB or STOSB will use the AL register while the LODSW or STOSW will use the AX register. The STOS writes whatever is in the AX/AL register to the memory pointed to by ES:DI. If ES:DI points to 100:102h and if AL held 50, then the byte at 100:102h will hold 50. After the instruction is finished, the CPU will either increment or decrement SI or DI according to the status of the direction flag. If SI was 100h and a "LODSW" instruction was performed with a cleared direction flag (forward), the SI will now point to 102h.