String instructions test bench

From Zet
Jump to: navigation, search

This example tests these instructions:

  1. cmpsb
  2. cmpsw
  3. lodsb
  4. lodsw
  5. movsb
  6. movsw
  7. scasb
  8. scasw
  9. stosb
  10. stosw

Code

<embed_code>07_strings.s</embed_code>

Results

Memory contents at the end should be:

0x00:  0xXXXX  0x1234  0xXXXX  0xXXXX  0xXXXX  0xXXXX  0xXXXX  0xXXXX