16
Sol_Asm / Re: writing to data or bss section variables
« on: July 27, 2016, 07:25:06 PM »
Yes, I will check this too
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
struc point
x rd 1
y rd 1
z rd 1
ends
.data
my_point rs point,1
.code
mov [my_point.x],eax
mov [my_point.y],2
mov [my_point.z],3
mov eax,size point
.use64
.data
my_var dq 1234h
.code
mov rax,[my_var]
MOV RAX,[RIP+relative_offset_of_my_var_to_current_rip]