Post Reply 
(42S) GCF
07-10-2016, 04:41 AM (This post was last modified: 06-15-2017 01:48 PM by Gene.)
Post: #1
(42S) GCF
Prompted by Eddie W Shore's

http://www.hpmuseum.org/forum/thread-6528.html

here's my short GCD programme.

The prog takes X & Y values from stack & returns GCD , or GCF if you wish, to stack level X.

Code:

0.    { 16-Byte Prgm }
1.    LBL “GCF”
2.    LBL 00
3.    MOD
4.    LASTX
5.    X<>Y
6.    X≠0?
7.    GTO 00
8.    R↓
9.    ABS
10.    END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(42S) GCF - Gerald H - 07-10-2016 04:41 AM
RE: HP 42S: GCF - Werner - 07-10-2016, 07:21 AM
RE: HP 42S: GCF - Gerald H - 07-11-2016, 09:15 AM
RE: HP 42S: GCF - Guenter Schink - 07-10-2016, 08:41 PM
RE: HP 42S: GCF - Gerald H - 07-11-2016, 04:26 AM
RE: HP 42S: GCF - Werner - 07-11-2016, 10:01 AM
RE: HP 42S: GCF - Dieter - 07-11-2016, 06:58 PM
RE: HP 42S: GCF - Gerald H - 07-12-2016, 04:46 AM
RE: HP 42S: GCF - Gerald H - 07-12-2016, 04:59 AM



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