converted 32sii program for 35s


[mods, if this is inappropriate for the forum, please let me know]

going through the software archives to find some programs for my new 35s i came across this netmask calculator which will really help me as i'm taking my ccna test in the next month or two.

all i basically did was substitute 'goto line#' for the labels (original labels are noted to the right). i'm not enough of a programmer to condense it further although i see some possibilities using the indirect or index registers perhaps.

here is the original copyright notice:

This program is Copyright © 2001 by Borja Marcos and is used here by permission.
This program is supplied without representation or warranty of any kind. Borja Marcos and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview: This is my first 32Sii program, so don't blame me ;-) It calculates the netmask from the number of bits. For example, 24 gives

To run it, type the number of bits and "XEQ M". Enjoy it. Who said calculators aren't useful when you end college? ;-)

and here is the converted (for 35s) program:

001:	LBL M
002: RPN
003: STO B 'LBL M'
004: 0
005: STO R
006: STO M
007: 9
008: STO E
009: RCL B 'LBL A'
010: 8
011: x>y?
012: GTO M015
013: 8
014: GTO M016
015: RCL B 'LBL B'
016: STO M 'LBL C'
017: STO- B
018: 2
019: RCL M
020: y^x
021: 1
022: -
023: 2
024: ENTER
025: 8
026: RCL M
027: -
028: y^x
029: X
030: RCL E
031: 10^x
032: X
033: STO+ R
034: 3
035: STO- E
036: RCL B
037: x>0?
038: GTO M009
039: RCL R
040: RTN




Possibly Related Threads...
Thread Author Replies Views Last Post
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 716 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  Interesting Base Conversions - Porting a 1975 HP 25 Program to the HP 35S Eddie W. Shore 1 385 10-13-2013, 07:49 PM
Last Post: BruceH
  Planar Triangles Program: HP 35S Eddie W. Shore 0 247 06-02-2013, 11:15 AM
Last Post: Eddie W. Shore
  HP 35s - multiple program input values? Arno 3 513 04-29-2013, 11:27 AM
Last Post: Gerson W. Barbosa
  Does IR printing not work on your converted WP34s? Then read on... Harald 3 556 04-04-2013, 05:46 PM
Last Post: Harald
  Maximum number of program steps in HP-42S, 33S, and 35S? Walter B 3 483 12-18-2012, 03:44 PM
Last Post: Eric Smith
  Help on HP 35s Program Kryxena 12 874 07-19-2012, 04:12 PM
Last Post: Matt Agajanian
  Complex results acceptance 32sII/33s/35s Matt Agajanian 9 726 03-24-2012, 09:30 AM
Last Post: Dieter
  Program Coding Sheets for 33s/35s Matt Agajanian 6 580 03-03-2012, 04:03 PM
Last Post: David Hayden
  35s prompt for multi-character variables in program like "low footprint" root finder Chris C 8 808 02-14-2012, 06:52 PM
Last Post: Chris C

Forum Jump: