flat assembler
Message board for the users of flat assembler.
Index
> Main > Why do I need to use XOR, AND, OR? |
Author |
|
Kristian_ 15 Nov 2004, 17:27
Hi!
Well, I know how to use them, but for what are they useful? Thank you! |
|||
15 Nov 2004, 17:27 |
|
Kristian_ 15 Nov 2004, 19:15
Thank you very much!
Assembly is so interesting!!! |
|||
15 Nov 2004, 19:15 |
|
Matrix 15 Nov 2004, 19:16
they are logical operations of the Arithmetical&Logical Unit of your Processor,
Code: xor al,bl ; this will exclusive or bits in al, with appropriate bits in bl, then place the result in al you can get idea on data recovery using XOR X XOR B = A A XOR X = B so like ABCDEFXYZ (like in raid - 3 letters represent one disk) where X=A xor D Y=B xor E Z=C xor F now XYZ on 3rd disk is data recovery information, now if 1 disk loses all data, you can recover it. more info here: http://www.thecodeproject.com/csharp/raidfile.asp so use it when you need it btw.: i also recommend you reading the basics before asking something, this board is not large enough to contain every basic questions like what is byte? or similar. you should also take a look @ Flat Assembler Frequently Asked Questions (FAQ) (main) its linked to other FAQs as well, and they should contain a large amount of links to tutorials. if you find tutorials explaining your problem well you can recommend them @ faq page like: "i found this great tutorial about xxxx @ http://xxxx.com/whatisit.htm, and you should add it to your faq." this way it others have the same question, they will find it easily without searching in the FAQ Last edited by Matrix on 17 Nov 2004, 04:40; edited 2 times in total |
|||
15 Nov 2004, 19:16 |
|
veach1 16 Nov 2004, 07:37
XOR can be used instead of XCHG
Code: xor ax, bx xor bx, ax xor ax, bx |
|||
16 Nov 2004, 07:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.