Author Topic: Save screen on a variable pic calculator  (Read 14336 times)

0 Members and 1 Guest are viewing this topic.

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #15 on: September 12, 2010, 11:10:04 am »
Yes first time my program work ^^ i've a version alpha 0.9.0 almost stable!
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Save screen on a variable pic calculator
« Reply #16 on: September 12, 2010, 11:10:54 am »
Great! Which one did you use, though?




Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #17 on: September 12, 2010, 11:17:53 am »
i'll update my post, that's megr2.0 prgm.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Save screen on a variable pic calculator
« Reply #18 on: September 12, 2010, 11:20:11 am »
Oh, but I meant which code you used to fix that Pic > Str thing (just for reference).




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #19 on: September 12, 2010, 11:21:57 am »
Okay... looking at the developer's guide (by TI), it seems that each of "Pic1" etc. are three bytes and need to be followed by a 0.
So it should look like
Code: [Select]
"Pic1->Str1
"Pic2
[00]
"Pic3
[00]
"Pic4
[00]
And they're accessed by Str1, Str1+4, Str1+8, and Str1+12.
There we go; I'm almost certain I'm correct this time :)
Edit: Screenshot o'proof:
« Last Edit: September 12, 2010, 11:32:23 am by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Save screen on a variable pic calculator
« Reply #20 on: September 12, 2010, 11:44:21 am »
Oh, wow, ignore the earlier posts in that case. I wonder how Kindermoumoute managed to make it work...




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #21 on: September 12, 2010, 11:46:58 am »
I don't know... maybe he used only Str1 and didn't try the other ones... idk.
Well, I'm glad we finally figured this out. Good luck Kindermoumoute!
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #22 on: September 12, 2010, 01:57:08 pm »
If you have a variable S which is the S-th pic, you can save pictures like this instead:

Code: [Select]
"Pic1"->Str1   .Only need one string name
S->{Str1+2}    .Changes to Pic2, Pic3, etc.
GetCalc(Str1)  .Use the string
« Last Edit: September 12, 2010, 01:57:53 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #23 on: September 12, 2010, 02:01:59 pm »
Wait, isn't it that storing S to {Str1+2} corresponds to the S+1-th pic?
In my above screenie, you'll see they are from $00-$03, and I used pics 1-4 ;D
« Last Edit: September 12, 2010, 02:02:19 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #24 on: September 12, 2010, 02:28:11 pm »
Look post of my program megr2.0 drawing, i use this command.
« Last Edit: September 12, 2010, 02:30:52 pm by kindermoumoute »
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Save screen on a variable pic calculator
« Reply #25 on: September 12, 2010, 02:31:20 pm »
Wow, just looked at the code. I really need to get back into Axe. I didn't even know how to store stuff to OS variables x.x

_player1537

  • Guest
Re: Save screen on a variable pic calculator
« Reply #26 on: September 12, 2010, 02:48:54 pm »
Wow, just looked at the code. I really need to get back into Axe. I didn't even know how to store stuff to OS variables x.x
Don't worry, I don't either :P

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #27 on: September 13, 2010, 04:36:34 pm »
hm ok, i understand what u say, i write Pic+2 then he can work because my prgm use always Pic+2, but pics in calc did not appear. I had more memory corrupt. So I corrected in Pic+4 and big reset of the death (I won 10ko for exactly the same programs in memory :o ) and this works!
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Save screen on a variable pic calculator
« Reply #28 on: September 13, 2010, 05:02:56 pm »
I hope you did not lose any precious data :O

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Save screen on a variable pic calculator
« Reply #29 on: September 13, 2010, 07:22:32 pm »
If you have a variable S which is the S-th pic, you can save pictures like this instead:

Code: [Select]
"Pic1"->Str1   .Only need one string name
S->{Str1+2}    .Changes to Pic2, Pic3, etc.
GetCalc(Str1)  .Use the string

Oh, yeah! I'm still not used to SMC :)

hm ok, i understand what u say, i write Pic+2 then he can work because my prgm use always Pic+2, but pics in calc did not appear. I had more memory corrupt. So I corrected in Pic+4 and big reset of the death (I won 10ko for exactly the same programs in memory :o ) and this works!

Are you talking about Quigibo's post? It's {Str1+2}, not Pic1. And I hope you didn't lose anything important :-\