One of us
|
11-16-2024, 10:22 AM
(This post was last modified: 11-16-2024 10:34 AM by LinusSch.)
Post: #21
|
|||
|
|||
RE: One of us
(11-16-2024 12:25 AM)c3d Wrote: DB48x has most of the features of the HP16C. One-complement is not really there yet, but I doubt it's used that much these days. I don't have a need for 1's complement but I do have a need for 2's complement. Poking around in the web simulator, 0.8.4, it seems to be unsigned only for now? All ones doesn't give me a negative real and trying to convert -1 to binary gives me RealToBinary error: Bad argument type. As A1 mentioned, masks (which might be easy to do somehow with the functionality already in there but I don't know this stuff that well yet), and more crucially the carry flag. But when that works, yeah - this is 249 CHF, a set of key assignments and an overlay from being a really good solution for me. Maybe a few good tutorials. You've even got arbitrary bases in there! Wonderful! While I generally do subscribe to the idea "if it is worth doing, it is worth overdoing", the maximum word size of 262144 bits may be a bit much. I tried to run not on a 0 and I ran out of memory. Maybe that is a web simulator limitation, though. |
|||
11-16-2024, 01:37 PM
(This post was last modified: 11-16-2024 01:38 PM by AnnoyedOne.)
Post: #22
|
|||
|
|||
RE: One of us
(11-16-2024 10:22 AM)LinusSch Wrote: ...and more crucially the carry flag. FYI I'm thinking of writing/documenting, and publishing here, a 16C program to implement a 63-bit LFSR (Linear Function Shift Register) or PRNG (pseudo random number generator) to illustrate some 16C features--including the carry bit, masks, and logical operations. It is only an idea. A1 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-16-2024, 02:21 PM
Post: #23
|
|||
|
|||
RE: One of us
(11-16-2024 01:37 PM)AnnoyedOne Wrote:(11-16-2024 10:22 AM)LinusSch Wrote: ...and more crucially the carry flag. FYI, it is a good idea |
|||
11-16-2024, 02:26 PM
(This post was last modified: 11-16-2024 03:33 PM by AnnoyedOne.)
Post: #24
|
|||
|
|||
RE: One of us
(11-16-2024 02:21 PM)LinusSch Wrote: FYI, it is a good idea Thank you. It's coming (I've started) . As is Christmas https://www.hpmuseum.org/forum/thread-22711.html A1 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-16-2024, 05:19 PM
Post: #25
|
|||
|
|||
RE: One of us
(11-16-2024 10:22 AM)LinusSch Wrote: I don't have a need for 1's complement but I do have a need for 2's complement. 1's complement = NOT 2's complement = NOT + 1 If you have one you have the other A1 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-16-2024, 06:27 PM
Post: #26
|
|||
|
|||
RE: One of us
(11-16-2024 01:37 PM)AnnoyedOne Wrote:(11-16-2024 10:22 AM)LinusSch Wrote: ...and more crucially the carry flag. That's pretty neat! One of the first programs I wrote on my (emulated) 16C was a PRNG, but I used a simpler, massively less impressive, and absolutely trivial, LCG. |
|||
11-17-2024, 11:58 PM
Post: #27
|
|||
|
|||
RE: One of us
(11-16-2024 10:22 AM)LinusSch Wrote:(11-16-2024 12:25 AM)c3d Wrote: DB48x has most of the features of the HP16C. One-complement is not really there yet, but I doubt it's used that much these days. Both issues are fixed in 0.8.6, released today. Quote:As A1 mentioned, masks (which might be easy to do somehow with the functionality already in there but I don't know this stuff that well yet), and more crucially the carry flag. Masks seem easy enough to implement. Bit count (#B) is planned but not there yet. The carry and out of range flags are also quite easy to add. Quote:But when that works, yeah - this is 249 CHF, a set of key assignments and an overlay from being a really good solution for me. Maybe a few good tutorials. You've even got arbitrary bases in there! Wonderful! The idea of DB48x is to be a platform for future declinations that would differ from the main platform mostly in the default key assignments and library functions. Having a DB12x and DB16x seems easy enough. Quote:While I generally do subscribe to the idea "if it is worth doing, it is worth overdoing", the maximum word size of 262144 bits may be a bit much. I tried to run not on a 0 and I ran out of memory. Maybe that is a web simulator limitation, though. Run the simulator with the -m option ;-) Although it works quickly for computations, but quite slowly for display, something that I need to optimize. DB48X,HP,me |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)