HP-34C Storage Register Arithmetic & Programming



#15

Hello all.

I'm a little rusty on my HP-34C programming so, please fill me in.

I tried to record STO x 2 and STO x .2 into program memory. STO x 2 recorded properly BUT STO x .2 only recorded the . (decimal point). I don't remember my HP-34C limitations but, was this restriction of addressing registers .0 to .9 only for storage/recall program instructions (thus, register arithmetic for address .0-.9 is not available in program memory)?

Edited: 7 May 2012, 10:31 p.m.


#16

Yep, that is correct: register arithmetic limited to R0 to R9, does not apply to R.0 to R.9. On the other hand, it also applies to RI and R(i) (indirect addressing), so if you use STO (+,-,×,÷) (i), you can access R.0 to R.9 with values from 10 to 19 stored in RI.

Cheers.

Luiz (Brazil)

#17

One quote from the manual (from the Museum DVD):

Storage Register Arithmetic. Registers Ro through Rg in your HP-34C
are used for the direct storage register arithmetic operations described in
Solving Problems With Your Hewlett-Packard Calculator. However, all
storage registers (Ro through Rg, R.o through R.g, and I) can be used to
perform indirect storage register arithmetic (we'll cover this subject later,
in section 7).

So, to answer your question, you can't use .0 - .9 for storage register arithmetic. Either in program mode or in manual mode.

Cheers,

-Marwan

#18

From the HP-34C Owner's Manual, page 22*:

Storage Register Arithmetic. Registers R0 through R9 in your HP-34C

are used for the direct storage register arithmetic operations described in

Solving Problems With Your Hewlett-Packard Calculator. However, all

storage registers (R0 through R9, R.0 through R.9, and I) can be used to

perform indirect storage register arithmetic (we'll cover this subject later,

in section 7).

* You can find it in the Museum's DVD #1.


#19

HA! Pretty funny. All posting at the same time. Gerson and I even provided the same reference! Although my cut and paste did not come out as cleanly as his (edited?) version.

Edit: We both even mention the Museum DVD.

Cheers,

Marwan

Edited: 7 May 2012, 11:04 p.m.


#20

Quote:
Although my cut and paste did not come out as cleanly as his (edited?) version.

It did require some editing like formatting and replacing a few 'g' amd 'o' with '9' and '0', respectively. The searcheable and editable PDFs starting from the Museum DVDs version 7.00 are a blessing, despite the occasional need for minor manual adjustments. (Thanks, Dave!)

Cheers,

Gerson.

#21

I was in advantage, but in the wrong circumstances: I wrote by heart. 8^(

Cheers.

Luiz (Brazil)

Edited: 8 May 2012, 2:42 a.m.


#22

Hello Luiz,

I only quoted the manual, so did Marwan who also added some words to answer Matt's question. Your concise reply, however, is complete and need not be complemented by any quotation from the manual. But you are a teacher! :-)

Cheers,

Gerson.


#23

Too true! I learn far more on this forum than I ever have the opportunity to contribute. Thank you to everyone for that!

Cheers,

-Marwan

#24

Hello all.

Sorry if I'm not posting this under the correct heading. Thanks to all of you for the recap!


#25

Nothing wrong with where you posted. An you are welcome.

Cheers,

-Marwan


#26

Thanks!

#27

The reason for the limitation is that they use a single byte for each program line, so there can only be 256 instructions, including merged codes. Offering register arithmetic for more registers would have pushed them over the limit. They used 255 of the 256 codes, with one left over.

The 41C went to two-byte instructions for many of the register operations to avoid having this limitation.


#28

Quote:
The 41C went to two-byte instructions for many of the register operations to avoid having this limitation.

Same with the HP-15C, most instructions need just one byte, a few others need two (generally the most specialized or infrequently used ones).

Regards from V.

#29

Excellent point. That per-instruction byte count is the item I usually overlook.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Layout of arithmetic keys on early calculators Walter B 10 1,133 11-20-2013, 11:13 AM
Last Post: Jake Schwartz
  HP-34C Draining battery quickly Bill Crowell 2 523 09-08-2013, 08:30 AM
Last Post: aj04062
  HP-34C Curiosity Matt Agajanian 7 934 08-23-2013, 06:02 PM
Last Post: Stephan Matthys
  Little curiosity: why the fourth stack register is called "T"? Antlab 34 2,622 07-03-2013, 04:49 PM
Last Post: Walter B
  HP-34C Emulator BShoring 8 987 03-30-2013, 05:04 PM
Last Post: BShoring
  Arithmetic programs for HP39gII Mic 0 323 12-19-2012, 12:23 PM
Last Post: Mic
  HP41 Long term storage Steve Hunt 6 708 09-27-2012, 11:08 PM
Last Post: db (martinez, ca.)
  Looking for PRNG for HP-34C Dave Boyd 3 531 09-22-2012, 07:10 PM
Last Post: Mike T.
  [hypothetical] adding mass storage functions to a 42S Eric Smith 12 1,132 08-26-2012, 02:20 PM
Last Post: Eric Smith
  HP50G Max SDcard Storage space?? mr-scorpio 9 1,049 08-22-2012, 09:57 AM
Last Post: Bart (UK)

Forum Jump: