[nfbcs] writing x64 assembly code

Littlefield, Tyler tyler at tysdomain.com
Tue Aug 5 14:26:45 UTC 2014


Hello all:
I'm curious if anyone knows what's going on with this.
If I have the following chunk:
int main(int argc, char** argv)
{
...
}
then it should be relatively easy to access the stack. Using rbp:
main:
     push rbp
mov rbp, rsp
pop rbp
ret
so generally, as far as I am aware, rbp+8 would be the first argument, 
rbp+... the second? I'm thinking either 12 or 16 to account for the 
larger pointers.
This doesn't seem to be working as I'd think it should though; anyone 
able to shed some light?
Thanks,

-- 
Take care,
Ty
http://tds-solutions.net
He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.





More information about the NFBCS mailing list