• Axe Q&A 5 5
Currently:  

Author Topic: Axe Q&A  (Read 588409 times)

0 Members and 1 Guest are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1740 on: April 23, 2014, 03:00:01 am »
I think the Pause is only needed in the second loop.

I think that I understand everything except of the Pt-Off(0,A++^8+Pic1
Except if you have a real 83+ (I mean not a new 83+.fr which is a 84+SE), I'd advise to close parentheses, brackets, etc. Keeping them open doesn't optimize anything in the compiled program and is just asking for bugs from the compiler (even though the compiler should work, but it's better not to tempt it) ;)
I also see you didn't try my code because I made a typo when writing (forgot a ","), so it actually didn't do anything :P
I corrected it in my post.

Now, what does it do ?
Well, this
[001122334455667788]

is the same as this
[00]
[11]
[2233]
[445566]
[77][88]

It doesn't seem interesting that way, I know, I am just pointing (pun intended) out that you can write your data the way you want.

Now, this
[001122334455667788]→Pic1
[001122334455667788]

is the same as this
[00]→Pic1
[112233445566778800] .this is pointed by Pic1+1
[1122334455667788]

and the same as this too
[0011]→Pic1
[223344556677880011] .this is pointed by Pic1+2
[22334455667788]

etc.
And Pt-Off(0,,A++^8+Pic1) displays the sprite pointed by Pic1, then the one pointed by Pic1+1, ... then the one pointed by Pic1+7 and then we go back to Pic1.

Do you see better what it does ? ;)
(or was it just the typo that prevented you from seeing it ? :P)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1741 on: April 23, 2014, 03:51:32 am »
I really tried the code and it really did nothing, because of that I said that I do not understand this part.
Now I understand it, thank you!

––– merged double post –––

I have a grey Sprite. Should it do that?
« Last Edit: April 23, 2014, 06:11:24 pm by Runer112 »
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline TheCoder1998

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 434
  • Rating: +20/-2
  • my art is written in code, not in graphite
    • View Profile
    • My website :D
Re: Axe Q&A
« Reply #1742 on: April 23, 2014, 04:01:38 am »
please don't double post :P
you can edit a previous post by clicking the modify button


also, you should introduce yourself here: http://www.omnimaga.org/introduce-yourself!/
my ticalc acc:

http://www.ticalc.org/archives/files/authors/113/11365.html

Spoiler For The Best Song Ever:


follow me on tumblr :)
www.rickdepizza.tumblr.com

check out my anilist :D
http://anilist.co/animelist/29701/Rickdepizza

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1743 on: April 23, 2014, 04:02:29 am »
It cuts my messages after (right before) a smily ???
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline TheCoder1998

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 434
  • Rating: +20/-2
  • my art is written in code, not in graphite
    • View Profile
    • My website :D
Re: Axe Q&A
« Reply #1744 on: April 23, 2014, 04:03:49 am »
what do you mean?
my ticalc acc:

http://www.ticalc.org/archives/files/authors/113/11365.html

Spoiler For The Best Song Ever:


follow me on tumblr :)
www.rickdepizza.tumblr.com

check out my anilist :D
http://anilist.co/animelist/29701/Rickdepizza

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1745 on: April 23, 2014, 04:06:02 am »
Now I removed the smilys and you see the whole messages:)
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline TheCoder1998

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 434
  • Rating: +20/-2
  • my art is written in code, not in graphite
    • View Profile
    • My website :D
Re: Axe Q&A
« Reply #1746 on: April 23, 2014, 06:42:21 am »
i really don't understand what you are talking about...

what message are you talking about?
my ticalc acc:

http://www.ticalc.org/archives/files/authors/113/11365.html

Spoiler For The Best Song Ever:


follow me on tumblr :)
www.rickdepizza.tumblr.com

check out my anilist :D
http://anilist.co/animelist/29701/Rickdepizza

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1747 on: April 23, 2014, 01:03:46 pm »
The replies or posts or mails or however you call it.
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline TheCoder1998

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 434
  • Rating: +20/-2
  • my art is written in code, not in graphite
    • View Profile
    • My website :D
Re: Axe Q&A
« Reply #1748 on: April 23, 2014, 01:38:25 pm »
which ones are you referring to?
my ticalc acc:

http://www.ticalc.org/archives/files/authors/113/11365.html

Spoiler For The Best Song Ever:


follow me on tumblr :)
www.rickdepizza.tumblr.com

check out my anilist :D
http://anilist.co/animelist/29701/Rickdepizza

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Axe Q&A
« Reply #1749 on: April 24, 2014, 05:04:12 am »
The doublepost.
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1750 on: April 24, 2014, 05:37:22 am »
So yeah, appvariables....
I want to have them in archive (of course), and I wonder if it is possible, instead of un-archiving it, to create a copy of it in ram, leaving the original in archive?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Axe Q&A
« Reply #1751 on: April 24, 2014, 05:44:04 am »
Of course you can. You can get read access by using files with getcalc(name,file). Then if you want speed, write access or sprites you can create a new tempvar and copy() your content there.

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Axe Q&A
« Reply #1752 on: April 24, 2014, 05:45:08 am »
yes, that is possible. You can use file.
 
For example, let say you have appvDATA in archive, and you want a copy in ram.
You can do :
Code: [Select]
GetCalc("appvDATA",Y0)
.Y0 is the function token, it specifie the file you want to put the appv in. You have 10 file (Y0-Y9)
{Y0-2}r->A
.A will hold the size of the appv, stored 2 byte before the start of the appv.
.Next line will create a temporary vars (delete at the exit) with the size of the appv
 GetCalc("tmpDATATMP",A)->P
 Copy(Y0,P,A)
.this is allowed, but not everything can be done with file. (like 0->{Y0}r)
.P is now the pointer to appv.

In this code, I didn't check if all process succed in there task, but you most likely want to check the return value of GetCalc (0 if there is an error)
Also, when you want to store back your appv, you should be able to use Copy(P,Y0,A) (but I am not sure of this) (and based on the fact that A and P are not destroyed)
 
EDIT :  [-.-]~
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1753 on: April 24, 2014, 05:47:05 am »
GetCalc returned 0 for me if the appvar was in Archive IIRC....
Wait, i didn't use that function symbol, what is it for? O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Axe Q&A
« Reply #1754 on: April 24, 2014, 05:51:17 am »
It specify the file you want to put your appv in.
It is logical the getcalc return you 0 if the appv was in archive, since it couldn't read it.
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html