- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using some inline assembly code in a C program, compiling with the Intel C++ compiler on Windows.
I need to move the contents of a register into an array.
char array[10];
char byte;
int index;
.
.
.
__asm
{
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should be something like this
(just a general idea):
char array[10];
char val;
int index;
....
__asm {
mov bl, val
lea edi, array
mov eax, index
mov BYTE PTR edi[eax],bl
}
(just a general idea):
char array[10];
char val;
int index;
....
__asm {
mov bl, val
lea edi, array
mov eax, index
mov BYTE PTR edi[eax],bl
}
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page