SHARE
TWEET

Untitled

a guest Aug 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5.     printf("Printing out most recent ASM registers\n----------\n");
  6.  
  7.     register int a asm("rax");
  8.     printf("%#010x <= $RAX\n", a);
  9.  
  10.     register int b asm("rbx");
  11.     printf("%#010x <= $RBX\n", b);
  12.  
  13.     register int c asm("rcx");
  14.         printf("%#010x <= $RCX\n", c);
  15.  
  16.         register int d asm("rsi");
  17.         printf("%#010x <= $RDX\n", d);
  18.  
  19.         register int e asm("rdi");
  20.         printf("%#010x <= $RDI\n", e);
  21.  
  22.         register int f asm("rbp");
  23.         printf("%#010x <= $RBP\n", f);
  24.  
  25.         register int g asm("rsp");
  26.         printf("%#010x <= $RSP\n", g);
  27.  
  28.         register int y asm("rsi");
  29.         printf("%#010x <= $RSI\n", y);
  30.     return 0;
  31.  
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top