program print in wp34s



#11

[print]PROG called directly from catalog prints R/S command as "RUN".
I think it is a mistake, it should look as "STOP".
I traced it to function prt_niladic in file prt.c:

#ifdef COMPILE_CATALOGUES
const char *p = niladics[idx].nname;
#else
const char *p = (idx == OP_RS && ! Running && ! XromRunning && State2.runmode) ? "RUN" : niladics[idx].nname;
#endif

I cannot imagine situation when I would want to see R/S opcode as "RUN", but somebody went to trouble of putting this special case together, so I am obviously missing something. What am I missing?


#12

No idea here. The change was originally revision 2932 and later slightly modified with 2982. I certainly don't remember the reasoning behind this one.


Pauli


#13

I know the reason. :-)

It has to do with tracing the R/S key or showing the function name in the display before NULL is shown. I obviously missed this one when I added program printing.


#14

Why would you want to show it as RUN? It looks like "STOP" when viewing the program. And executing it in single step mode does not actually start the execution (as is mu interpretation of word "run")


#15

RUN is the proper "press and hold" command name, STOP the proper program code.


#16

Quote:
RUN is the proper "press and hold" command name

I do not understand this. Could you please explain?
What exactly is "run" when I press and hold?


#17

A key can be held down and will show the command name as long as the key is down. The name will be replaced by NULL if held down too long. The behavior was copied from the 41C. Holding down R/S should display RUN.


#18

Ah, now I get it. I misinterpreted what press and hold means.

In this case there is another bug: when you press and hold down arrow while tracing program, R/S opcode displays as RUN, when it would probably be less confusing if it displayed STOP, same as opcode display.


#19

Can you check the display again? I've changed the behavior such that STOP is displayed always, except for holding down the R/S key which is shown as RUN.


#20

I checked it with emulator, seems to work. Flashing the real thing is kind of involved for me and I need a custom build, so I will have to do it later.

I will try to trick it -- hold r/s while it is printing. I checked that holding r/s does not interrupt printing, but you cannot do this on emulator -- keyboard is blocked while it executes command.


#21

On the device, R/S or ON should interrupt printing. Have you checked it? It might be that the emulator is different.


#22

Marcus, I checked it on a device. I started printing program from the menu, immediately pressed r/s and kept holding it while it printed. It printed entire program (about 20 lines) to the end with me holding the r/s all this time. It was uncorrected firmware, so all stops in the code showed up as "RUN", but, obviously, it does not mean anything. Printing could have been completed in the fraction of a second before I hit r/s, and the printer could have been printing from the buffer, but i doubt that. I think I have set a half a second delay between lines.

Emulator, on the other hand, does not allow key press at all: once you start program print, and then click on r/s, the click will not register. Or at least, it does not look like it, button does not change appearance as it usually does upon click.

BTW, on the hp-42s press-and-hold for r/s shows the program line where the program pointer is, not "RUN". I checked it with free42 emulator, but manual says same thing.


#23

Have you tried holding down ON instead to stop the listing?

Quote:
BTW, on the hp-42s press-and-hold for r/s shows the program line where the program pointer is, not "RUN".

That's worth considering on the 34S.

#24

Finally got to build and flash updated software. STOP prints as it should. Could not trick it by printing while holding R/S -- still prints STOP.


Possibly Related Threads…
Thread Author Replies Views Last Post
  [HP-PIRME] BUG Pretty Print, Solution: abs => |...|, ABS => ||...|| CompSystems 2 2,260 12-13-2013, 09:36 AM
Last Post: CompSystems
  HP Prime print terminal CD Dodds 4 2,668 12-06-2013, 10:25 PM
Last Post: CD Dodds
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,788 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  Line Print Les Koller 6 2,500 11-11-2013, 09:38 AM
Last Post: Geoff Quickfall
  HP Prime Programming Tutorial #2: MSGBOX, IF-THEN-ELSE, PRINT, FOR Eddie W. Shore 0 1,289 10-26-2013, 03:51 PM
Last Post: Eddie W. Shore
  [HP-Prime CAS] No pretty print (MathBook) CompSystems 2 1,446 08-22-2013, 04:07 PM
Last Post: CompSystems
  How do you print a 'data' file on the HP 71B to the HP 2225B thinkjet? Geoff Quickfall 3 1,717 08-18-2013, 04:32 PM
Last Post: Geoff Quickfall
  [HP Prime CAS] No Pretty Print (Text Book) CompSystems 1 1,225 08-17-2013, 12:41 PM
Last Post: CompSystems
  WP34s program submission: Quadratic fit Andrew Nikitin 2 1,294 06-13-2013, 02:44 AM
Last Post: Paul Dale
  WP 34S Owner's Manual released for print Walter B 28 7,752 12-10-2012, 08:36 AM
Last Post: Walter B

Forum Jump: