gcc inline asm question - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


gcc inline asm question

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:
[b]movzbl (%esp,%ebx), %eax[/b]
i.e. i need access to byte pBuff[ebx]

how do write such asm command on gcc inline asm?
note: it [b]must[/b] be single command!

Sign In or Register to comment.