Mail Archives: djgpp/1998/05/25/12:11:17
At 01:40 5/24/1998 -0300, Sérgio Vale e Pace wrote:
>Hi Everybody,
> I have a 10 byte matrix and I want to test each bit in this matrix,
>all the 80. I'm trying to do that using the BT instruction in assembler,
>using a index, and a memory location and when I try the memory location
>first, (eg. bt (%eax), %di) I got a "instruction unknow" message from
>the compiler inverting the operands (eg. bt %di, (%%eax)), I got a
>Segment violation error.
I think what you want is:
btw %di, (%eax)
This will test the 16-bit word at (%eax). Of course, make sure the registers
have the right values.
You could also try stepping through with a debugger.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -