Advertisement
Guest User

Untitled

a guest
Oct 5th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // compile with
  2. // $ zig build-obj --release-small -mcpu atmega32u2 -target avr-freestanding-eabi test.zig
  3. // inspect ASM output with
  4. // $ avr-objdump -zdj .progmem.data test.o
  5.  
  6. export fn main() void {
  7. _ = asm volatile (
  8. \\ nop
  9. \\ nop
  10. \\ nop
  11. \\ nop
  12. \\hello:
  13. \\ rjmp .-2
  14. \\goodbye:
  15. \\ nop
  16. \\ nop
  17. \\ nop
  18. \\ nop
  19. );
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement