gcc inline asm question
hello!
1) stack var (e.g. pBuff) contains pointer to byte array
2) register (e.g. ebx) contains index to this array
i need take as follows:
movzbl <offsetof_pBuff_from_esp>(%esp,%ebx), %eax
i.e. i need access to byte pBuff[ebx]
how do write such asm command on gcc inline asm?
note: it must be single command!
thanks!
|