The Museum of HP Calculators

HP Forum Archive 13

[ Return to Index | Top of Index ]

Posible HP-49G+ bug using DOLIST.
Message #1 Posted by r. d. bärtschiger. on 17 Nov 2003, 3:39 p.m.

I have just noticed what may be a bug on the hp-49g+. To duplicate it try the following:

1.) Navigate to an empty directory. If your calculator does not have an empty directory, then create one. You can purge it later.

2.) Place a number on the stack, a 5 for instance. This number is not actually needed, it will only be used as a place holder.

3.) Execute VARS, this will place an empty pair of curly braces on the stack, { }

4.) Place a 1 on the stack.

5.) Place this program on the stack, \<< DTAG \>>

6.) Execute this command, DOLIST

7.) The stack should now contain:

2: 5.00 1: { }

8.) Execute OBJ\->

9.) The stack should now contain:

3: 5.00 2: 1: 1.00

10.) According to the result the 'empty list' contained one item. That one item is on stack level 2. However what is shown on level two is a 'blank' item. The 5 is on level 3.

11.) Normally executing OBJ\-> on an empty list results in a zero on level one with the list having been deleted.

If the above is tried on an hp-48gx, the execution of DOLIST causes an error.

Any comments?


Re: Posible HP-49G+ bug using DOLIST.
Message #2 Posted by Raymond Del Tondo on 17 Nov 2003, 6:22 p.m.,
in response to message #1 by r. d. bärtschiger.


even Emu48 with a 49G ROM (1.19-6) gives "DOLIST Error: Invalid Dimension" .

So this may be new (and could be a side effect of other fixes again;-)


[ Return to Index | Top of Index ]

Go back to the main exhibit hall