Post Reply 
NQ41 RPN Calculator
04-25-2018, 12:49 AM (This post was last modified: 04-25-2018 01:18 AM by Craig Bladow.)
Post: #18
RE: NQ41 RPN Calculator
(03-08-2018 07:52 PM)Craig Bladow Wrote:  
(03-02-2018 04:28 PM)Egan Ford Wrote:  3. support stdin, e.g. echo "3 4 +" | NQ-41, returns 7, no interactive prompt

Regarding Item 3, what and how should results that affect X and Y or X,Y,Z,T and L?

For example: "5 5 r-p" returns 7.0711 45.000

I've solved this by implementing 'VIEW' which will output the referenced register to stdout. This is particularly elegant as VIEW can be used to view any memory, stack register as well as used with indirection.

Implementing input from 'stdin' means that an interactive session needs to be started by: "nq41 -i"
stdin can work as follows at least in Linux and probably OS X:
nq41 < file.txt
nqr1 <<< '1 2 + view x'

Try CC41!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
NQ41 RPN Calculator - Craig Bladow - 12-02-2017, 11:09 PM
RE: NQ41 RPN Calculator - pier4r - 12-02-2017, 11:15 PM
RE: NQ41 RPN Calculator - Craig Bladow - 12-02-2017, 11:25 PM
RE: NQ41 RPN Calculator - Craig Bladow - 12-16-2017, 03:20 AM
RE: NQ41 RPN Calculator - Paul Dale - 12-16-2017, 07:14 AM
RE: NQ41 RPN Calculator - Craig Bladow - 12-16-2017, 04:05 PM
RE: NQ41 RPN Calculator - Craig Bladow - 12-16-2017, 04:37 PM
RE: NQ41 RPN Calculator - Craig Bladow - 03-01-2018, 02:41 AM
RE: NQ41 RPN Calculator - Craig Bladow - 03-01-2018, 10:48 PM
RE: NQ41 RPN Calculator - Craig Bladow - 03-02-2018, 04:48 AM
RE: NQ41 RPN Calculator - Egan Ford - 03-02-2018, 04:28 PM
RE: NQ41 RPN Calculator - Craig Bladow - 03-04-2018, 04:38 AM
RE: NQ41 RPN Calculator - Craig Bladow - 03-08-2018, 07:52 PM
RE: NQ41 RPN Calculator - Craig Bladow - 04-25-2018 12:49 AM
RE: NQ41 RPN Calculator - Craig Bladow - 03-28-2018, 03:06 AM
RE: NQ41 RPN Calculator - pier4r - 04-13-2018, 10:29 AM
RE: NQ41 RPN Calculator - Craig Bladow - 04-13-2018, 06:23 PM
RE: NQ41 RPN Calculator - pier4r - 04-13-2018, 08:16 PM
RE: NQ41 RPN Calculator - Craig Bladow - 05-21-2018, 04:07 AM
RE: NQ41 RPN Calculator - pier4r - 05-21-2018, 08:50 AM
RE: NQ41 RPN Calculator - pier4r - 09-13-2018, 09:28 AM
RE: NQ41 RPN Calculator - pier4r - 09-13-2018, 10:15 AM
RE: NQ41 RPN Calculator - Craig Bladow - 09-13-2018, 03:00 PM
RE: NQ41 RPN Calculator - Craig Bladow - 09-14-2018, 04:12 AM
RE: NQ41 RPN Calculator - pier4r - 09-14-2018, 05:49 AM
RE: NQ41 RPN Calculator - pier4r - 10-01-2018, 04:52 PM
RE: NQ41 RPN Calculator - Craig Bladow - 10-01-2018, 06:39 PM
RE: NQ41 RPN Calculator - Craig Bladow - 10-04-2018, 02:00 AM
RE: NQ41 RPN Calculator - pier4r - 10-04-2018, 10:26 AM
RE: NQ41 RPN Calculator - Craig Bladow - 10-04-2018, 06:06 PM
RE: NQ41 RPN Calculator - cdmackay - 10-04-2018, 06:28 PM
RE: NQ41 RPN Calculator - Craig Bladow - 12-31-2018, 07:25 PM
RE: NQ41 RPN Calculator - cdmackay - 01-01-2019, 01:46 AM
RE: NQ41 RPN Calculator - Craig Bladow - 12-31-2018, 07:38 PM
RE: NQ41 RPN Calculator - Craig Bladow - 03-09-2019, 04:12 AM
RE: NQ41 RPN Calculator - jwiede - 12-26-2021, 08:06 PM
RE: NQ41 RPN Calculator - Craig Bladow - 12-28-2021, 01:55 AM
RE: NQ41 RPN Calculator - jwiede - 02-15-2022, 02:10 AM
RE: NQ41 RPN Calculator - jwiede - 03-05-2022, 08:39 PM
RE: NQ41 RPN Calculator - Craig Bladow - 03-06-2022, 04:45 AM
RE: NQ41 RPN Calculator - jwiede - 05-13-2022, 03:17 AM
RE: NQ41 RPN Calculator - Craig Bladow - 05-13-2022, 06:42 PM
RE: NQ41 RPN Calculator - jwiede - 07-17-2022, 02:37 AM
RE: NQ41 RPN Calculator - LinusSch - 06-04-2022, 08:46 AM
RE: NQ41 RPN Calculator - Craig Bladow - 06-06-2022, 11:18 PM
RE: NQ41 RPN Calculator - Craig Bladow - 01-21-2023, 06:31 PM



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