x86–64 Assembly Breakdown: rep stos in 2 examples

The content is the note based on the practices from an amazing online course OST2:Architecture 1001: x86–64 Assembly .