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

0 Members and 1 Guest are viewing this topic.

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Save screen on a variable pic calculator
« on: September 12, 2010, 04:49:56 am »
Here I ask the right and left and nobody seems to know if possible, i want :
Copy the screen (StoreGDB) and then save it to a variable Pic1-Pic9 reusable in TI-Basic.

no idea?
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 kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #1 on: September 12, 2010, 05:03:02 am »
Sry i found. My post is useless.
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: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Save screen on a variable pic calculator
« Reply #2 on: September 12, 2010, 05:04:59 am »
What solution did you find to the problem? Could you post the source code?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Save screen on a variable pic calculator
« Reply #3 on: September 12, 2010, 05:10:01 am »
I think it has to do with like taking the the buffer and using GetCalc( to store it to Pic#. I don't remember though, someone else asked not to long ago though I think.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #4 on: September 12, 2010, 05:36:39 am »
that's same function than other Variable, just need "Pic1"=>Str1 and next u manipulate. it's just i write Pic1 in TI-Editor and calc understand P-i-c-1 :/
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 kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #5 on: September 12, 2010, 06:09:27 am »
As i open this topic for help, i ask a new stuff :
when i do
"Pic1"=>Str1
"Pic2Pic3Pic4"
for use Pic2 or Pic3..etc i do Str1+4 and fail, next i do Pic1+1 and crash.. no idea? =)
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 #6 on: September 12, 2010, 10:05:52 am »
Oh, it's because when you "store" to a string, it actually adds a zero byte to the end of it, so

"Pic1"→Str1

would actually become

"Pic1"
[00]


because in assembly, strings need to end in a zero. So to make your code work, try

"Pic1"→Str1
"Pic2"
[00]
"Pic3"
[00]
"Pic4"
[00]


then access it with Str1.
« Last Edit: September 12, 2010, 10:06:29 am by Deep Thought »




Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Save screen on a variable pic calculator
« Reply #7 on: September 12, 2010, 10:45:34 am »
Ok, then i type Str1+1 or Str1+4?
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 #8 on: September 12, 2010, 10:46:42 am »
Yeah, for GetCalc(.

Actually, you might want to check first with everything archived. I haven't tried it yet.




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 #9 on: September 12, 2010, 10:48:10 am »
You use Str1, Str1+2, Str1+4, and Str1+6, because each [00] is also a byte.
"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 #10 on: September 12, 2010, 10:51:45 am »
Ahh, whoops, forgot about that x.x

Good thing you got here, calcdude. Yeah, count in 2s instead.




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 #11 on: September 12, 2010, 10:57:26 am »
Actually, wait. I think it actually goes up 3 at a time...
Str1, Pic1, etc. are actually two bytes...
Edit: Actually, don't pad with [00]'s at all. Use "Pic1Pic2Pic3Pic4"->Str1 and increment two at a time.
« Last Edit: September 12, 2010, 10:58:39 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 #12 on: September 12, 2010, 10:58:36 am »
What? Oh crap. Right, three bytes.

As I said, I never checked :P
« Last Edit: September 12, 2010, 11:01:09 am by Deep Thought »




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 #13 on: September 12, 2010, 10:59:35 am »
^ And my above note. The padding should be unnecessary. ;D
I might still be wrong though...
* calcdude checks to make sure
« Last Edit: October 09, 2010, 05:35:14 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 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 #14 on: September 12, 2010, 11:01:16 am »
Actually, for calcdude's edit, that still doesn't work. There's that extra [00], remember?

Try

[]→Str1
"Pic1Pic2Pic3Pic4"


EDIT: Oh, wait, never mind. That works.

EDIT2: NO! Wait! I think you do need padding: http://future_history.freehostia.com/Files/Resources/ASM/ASMin28Days/lesson/day19.html (go down to Matrices, Pictures, Strings).
« Last Edit: September 12, 2010, 11:05:30 am by Deep Thought »