Post Reply 
A Free42 (and HP42S) tricky question
09-26-2020, 01:34 AM
Post: #7
RE: A Free42 (and HP42S) tricky question
(09-26-2020 12:01 AM)Valentin Albillo Wrote:  As EDIT is obviously intended to give the user the opportunity to do something, namely either enter data or review data, it clearly belongs to that class of instructions and thus should also stop execution momentarily as they do, that much is obvious to anyone. Having EDIT continue program execution is abnormal and serves no useful purpose.

I disagree. I do, in fact, use EDIT or EDITN programmatically sometimes.
For example, to create a 2x2 matrix populated with the numbers 1..4:

Code:
00 { 32-Byte Prgm }
01▸LBL "CRMAT"
02 2
03 ENTER
04 NEWMAT
05 EDIT
06 1
07 →
08 2
09 →
10 3
11 →
12 4
13 EXITALL
14 END

Of course you could also use INDEX, J+, and STOEL to achieve the same result, but using EDIT/EDITN and → can be more convenient.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: A Free42 (and HP42S) tricky question - Thomas Okken - 09-26-2020 01:34 AM



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