Programming techniques -1 – HP 35s Scientific Calculator User Manual

Page 10

Advertising
background image

8

Contents

Clearing One or More Programs.......................................13-23

The Checksum ................................................................13-23

Nonprogrammable Functions ................................................13-24

Programming with BASE .......................................................13-24

Selecting a Base Mode in a Program.................................13-25

Numbers Entered in Program Lines ....................................13-25

Polynomial Expressions and Horner's Method..........................13-26

14.Programming Techniques ..........................................14-1

Routines in Programs ..............................................................14-1

Calling Subroutines (XEQ, RTN) ..........................................14-1

Nested Subroutines ...........................................................14-2

Branching (GTO) ...................................................................14-4

A Programmed GTO Instruction ..........................................14-5

Using GTO from the Keyboard ...........................................14-5

Conditional Instructions...........................................................14-6

Tests of Comparison (x?y, x?0)...........................................14-7

Flags ...............................................................................14-9

Loops .................................................................................14-16

Conditional Loops (GTO) ................................................14-17

Loops with Counters (DSE, ISG) ........................................14-18

Indirectly Addressing Variables and Labels..............................14-20

The Variables "I" and "J" ................................................... 14-20

The Indirect Address, (I) and (J) .........................................14-21

Program Control with (I)/(J) ................................................ 14-23

Equations with (I)/(J) .......................................................... 14-23

Unnamed indirect variables..............................................14-23

Advertising