Search found 615 matches

by Thomas Okken
Wed Dec 02, 2020 11:15 pm
Forum: Usage tips, tricks and problem reports
Topic: .END. in XEQ menu
Replies: 10
Views: 757

Re: .END. in XEQ menu

Yes, GTO END / XEQ END exist purely to allow the user to get to programs without global labels. These operations cannot be programmed; the calculator just beeps if you try them in PRGM mode. The behavior of GTO END vs. XEQ END is easy to explain: GTO END just takes you to the END, as expected; XEQ E...
by Thomas Okken
Tue Dec 01, 2020 10:27 pm
Forum: Usage tips, tricks and problem reports
Topic: .END. in XEQ menu
Replies: 10
Views: 757

Re: .END. in XEQ menu

Let's say you have two programs in memory, like these: 01 LBL "FOO" 02 RCL 00 03 PI 04 + 05 5 06 Y^X 07 FP 08 STO 00 09 END 01 LBL 02 02 RCL 00 03 9821 04 * 05 0.211327 06 + 07 FP 08 STO 00 09 .END. When you are in the second program, you can reach the first using GTO "FOO" or XE...
by Thomas Okken
Tue Dec 01, 2020 9:34 pm
Forum: Usage tips, tricks and problem reports
Topic: .END. in XEQ menu
Replies: 10
Views: 757

Re: .END. in XEQ menu

The .END. (and also regular END instructions) are shown in the XEQ menu — also known as the program catalog — so that you can access programs that contain no global LBL. When you enter a global label, that is, any ALPHA label except labels A-J and a-e, you'll notice that the .END. is no longer shown.
by Thomas Okken
Tue Dec 01, 2020 4:40 pm
Forum: User Software Contributions
Topic: 01 - HiLo Game (one of my first 41 prgs)
Replies: 6
Views: 410

Re: 01 - HiLo Game (one of my first 41 prgs)

After having watched the MythBusters "magnetic money clip" episode, I'm amazed that magnetic cards can lose their data at all! (I'm having trouble finding that episode now but Physics Girl has a video on the subject as well.) I have an HP-67 that I bought used (heavily, by the looks of it)...
by Thomas Okken
Tue Dec 01, 2020 1:20 am
Forum: Discuss!
Topic: Calculator Forensics results
Replies: 6
Views: 600

Re: Calculator Forensics results

Note that even though it works with 34 digits, Free42 will only display up to 12 digits, like the HP-42S. You can see the contents of the X register at full precision using SHOW, i.e. [Shift] [.]. SHOW will show the full precision for 2 seconds before reverting to the normal display, but you can see...
by Thomas Okken
Mon Nov 30, 2020 7:37 pm
Forum: Usage tips, tricks and problem reports
Topic: DM42 Print full precision X-register or Stack?
Replies: 2
Views: 294

Re: DM42 Print full precision X-register or Stack?

The FWIW program will do that. In case it's not included in the FAT filesystem, you can get it at https://thomasokken.com/free42/42progs/
by Thomas Okken
Thu Nov 26, 2020 12:23 pm
Forum: DM42
Topic: Any tricks for programs that write programs?
Replies: 9
Views: 688

Re: Any tricks for programs that write programs?

As far as advanced error handling is concerned, I haven't really thought about it, but I suppose try/catch might be useful. Something like that does already exist but only for catching math errors in functions called by SOLVE.
by Thomas Okken
Thu Nov 26, 2020 12:20 pm
Forum: DM42
Topic: Any tricks for programs that write programs?
Replies: 9
Views: 688

Re: Any tricks for programs that write programs?

Yep, that's on my list, too. Details still to be determined but the objective is to be able to create functions that behave exactly like built-in unary or binary operators including the ability to throw any error. The error thing takes care of conditionals since those are handled using special error...
by Thomas Okken
Wed Nov 25, 2020 10:33 am
Forum: DM42
Topic: Any tricks for programs that write programs?
Replies: 9
Views: 688

Re: Any tricks for programs that write programs?

Well, the logic to translate text to programs already exists for program import, so most of the work for adding an "add program line" function has already been done. I'll have to think about the details. I'm busy with other things at the moment but I'll revisit this topic when I have more ...
by Thomas Okken
Wed Nov 25, 2020 3:43 am
Forum: DM42
Topic: Any tricks for programs that write programs?
Replies: 9
Views: 688

Re: Any tricks for programs that write programs?

The short answer is no, there is no trick, programs can't create or modify programs in Free42. I'd suggest that RPL is the platform of choice if you want to create programs that create programs, but since I'm in the middle of writing some big enhancements anyway... what kind of code were you thinkin...