Linux / UNIX Tech Support Forum
This is a discussion on gcc inline asm question within the Coding in General forums, part of the Development/Scripting category; hello! 1) stack var (e.g. pBuff) contains pointer to byte array 2) register (e.g. ebx) contains index to this array ...
|
|||||||
| Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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! |
| Sponsored Links | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| question i cant figure out | computerguru | Ubuntu / Debian | 1 | 27-11-2008 03:57 AM |
| C question | TOP | Coding in General | 1 | 08-07-2006 12:14 AM |
| C question | TOP | Coding in General | 3 | 10-03-2006 11:08 PM |
| question | TOPHUMAN | Shell scripting | 1 | 06-02-2006 01:25 PM |
| Redirecting question | sonaikar | Linux software | 1 | 25-06-2005 12:18 AM |