Author Topic: Pictures without TIOS vars?  (Read 2694 times)

0 Members and 1 Guest are viewing this topic.

Offline InternetCliche

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +0/-0
  • Sometimes, things happen. With explosions.
    • View Profile
Pictures without TIOS vars?
« on: November 15, 2011, 06:41:07 pm »
How do I turn a TIOS picture into an appvar so I can use it in axe programs without having to have it on my calc every time I want to compile? In a related question, how would I use it in my program. Appvars are one of the few things I haven't tried in Axe.
« Last Edit: November 15, 2011, 08:25:20 pm by InternetCliche »
Sometimes, things happen. With explosions.

Especially with explosions.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #1 on: November 15, 2011, 06:41:54 pm »
[Pic1]->A
GetCalc("appvSOMETHNG",768)->B
Copy(A,B,768
Sig wipe!

Offline InternetCliche

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +0/-0
  • Sometimes, things happen. With explosions.
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #2 on: November 15, 2011, 06:42:59 pm »
[Pic1]->A
GetCalc("appvSOMETHNG",768)->B
Copy(A,B,768
That would be a one-time thing to put the pic into the appvar, correct? And how would I then access it from archive?
Sometimes, things happen. With explosions.

Especially with explosions.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #3 on: November 15, 2011, 06:43:51 pm »
GetCalc("appvSOMETHING")->B
Copy(B,L6,768

This calls appvar to your buffer.
Sig wipe!

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #4 on: November 15, 2011, 06:45:10 pm »
and then to use in program (recall):
:GetCalc("appvSOMTHING",Y0) //gets the appvar
:Copy(Y0,L6,768) //copies into buffer (graph screen)

EDIT: ninja'd!!!!! :ninja:
« Last Edit: November 15, 2011, 06:47:25 pm by parser padwan »
ticalc.org | Cemetech | TI-Freakware | casiocalc.org

Spoiler For inactive:
Serving an LDS (Mormon) mission from Dec 2014 - Dec 2016

Offline InternetCliche

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +0/-0
  • Sometimes, things happen. With explosions.
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #5 on: November 15, 2011, 06:46:20 pm »
Those two look different, is there actually a difference between them?
Sometimes, things happen. With explosions.

Especially with explosions.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #6 on: November 15, 2011, 06:46:35 pm »
and then to use in program (recall):
:GetCalc("appvSOMETHING",Y0) //gets the appvar
:Copy(Y0,L6,768) //copies into buffer (graph screen)

EDIT: ninja'd!!!!! :ninja:
Parser, your code doesn't work because SOMETHING is 9 letters XD
* TBO_Yeong runs
Sig wipe!

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #7 on: November 15, 2011, 06:47:03 pm »
and then to use in program (recall):
:GetCalc("appvSOMETHING",Y0) //gets the appvar
:Copy(Y0,L6,768) //copies into buffer (graph screen)

EDIT: ninja'd!!!!! :ninja:
Parser, your code doesn't work because SOMETHING is 9 letters XD
* TBO_Yeong runs
oh woops, forgot the 8 letter limit. :P

EDIT:
Those two look different, is there actually a difference between them?

as far as I know there isn't, it's just a different way of doing it. :)
« Last Edit: November 15, 2011, 06:49:24 pm by parser padwan »
ticalc.org | Cemetech | TI-Freakware | casiocalc.org

Spoiler For inactive:
Serving an LDS (Mormon) mission from Dec 2014 - Dec 2016

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8206
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Pictures withous TIOS vars?
« Reply #8 on: November 15, 2011, 07:09:56 pm »
parser's works for archived variables, not yeong's.




Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #9 on: November 15, 2011, 07:10:32 pm »
parser's works for archived variables, not yeong's.
ooh so that's the difference XD
ticalc.org | Cemetech | TI-Freakware | casiocalc.org

Spoiler For inactive:
Serving an LDS (Mormon) mission from Dec 2014 - Dec 2016

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #10 on: November 15, 2011, 07:10:41 pm »
parser's works for archived variables, not yeong's.
That's the difference. :P
* TBO_Yeong always wondered why it didn't work on archived vars. XP
« Last Edit: November 15, 2011, 07:10:53 pm by TBO_Yeong »
Sig wipe!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8206
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Pictures withous TIOS vars?
« Reply #11 on: November 15, 2011, 07:11:58 pm »
Y0–Y9 store the flash page as well as the memory address, so you need it for archived stuff.
« Last Edit: November 15, 2011, 07:14:37 pm by Deep Thought »




Offline InternetCliche

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +0/-0
  • Sometimes, things happen. With explosions.
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #12 on: November 15, 2011, 07:28:29 pm »
Y0–Y9 store the flash page as well as the memory address, so you need it for archived stuff.
Ah, thank you for clearing that up. This will be really helpful. :)
Sometimes, things happen. With explosions.

Especially with explosions.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #13 on: November 15, 2011, 08:06:53 pm »
Shame on both of you for not including a check that the variable is successfully found. :P

Code: [Select]
!If GetCalc("appvPIC",Y₀)
  .Handle error
End
Copy(Y₀,L₆,768)
« Last Edit: November 15, 2011, 08:07:29 pm by Runer112 »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Pictures withous TIOS vars?
« Reply #14 on: November 15, 2011, 08:24:20 pm »
Shame on both of you for not including a check that the variable is successfully found. :P

Code: [Select]
!If GetCalc("appvPIC",Y₀)
  .Handle error
End
Copy(Y₀,L₆,768)
that's not what he asked. :trollface:
Sig wipe!