flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
f0dder 23 Apr 2006, 20:44
test reg, 2^bit
![]() so, to test bit 4, you'd calculate 2^4 (two raised to the power of four). That's 16. Then, "test reg, 16". Now you can do something like "sete al" to set AL to the bitvalue. There's also the "BT" (bit test) instruction - check out an x86 reference for more information. |
|||
![]() |
|
Steve 23 Apr 2006, 21:09
Thanks, f0dder. Very helpful as always.
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.