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

0 Members and 5 Guests are viewing this topic.

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: Axe Q&A
« Reply #735 on: October 11, 2011, 03:43:00 pm »
Which would be faster/more optimized to check for?
If rand^2
or
!If rand^2
Or would they be the same?
Exactly the same. They're two forms of conditional jumping in assembly.




Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Axe Q&A
« Reply #736 on: October 11, 2011, 03:49:01 pm »
I wonder if there is a function that checks if to Datas are equals ?
I mean (sorry^^), something like this:
compare(PTR1,PTR2,SIZE), wich would return 1 if they are the same, and 0 otherweise ?
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

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: Axe Q&A
« Reply #737 on: October 11, 2011, 03:53:30 pm »
Equ>String() does that.




Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Axe Q&A
« Reply #738 on: October 11, 2011, 04:02:10 pm »
Aww..
Yes but it's for 1.0.*, right ?
I'm still using 0.5.0, so what I do is

0->M
For(A,0,5
(({P+A})=({O+A}))+M->M
End

and check if M=6 or not..
or is there an easier way ?
« Last Edit: October 11, 2011, 04:03:13 pm by Wellen »
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #739 on: October 11, 2011, 05:17:21 pm »
The easiest way is to upgrade to 1.0.5 :) But your way works fine for your purposes

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axe Q&A
« Reply #740 on: October 11, 2011, 05:26:11 pm »
0.5.3 has it. It actually checks for differences, and returns the number of bytes it looked through to find that abberance. If it doesn't find a mismatch, it returns 0
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Axe Q&A
« Reply #741 on: October 11, 2011, 05:50:19 pm »
I tried with 0.5.3b
It seems Equ>String( doesn't work with files ?
I loaded an appvar into Y0, used it with another pointer in Equ>String, and Axe says : "Error : File Misuse"
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axe Q&A
« Reply #742 on: October 11, 2011, 05:51:46 pm »
I tried with 0.5.3b
It seems Equ>String( doesn't work with files ?
I loaded an appvar into Y0, used it with another pointer in Equ>String, and Axe says : "Error : File Misuse"
Yeah, Axe is kinda tetchy about that. There's really no way around it, other than UnArchiving it.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Axe Q&A
« Reply #743 on: October 11, 2011, 05:58:36 pm »
I tried with 0.5.3b
It seems Equ>String( doesn't work with files ?
I loaded an appvar into Y0, used it with another pointer in Equ>String, and Axe says : "Error : File Misuse"
You could copy the string to a SafeRAM area, or a var in the RAM, then run the comparison from there.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Axe Q&A
« Reply #744 on: October 12, 2011, 04:51:36 am »
And wouldn't my "method" (just do a simple For-loop) be better than unarchiving/archiving (what I'd like to avoid) and/or creating a new Data ?
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Axe Q&A
« Reply #745 on: October 12, 2011, 05:03:59 am »
I need to have smoothscrolling for my game, and I would like to have my player always at the same point(24,40). I just don't know how to do this good. I would really appreciate the help.:D Also, I think I must use inflation by 256. I just don't know how, becuase this is scrolling? You can view my source code here: http://ourl.ca/12726/251417;topicseen#new


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Axe Q&A
« Reply #746 on: October 12, 2011, 10:17:20 pm »
Did my post in the Grey: zContest Entry thread help, or should I explain in more depth?
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Axe Q&A
« Reply #747 on: October 13, 2011, 06:38:03 am »
I think it will help. But if I notice that I need more help I will ask it. :)


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Axe Q&A
« Reply #748 on: October 14, 2011, 07:00:40 am »
I'm working on a little project for the zContest (i'll make a thread soon :P), that requires a password, stored in an appvar.
I'd like that appvar to be protected (so that you can't guess what is the password when you're reading it).
How could I do ?
« Last Edit: October 14, 2011, 07:00:54 am by Wellen »
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #749 on: October 14, 2011, 08:48:16 am »
you could encrypt it using some random code (that of course is stored in the appvar). You can also store it backwards.
also:
Quote
-/...././/--./.-/--/.
translated: THE GAME :(
I used to knew the morse alphabet, forgot it :P
« Last Edit: October 14, 2011, 08:51:32 am by aeTIos »
I'm not a nerd but I pretend: