Emu48 Edit a CSV File
|
01-10-2022, 12:41 PM
Post: #23
|
|||
|
|||
RE: Emu48 Edit a CSV File
(01-09-2022 08:39 PM)MNH Wrote:(01-09-2022 02:34 PM)DavidM Wrote: SL3: Source string You are correct, and it is intentional. There's no reason the stack arguments for REPLS have to be the same as the local variables defined for use within the program. (01-09-2022 08:39 PM)MNH Wrote: I think my problem is that I don't know, or are confused by, what should be on the stack to make REPLS work. I executed REPLS, and the program didn't remove the line feed character from the first extracted string. Also, the program ended up in an infinite loop. Rather than responding with a lengthy line-by-line breakdown of how REPLS works (which I started to do and subsequently closed the window by accident before posting :-) ), I'd recommend that you actually step through the code and watch how it operates. Two possible ways to do this: 1) Place some simple arguments on the stack (I'd suggest "ABCDE" "BCD" "X" as a first attempt) 2) Put 'REPLS' on the stack (single quotes required) 3) Execute DBUG by navigating to PRG -> NXT -> RUN -> DBUG and pressing "DBUG" 4) Step through the code with SST to watch how it loads the stack and proceeds -or- 1) Place 41 MENU HALT at the beginning of REPLS. 2) Place some simple arguments on the stack (I'd suggest "ABCDE" "BCD" "X" as a first attempt) 3) Execute REPLS 4) Step through the code with SST to watch how it loads the stack and proceeds Make sure that you are actually passing strings to REPLS, not variables which contain strings. That might be one issue you are running into. If you have truly found a combination of string arguments passed to REPLS that results in an infinite loop, please post an example so that the code can be fixed to accommodate that situation. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)