uleb128.s 390 B

12345678910111213141516171819202122232425262728293031323334
  1. .data
  2. .global bar
  3. .balign 2
  4. bar:
  5. .short 42
  6. .short 43
  7. .global foo
  8. foo:
  9. .skip 0xff
  10. .global foo2
  11. .balign 2
  12. foo2:
  13. .short 4
  14. .text
  15. .balign 2
  16. .global byte
  17. byte:
  18. .word foo-bar
  19. .word foo2-bar
  20. .global uleb
  21. .balign 2
  22. uleb:
  23. .uleb128 foo-bar ; this value can be stored in one byte
  24. .uleb128 foo2-bar ; this value requires 2 bytes
  25. .balign 2
  26. .global _start
  27. _start:
  28. nop