BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
» Lego Stars Wars: The Complete Saga [RLGE64]
The AND Operator (Programming and Mathematics) Empty11/12/2024, 3:19 am by SnB@BWH

» JMaster Duel Bot: A Yu-Gi-Oh! Master Duel Bot and Trainer for Steam
The AND Operator (Programming and Mathematics) Empty11/10/2024, 5:26 am by Bully@WiiPlaza

» Error Injecting Drool Links Saliva Mod Menu
The AND Operator (Programming and Mathematics) Empty11/10/2024, 5:24 am by Bully@WiiPlaza

» USB Gecko problems with some games
The AND Operator (Programming and Mathematics) Empty10/16/2024, 1:59 pm by Reclaimer Shawn

» Metal Gear Solid V The Phantom Pain X Flashpoint Batman Gameplay unedited [Seth@WiiPlaza]
The AND Operator (Programming and Mathematics) Empty9/23/2024, 12:48 pm by Seth@WiiPlaza

» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
The AND Operator (Programming and Mathematics) Empty8/9/2024, 7:09 am by SnB@BWH

» ASM <> Gecko Code Converter
The AND Operator (Programming and Mathematics) Empty7/29/2024, 11:15 am by Mac11ngAround

» German With a Jackhammer
The AND Operator (Programming and Mathematics) Empty7/28/2024, 3:42 pm by SnB@BWH

» Wii RAM Hacking: Pointers and ASM
The AND Operator (Programming and Mathematics) Empty7/23/2024, 1:54 pm by Mac11ngAround

» IBM AIX Assembler Programming Reference - Useful For PPC ASM
The AND Operator (Programming and Mathematics) Empty7/21/2024, 5:00 pm by Mac11ngAround

Search
 
 

Display results as :
 


Rechercher Advanced Search

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

The AND Operator (Programming and Mathematics)

Go down  Message [Page 1 of 1]

SnB@BWH

SnB@BWH
Admin & Writer

According to Wikipedia: A bitwise AND takes two equal-length binary representations and performs the logical AND operation on each pair of the corresponding bits, which is equivalent to multiplying them. Thus, if both bits in the compared position are 1, the bit in the resulting binary representation is 1 (1 × 1 = 1); otherwise, the result is 0 (1 × 0 = 0 and 0 × 0 = 0).

So, let's break this down into simpler terms:

Using a binary representation of 4 bits, let us present:

0101 (decimal 5)
0011 (decimal 3)
= 0001 (decimal 1)

5 AND 3 equals 1

So, what is happening here?

The AND compares 5 and 3's bits (as binary) if they equal a 1 or 0 in the length of AND'ed bits. You can see 5 (0101) and 3 (0011) have a far right bit that is the same to the other number, that being 1 (0101, 0011).

If it is the same in any of the bits, the AND operation will equal 1, otherwise 0. If both the decimal numbers are the same, it will equal whatever the numbers are.

Just something quick I wanted to write up after finally understanding what an AND operation is. Thank goodness for Wikipedia. Razz The AND Operator (Programming and Mathematics) 2949418502


_________________
The AND Operator (Programming and Mathematics) Simple10

The AND Operator (Programming and Mathematics) LSTjSyDDiscord: SnB_BWH

Click HERE to earn free bitcoin, litecoin, dogecoin, and dash!

Win Free Bitcoins every hour!

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum