Re: bitwise operators

Post 5, truth tables can be expressed as regular row-column tables. I think Wikipedia has a nice entry on truth tables you can read. On the web, they can usually be represented in standard HTML tables. These are simple tables that have headers such as, x, y, x&y, x|y, x^y, etc. Then, for each row, you have the different combination of bits that x and y can take on. I would show you an example, but not sure if you can make tables in BB code or whatever this forum system uses. That, and I am kinda in a hurry. lol A quick example of using bitwise operators to do arithmetic is by using AND operator on bits for carry bit, and XOR on the two bits to add, shift left 1 position to the left, and add. There is a very interesting implementation here: https://www.geeksforgeeks.org/add-two-n … operators/ . It uses a recursive technique, which is not very efficient, but it gets the point across. Also, a good article to read on Wikipedia is on the adder circuit. Keep in mind that at a circuit level, the ALU only has logic gates available to it. A good intro to digital logic or computer architecture might be really useful. Hope some of this is helpful and it doesn't go over your head. Users of higher-level programming languages don't usually have to concern themselves with these things, but bitwise operations and registers and all that fun stuff is essential to how programming languages can do what they do so easily.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kaigoku via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : leibylucw via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kaigoku via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kaigoku via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : goran via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : r3dux via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : r3dux via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kaigoku via Audiogames-reflector

Reply via email to