0BADC0DE

Untitled

May 14th, 2025 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | Software | 0 0
  1. .altmacro
  2. .macro jump_table name init last
  3. j \name\()_\init
  4. .if \last > \init
  5. jump_table \name, %(\init+1), \last
  6. .endif
  7. .endm
  8.  
  9. jump_table jump 0 2
  10.  
  11. ==>
  12.  
  13. 0000000000000000 <jump_0-0x18>:
  14. 0: 00000013 nop
  15. 4: 00000013 nop
  16. 8: 00000013 nop
  17. c: 00c0006f j 18 <jump_0>
  18. 10: 0080006f j 18 <jump_0>
  19. 14: 0040006f j 18 <jump_0>
  20.  
  21. 0000000000000018 <jump_0>:
  22. 18: 00000013 nop
  23. 1c: 00000013 nop
Tags: assembly riscv
Advertisement
Add Comment
Please, Sign In to add comment