Jump instructions test bench 1

From Zet
Jump to: navigation, search

This example tests these instructions:

  1. ja/jnbe
  2. jae/jnb/jnc
  3. jb/jnae/jc
  4. jbe/jna
  5. je/jz
  6. jg/jnle
  7. jge/jnl
  8. jl/jnge
  9. jle/jng
  10. jne/jnz
  11. jno
  12. jnp/jpo
  13. jns
  14. jo
  15. jp/jpe
  16. js

Code

<embed_code>04_jump1.s</embed_code>

Results

Memory contents at the end should be:

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