Post Reply 
HP 35s - How to write a for loop
02-17-2020, 10:20 AM
Post: #6
RE: HP 35s - How to write a for loop
Far better to use DSE instead of ISG, because
  • no need to prepare the loop (1000 / 1 + is not required)
  • not limited the loop end value to 999

Code:

LBL T
  STO A
  STO B
  LBL L
    RCL B
    RCL - A
    STOP
    DSE A
    GTO L
RTN

This is do the job also (counts from 0 to N-1). A is the counter register and B is for storing the user data to reverse the counting direction (or maybe it required later).


Csaba
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 35s - How to write a for loop - bxzj - 02-11-2020, 05:35 PM
RE: HP 35s - How to write a for loop - Csaba Tizedes - 02-17-2020 10:20 AM



User(s) browsing this thread: 2 Guest(s)