Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // compile with
- // $ zig build-obj --release-small -mcpu atmega32u2 -target avr-freestanding-eabi test.zig
- // inspect ASM output with
- // $ avr-objdump -zdj .progmem.data test.o
- export fn main() void {
- _ = asm volatile (
- \\ nop
- \\ nop
- \\ nop
- \\ nop
- \\hello:
- \\ rjmp .-2
- \\goodbye:
- \\ nop
- \\ nop
- \\ nop
- \\ nop
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement