Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <Windows.h>
- unsigned short num = 5;
- char format[] = "%hu\n";
- int main(void)
- {
- __asm
- {
- mov cx, 6
- lp:
- shl num, 1
- mov ax, num
- push ax
- mov ax, offset format
- push ax
- call printf
- pop ax
- pop ax
- dec cx
- cmp cx, 0
- jne lp
- }
- //printf("%hu", num);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement