Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // main.c
- #include <stdio.h>
- unsigned short foo(unsigned short a);
- int main()
- {
- printf("a %u", foo(100));
- }
- // main.s
- .global foo
- foo:
- inc %di
- mov %di, %ax
- ret
- // gcc main.c main.s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement