News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Bitwise op

Started by 0x401000, June 08, 2010, 01:04:27 PM

Previous topic - Next topic

0x401000

A bitwis operation operates on one or two bit patterns or binary numerals at the level of their individual bits. Who ever met a library for assembly language, perform simple operations as not, or, end in this way?

In example

NOT 0111  (decimal 7)
  = 1000  (decimal 8)

   0101 (decimal 5)
OR 0011 (decimal 3)
= 0111 (decimal 7)

Thanks!

jj2007

Why do you need a library for this? There are a number of opcodes, like bt btc not neg etc performing what is necessary.
If it gets more complex, look at records, e.g. here.

0x401000

Thanks, yes this is exactly what I just did not find. I would like to see examples, and have them always at hand. For example there are programs tutorials to assemble. Examples with assembler command like bt btc not neg etc very desirable. Thanks!