Post Reply 
(11C) Indirect Line Number Branches
07-17-2019, 06:04 AM (This post was last modified: 07-17-2019 06:20 AM by Gamo.)
Post: #1
(11C) Indirect Line Number Branches
Going though the HP-11C User's Handbook on Page 137

Under Indirect Program Control there are two type:

1. Indirect Label Branches
2. Indirect Line Number Branches

According to the user manual state that
Indirect Label Branches the execution
is transfer downward in program memory.

But for Indirect Line Number Branches the manual doesn't said if it
going downward only like the Label Branches or not.

Remark: Is indirect label Branches only go downward in program memory..?

------------------------------------

This example program demonstrated that Indirect Line Number can be
branches either downward and upward in program memory.

Program to count down, count up and keep repeating.

Example:

5 [A] display 4..3..2..1..0..1..2..3..4..5..4..3........ to stop press [R/S]

Program:
Code:

001 LBL A
002 STO 1  // Store Integer to counts
003 STO 2  // Store Max Integer
004  1
005  6
006 CHS
007 STO I  // Indirect Line Number branches to line 016
008 LBL 0
009  1
010 STO-1
011 RCL 1
012 PSE  // display count down
013 X=0
014 GTO I  // Branch downward on line 016
015 GTO 0
016  1
017 STO+1
018 RCL 1
019 PSE  // display count up
020 RCL 2
021 X=Y
022 GTO 0
023 GTO I  // Branch upward to line 016

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


Messages In This Thread
(11C) Indirect Line Number Branches - Gamo - 07-17-2019 06:04 AM



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