Post Reply 
HP 48GX hpcalc.org Program Name
05-04-2021, 01:02 AM (This post was last modified: 05-04-2021 01:20 AM by MNH.)
Post: #5
RE: HP 48GX hpcalc.org Program Name
(05-03-2021 12:42 PM)Giuseppe Donnini Wrote:  If you show us exactly what kind of problems you experience and how you tried to tackle them, we could perhaps help you more efficiently.

Program: FIN, 240.5 bytes, # 6054h checksum, removes line feed characters from a CSV file.
FILE: list containing 1 integer (size of list) and 4 empty strings.
CSV: Comma-Spaced Values file with line feed characters.

\<< FILE 1 GET CSV
DUP SIZE 10 CHR 1 \->
numpoints csv size
char start
\<< MEM DROP 1
numpoints
START csv start
size SUB DUP char
POS DUP 0 >
\<< DUP 'start'
STO+ 2 - 1 SWAP SUB
\>> IFT
NEXT DROP
numpoints \->LIST
\>>
\>>

I think MEM is slowing down program execution. I was going to use more stack commands and less local variables, but I think I'm using a logical mix of both. I apologize for no indentation. No time to retype.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 48GX hpcalc.org Program Name - MNH - 05-02-2021, 10:21 PM
RE: HP 48GX hpcalc.org Program Name - MNH - 05-03-2021, 12:54 AM
RE: HP 48GX hpcalc.org Program Name - MNH - 05-04-2021 01:02 AM
RE: HP 48GX hpcalc.org Program Name - MNH - 05-05-2021, 01:10 AM
RE: HP 48GX hpcalc.org Program Name - MNH - 05-06-2021, 01:30 AM



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