HP-71B BASIC Question
|
03-19-2021, 09:01 AM
(This post was last modified: 03-19-2021 09:28 AM by J-F Garnier.)
Post: #10
|
|||
|
|||
RE: HP-71B BASIC Question
(03-18-2021 11:02 AM)Sylvain Cote Wrote: I have decided to use the GOSUB/LABEL route, here is a snippet of code to show what it look like ... Sylvain, may I suggest some improvements? You may implement or even replace these UDFs using the more efficient binary functions of the HP-IL ROM, for instance: replace IP(FP(S1/2^6)*2) with BIT(S1,5) replace FP(S1/2^4)*2^4 with BINAND(S1,15) There is no bit binary shift operation in the HP-71 BASIC but the integer division can be used, and you can rewrite IP(D1/2^4) as just (D1 DIV 16). J-F |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)