Displaying an Address in ptx

I have a ptx file which i modified to fetch the address of a register. A snippet of the code is given below:

ld.global.f32 	%f1, [%rd8];

mov.b32		s, %f1;    \\Getting address of %f1 in s

I want to display the value of ‘s’ on the console or write it in a file. Is there any way I can do that? Thank you in advance.