BT opcode...

Ben Skeggs d4rk74m4 at intas.net.au
Sun Jun 13 23:36:10 PDT 2004


BT can only take an 8 bit immediate, just like SHL, SHR etc.
And doing "bt [rax],byte 1" does not assemble either.

Ben.

Peter Johnson wrote:

>I've not checked this, but all you probably need to do is specify a size,
>e.g. "bt dword [rax], 1" or "bt [rax], dword 1".  With just a memory
>reference and an immediate value, YASM has no way to infer the data size.
>
>Peter
>
>On Wed, 9 Jun 2004, Ben Skeggs wrote:
>
>  
>
>>YASM appears to be missing the encoding for the AMD64 instruction
>>
>>bt [rax],1
>>
>>Other AMD64 encodings, like:
>>    bt rax,rbx
>>    bt [rax],rbx
>>    bt rax,1
>>Appear to be fine, well according to a disassembly from objdump anyway.
>>
>>Ben Skeggs
>>
>>
>>
>>
>>
>>
>>_______________________________________________
>>bug-yasm mailing list
>>bug-yasm at tortall.net
>>http://cvs.tortall.net/mailman/listinfo/bug-yasm
>>
>>    
>>

>.
>
>  
>



More information about the bug-yasm mailing list