Author Topic: Keep program output on graph screen?  (Read 3447 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael.3545

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +13/-7
    • View Profile
Keep program output on graph screen?
« 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?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Keep program output on graph screen?
« Reply #1 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.
« Last Edit: May 05, 2012, 10:32:48 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Michael.3545

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +13/-7
    • View Profile
Re: Keep program output on graph screen?
« Reply #2 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. 



Bonus points if you know what it is!
Spoiler For the answer:
It's a Ulam spiral!

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: Keep program output on graph screen?
« Reply #3 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?
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Michael.3545

  • LV3 Member (Next: 100)
  • ***
  • Posts: 69
  • Rating: +13/-7
    • View Profile
Re: Keep program output on graph screen?
« Reply #4 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.