The Museum of HP Calculators

HP Forum Archive 17

[ Return to Index | Top of Index ]

I think zero also is a number to remember...
Message #1 Posted by Arne Halvorsen (Norway) on 29 Sept 2007, 2:12 p.m.

Found errors in my hp-35s programs due to the stupid way memory is managed on it, yea, yea, it's my fault, but still:

While not a bug I think the 35s indirect register handling is pretty ..... stupid ....

Say you want to store N numbers in register 0...N-1, god forbid some or your last numbers happens to be 0 (a perfectly okey number) AND register N,... happens not to be allocated. You get an INVALID when trying to learn that number N-1 was 0!

What you must do is to allocate your N registers by putting a 'watermark' non zero in register N.

I do not mind allocating and deallocating memory, but this reality of hp-35s is: a) implication not well documented, b) error prone. What I think should been here is commands to allocate registers and free registers!

Edited: 29 Sept 2007, 5:16 p.m. after one or more responses were posted

      
Re: I think zero also is a number to remember...
Message #2 Posted by Ed Look on 29 Sept 2007, 5:12 p.m.,
in response to message #1 by Arne Halvorsen (Norway)

I agree to a point.

It IS right now making it hard for me to complete a program to pick the mode out of a set of numbers (I'll, of course, keep working on it), but one also has to switch values in and out of the I or J registers, after initializing a block of memory registers with that first value.

Perhaps I am not making efficient enough use of the registers at hand, but it does seem as if I never have enough registers.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall