.END. in programs

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Post Reply
airevspin
Posts: 10
Joined: Sat Jul 04, 2020 12:08 am
Location: France

.END. in programs

Post by airevspin »

Bonjour.
J'ai un libellé ".END." dans la liste des programmes qui ne correspond a rien (voir photo).
Comment peut on le supprimer ?
Merci bien.

Hello.
I have a label ".END." in the list of programs which does not correspond to anything (see photo).
How can we remove it?
Thanks very much.
Attachments
20230327_161050.jpg
20230327_161050.jpg (24.6 KiB) Viewed 2789 times
DM42 #05422
Pyjam
Posts: 495
Joined: Sat Jan 28, 2023 5:01 pm
Location: France

Re: .END. in programs

Post by Pyjam »

Il me semble que ça m’est arrivé une fois. Essaie de supprimer le END (sans point) de ton dernier programme en mémoire.

  Optimot : The ⌥ keyboard layout optimized for French and English (ŵïþ ʃʉŋ 𝕂åʁɒꝃțɛɹṩ).
airevspin
Posts: 10
Joined: Sat Jul 04, 2020 12:08 am
Location: France

Re: .END. in programs

Post by airevspin »

Merci Pyjam !!
ça a fonctionné !! :)
DM42 #05422
dlachieze
Posts: 613
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: .END. in programs

Post by dlachieze »

On the 42S, if a program doesn’t contain a global label the END instruction of this program appears in the program catalog instead of the missing global label.
This has two usages:
1. To show programs missing a global label
2. To allow to goto the end of a program without a global label with GTO END to either modify it, add a global label or delete it.

In your case, between the END of the last program and the .END. of the program memory there was no global label, this is why .END. was showing up in the program catalog.
DM42: 00425 - DM41X: β00066 - WP43: 00042
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: .END. in programs

Post by rprosperi »

Thanks Didier for the fuil explanation.

@airevspin & @Pyjam - English please in the Forums (using both languages is also fine).
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
User avatar
rudi
Posts: 415
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: .END. in programs

Post by rudi »

Why bother about the .END. in the first place?
I see it as the place in memory, where you can enter the next new program.

For me, since my HP-41, is has been SOP to enter GTO.. and then PRGM to begin implementing a new program.
Once You have gone through the trouble of removing the .END. as described above, try entering GTO.. and have a look again, .END. is (conveniently) back again ;-)
(And I slightly remember, that using GTO.. was also a part of making a program un-PRIVATE backin the HP-41 days :lol:
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
Thomas Okken
Posts: 1101
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: .END. in programs

Post by Thomas Okken »

rudi wrote:
Tue Mar 28, 2023 5:33 am
Why bother about the .END. in the first place?
It just makes things a lot easier, both in terms of the calculator's internals and in terms of the user interface, if it is enforced that there is always at least one program in memory. And that's what the .END. is for.
User avatar
rudi
Posts: 415
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: .END. in programs

Post by rudi »

Thomas Okken wrote:
Thu Apr 06, 2023 7:12 pm
rudi wrote:
Tue Mar 28, 2023 5:33 am
Why bother about the .END. in the first place?
It just makes things a lot easier, both in terms of the calculator's internals and in terms of the user interface, if it is enforced that there is always at least one program in memory. And that's what the .END. is for.
That what I meant, why bother and be annoyed by the .END.
I like it and am used to it from HP41 and HP42.
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
Post Reply