Omnimaga

Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: Michael.3545 on May 05, 2012, 10:19:39 pm

Title: Keep program output on graph screen?
Post by: Michael.3545 on May 05, 2012, 10:19:39 pm
When an axe program ends, it leaves anything you drew on the home screen.  (Unless you clear it first, of course)  I'd like to get this effect, only on the graph screen instead.  For example, PrettyPrint leaves its output on the graph screen, and you can refer back to it later, or store it to a picture if you wish.  Is this possible in Axe?
Title: Re: Keep program output on graph screen?
Post by: thepenguin77 on May 05, 2012, 10:29:25 pm
Put Asm(FCCB0386) near the end of your program.

res graphDraw, (iy + graphFlags) for the asm minded.


What's happening is that the OS has the graph screen marked as dirty, so it will try to redraw it the next time you go to the graph screen. This simple flag reset will mark it as clean so the OS won't touch it.
Title: Re: Keep program output on graph screen?
Post by: Michael.3545 on May 05, 2012, 11:35:03 pm
I don't notice any difference with or without the Asm(FCCB0386).  Sometimes it works, sometimes it doesn't.

Well, this is what I have been working on.  It is about 9001 times faster than the TIBASIC version I made first. 

(http://i.imgur.com/x19du.gif)

Bonus points if you know what it is!
Spoiler For the answer:
It's a Ulam spiral (http://en.wikipedia.org/wiki/Ulam_spiral)!
Title: Re: Keep program output on graph screen?
Post by: nikitouzz on September 19, 2012, 12:40:42 pm
I take this post to ask how to keep the screen in axis at the end of the program? but this time on the screen and normal all at once?
Title: Re: Keep program output on graph screen?
Post by: Michael.3545 on September 19, 2012, 03:56:25 pm
I take this post to ask how to keep the screen in axis at the end of the program? but this time on the screen and normal all at once?

What?  Firstly, this topic has been inactive for four months.  Secondly, it isn't axis, it is Axe.  Thirdly, your questions aren't really questions, just statements ending in question marks.

But to answer what I assume you intended to ask, this post is asking if there is a way to reliably stay on the graph screen after a program exits, instead of what normally happens, which is returning to the home screen or clearing the graph screen.

Essentially my program draw something to the graph screen, and I wanted that output to remain visible after the program exits.  This is no longer a problem, however, as my program works fine.