Below you will find pages that utilize the taxonomy term “Bitwise”
May 20, 2025
16-bit Unsigned AND on Commodore 64
I have a project that requires something beyond the default BASIC that’s available on the Commodore 8-bit computers. Actually, it’s several things.
- 16-bit AND for unsigned integers
- XOR
- Decimal to Hex
- Hex to Decimal
I can get two of these by utilizing Simon’s BASIC Cart: XOR and Hex to Decimal.
Today, we’re going to implement a 16-bit unsigned AND .
In Commodore 64 BASIC V2, the AND
operator works with 16-bit signed integers (-32768 to +32767).