(41C) Decimal Bitwise Operations - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP-41C Software Library (/forum-11.html) +--- Thread: (41C) Decimal Bitwise Operations (/thread-15235.html) |
(41C) Decimal Bitwise Operations - Eddie W. Shore - 06-21-2020 01:47 PM The document covers the following operations: NOT: for integers AND: for positive integers OR: for positive integers XOR: for positive integers Simple conversions between Binary and Decimal bases (integers up to 1023) No extra or additional modules required. Should work for the Swiss Micros DM41 and any emulators. Download the PDF here: https://drive.google.com/file/d/1g7fhB4ehH0CNMizKOGpZ7bJTcLfBIVUA/view?usp=sharing RE: (41C) Decimal Bitwise Operations - Thomas Klemm - 07-04-2022 06:04 AM Binary to Decimal Conversions These programs are based on: (11C) Base Conversion Only from-base and to-base are replaced by constant values. An explanation can be found here and there. Binary to Decimal: Code: 01 LBL "B-D" Decimal to Binary: Code: 01 LBL "D-B" Examples 11011 XEQ B-D 27 110 XEQ D-B 1101110 This variant based on a program for the HP-25 saves one byte: Code: 01 LBL "B-D" |