My understanding is that AVIEW displays the alpha register and waits for the user to press any key (but not R/S) before resuming the program. Is there a way of displaying text that can be made to change without user input?
Sorry if this is such a brain-dead question, I just cannot seem to figure it out. On the DM42 I'm sure I've written programs that don't halt with AVIEW and wait for input, but that's what the manual says AVIEW does on the HP-41cx
AVIEW without prompt (on DM41)
-
- Posts: 564
- Joined: Mon Apr 24, 2017 8:38 pm
Re: AVIEW without prompt (on DM41)
Figured it out. AVIEW does not wait for response. Sorry for being dopey.
Edited to add: but I'm sure it does wait for user response in other programs I've written. I need to fiddle a bit more with it.
Edited to add: but I'm sure it does wait for user response in other programs I've written. I need to fiddle a bit more with it.
Re: AVIEW without prompt (on DM41)
When flag 21 is SET (printer present), AVIEW will stop, and when clear, it will not stop.
Cheers, Werner
Cheers, Werner
41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE, DM15L
-
- Posts: 564
- Joined: Mon Apr 24, 2017 8:38 pm
Re: AVIEW without prompt (on DM41)
Thanks Werner, but I'm afraid that hasn't cleared it up. I cleared flag 21 and ran a program. Part of it said the following
Where GRAD is a program that calculates gradient of a regression line using the stats registers. I expected it to flash "GRADIENT=" on the screen briefly before showing the value (the GRAD program just leaves the gradient on the X register after guffing through some arithmetic and recalling some stats stuff). I expected to have to put a PSE or a STOP in after the AVIEW to either pause for a second or force a R/S keypress from the user to move on to the calculation of the gradient, but the program stops and waits for a keypress before executing GRAD. Strange thing is, I don't recall the DM42 I have doing the same thing (but my memory may be faulty).
EDIT TO ADD: It should be possible to have a bunch of AVIEWs with PSEs between them so that messages can scroll through without needing user input, but I'm too dopey to figure out how.
Code: Select all
CLA
"GRADIENT="
AVIEW
XEQ GRAD
STOP
EDIT TO ADD: It should be possible to have a bunch of AVIEWs with PSEs between them so that messages can scroll through without needing user input, but I'm too dopey to figure out how.
-
- Posts: 564
- Joined: Mon Apr 24, 2017 8:38 pm
Re: AVIEW without prompt (on DM41)
Ah, it is possible. Honestly, sometimes I embarrass myself.keithdalby wrote: ↑Wed Jan 31, 2018 12:10 pmIt should be possible to have a bunch of AVIEWs with PSEs between them so that messages can scroll through without needing user input, but I'm too dopey to figure out how.
Code: Select all
LBL TEST
CLA
"TEST 1"
AVIEW
PSE
"TEST 2"
AVIEW
END
EDIT TO ADD: ARCL . X with an AVIEW seems to do the job I was after, which is showing the X register when I want to during execution of a program, with ALPHA messages interwoven. Happy now. Sorry I'm such a dunce.