Search found 41 matches

by michaelzinn
Tue May 28, 2019 6:56 pm
Forum: Bug reports
Topic: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack
Replies: 11
Views: 15900

Re: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack

dlachieze wrote:
Tue May 28, 2019 5:37 pm
There is an easier workaround as described in the post #46 of the discussion I linked above: just replace the GSB I by a GSB to a label followed by GTO I.
That's brilliant! Thank you very much.
by michaelzinn
Tue May 28, 2019 5:28 pm
Forum: Bug reports
Topic: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack
Replies: 11
Views: 15900

Re: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack

How would you go about writing your own gosub stack? Do you mean use GTO I with flags and such to simulate a GSB/RTN ? Not sure, one way would be to put the stack pointer in register 0, having it contain the register number that contains the line number to jump to on return. GOSUB could then look l...
by michaelzinn
Tue May 28, 2019 8:19 am
Forum: Bug reports
Topic: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack
Replies: 11
Views: 15900

Re: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack

but a Gosub to an arbitrary line number is poor programming so they probably prevented it. Not if you only use this to jump to specific line numbers because you ran out of labels. In any case though the DM15 should clearly behave the same as genuine HP-15Cs. Personally, I think it should behave lik...
by michaelzinn
Mon May 27, 2019 9:31 pm
Forum: Bug reports
Topic: [DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack
Replies: 11
Views: 15900

[DM15L M1B V28] Using R/S in a subroutine reached by line number wipes the call stack

If you continue a subroutine that was stopped with R/S, the next RTN will only work if the subroutine was called by label (Either directly or by a positive number in the I register), not if it was called by line number (negative number in I). To be precise: - GTO works always - GSB A works - GSB A w...
by michaelzinn
Fri May 24, 2019 11:44 am
Forum: DM1x/DM41
Topic: DM15L programming
Replies: 18
Views: 16590

Re: DM15L programming

Personally, I don't need this, but you could detect program mode by checking that the display shows three digits followed by a hyphen.
Probably not worth it, though, given that people who want readable calculator code can just buy a better calculator instead.
by michaelzinn
Thu May 23, 2019 9:14 pm
Forum: Bug reports
Topic: [DM15L M1B V28] Can't jump past line 448
Replies: 11
Views: 16106

Re: [DM15L M1B V28] Can't jump past line 448

P.S.: This also means that you can't jump to line numbers for editing purpose, i.e. GTO CHS 449, neither in program mode nor in run mode, so you'll have to navigate your code with SST and BST instead. This is already on David's radar. I drew his attention to it yesterday :) Great! Let's hope he'll f...
by michaelzinn
Wed May 22, 2019 10:38 am
Forum: Bug reports
Topic: [DM15L M1B V28] Can't jump past line 448
Replies: 11
Views: 16106

Re: [DM15L M1B V28] Can't jump past line 448

[...]A good question to ask though is how important is this really? DM15's (both cc and L flavors) have been sold for 5+ years, and this is the first time this has even come up. To see it from SM's viewpoint, how many more will be sold if the work is even feasible? I'm certain that if justified, it...
by michaelzinn
Tue May 21, 2019 9:50 pm
Forum: Bug reports
Topic: [DM15L M1B V28] Can't jump past line 448
Replies: 11
Views: 16106

Re: [DM15L M1B V25] Can't jump past line 448

Thanks for the hint, I updated to DM15 M1B V28 and still get the same error (Can't jump to line numbers above 448, neither with GTO nor with GSB) [...] I'm sure the Matrix and Program Execution code is far too intricate (and no doubt optimized as well) to try to reverse engineer. I suspect that you...
by michaelzinn
Tue May 21, 2019 6:32 pm
Forum: Bug reports
Topic: [DM15L M1B V28] Can't jump past line 448
Replies: 11
Views: 16106

Re: [DM15L M1B V25] Can't jump past line 448

rprosperi wrote:
Tue May 21, 2019 3:13 am
[...] why not check it out with V28?
Thanks for the hint, I updated to DM15 M1B V28 and still get the same error (Can't jump to line numbers above 448, neither with GTO nor with GSB)
by michaelzinn
Mon May 20, 2019 4:21 pm
Forum: DM1x/DM41
Topic: [POLL] Compiler for DM15L ?
Replies: 15
Views: 16081

Re: [POLL] Compiler for DM15L ?

Compiling works now, but only for programs smaller than 448 lines because of viewtopic.php?f=11&t=2186.

I'll see if I can clean up the code and release it in the next days/weeks/when I have time.