Author Topic: Axe Parser  (Read 550118 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser
« Reply #450 on: April 17, 2010, 01:16:13 am »
Hey I was wondering, if you are usig memory locations as variables, is it any faster to say A than {L1+12}?  Because I have already run out of variables in Portal and I have had to seep into memory locations.

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: Axe Parser
« Reply #451 on: April 17, 2010, 03:08:04 am »
No.  In fact the variables A-Z really are memory locations located between {L1-52} and {L1-2} or something like that I think.  It just does all the behind the scenes work for you when you use the letters.

However, even though they should be as fast, they won't be just becasue I haven't done the hardcore precompile optimizations yet and probably won't for a long time.  I doubt you'll notice the difference though, it just means that when you do {L1+12} like you say, it adds the 12 during execution.  Arithmetic is super fast though, so don't worry about it.

By the way, I'm thinking of adding a new unsigned division routine for division of constants less than 256.  It would be almost twice as fast and twice as small as regular division.  The drawback is that now you'll be calling 2 separate subroutines for long division (division by variables and constants greater than 256) and short division (by constants less than 256).   If you have to use both in the same program, we're only talking about 15 extra bytes total so its worth it in my opinion.
« Last Edit: April 17, 2010, 03:15:36 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Axe Parser
« Reply #452 on: April 17, 2010, 08:10:34 am »
^++
Agreed and seconded.

Also, are you going to fix the DispGraph(r) command in this update?
I'd like to use it.

:D
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







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: Axe Parser
« Reply #453 on: April 17, 2010, 12:16:47 pm »
That would be nice Quigibo. ^^

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: Axe Parser
« Reply #454 on: April 17, 2010, 12:28:05 pm »
I've already fixed the DispGraph command.  But I might have to fix it more.  It looks fine in 6MHz mode, but its pretty grainy in 15MHz mode.  If I change the pause times, the opposite happens...  I might have to make it adjust dynamically so both cases look good.
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe Parser
« Reply #455 on: April 17, 2010, 01:03:51 pm »
i think it might be best to have it so it is based on the calc model the game runs on. In future versions of Axe, Maybe also allow a command for use in Axe programs option menus so the user can manually alter the delays between grayscale updates, since not all calcs have the same grayscale quality at the same levels. Even two 83+ calcs could have different quality between each others.
« Last Edit: April 17, 2010, 01:04:07 pm by DJ Omnimaga »

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Axe Parser
« Reply #456 on: April 17, 2010, 01:53:57 pm »
Even two 83+ calcs could have different quality between each others.
Is it because of difference in hardware? Did TI change the hardware during the production of TI83+ just like what they did with the extra ram page in TI84+SE? Anyways, good luck on fixing the greyscale, Quigibo!


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

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: Axe Parser
« Reply #457 on: April 17, 2010, 02:03:55 pm »
I think it's more the LCD. Sometimes, a LCD may not exactly be the same speed as another, for productions reason. Same for the calc processor. Some 84 calcs reports speed of 15.1 MHz instead of 15, for instance. It's like when you buy two identical watches. One may go at a slightly different speed

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: Axe Parser
« Reply #458 on: April 17, 2010, 02:26:44 pm »
I think the hardware is pretty reliable for the most part.  It's mainly the delay routine I'm using should delay a different amount of time if the calc is in each speed setting.  Currently it does an empty loop until the LCD driver is ready and then it writes the pixel.  I'll figure it out though.
« Last Edit: April 17, 2010, 02:27:01 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe Parser
« Reply #459 on: April 17, 2010, 02:28:55 pm »
Aaah ok. I wonder if automatic grayscale commands will slow down program execution a lot? I don't think grayscale quality needs to be perfect, though. As long as it wont flickers horribly.

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: Axe Parser
« Reply #460 on: April 17, 2010, 02:38:20 pm »
You're talking to a perfectionist here :)  But not necessarily next release, I can always tweak it more later, as long as the final version is perfect gray.

Also, I forgot to mention, the only routines I was able to outsource to the shells so far were all the pixel routines.  They certainly cut down on the program size!  But unfortunately, the shell calls are slower becasue they are not as optimized as the routines I'm using.  Its a small difference, but definitely noticeable in the Game of Life  program.  There's nothing I can do about that though...
« Last Edit: April 17, 2010, 02:39:10 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe Parser
« Reply #461 on: April 17, 2010, 02:42:52 pm »
Will there be the option to not outsource to specific shell routines in later versions? Or will creating a program for Mirage for example automatically make it use that shell's routines?

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: Axe Parser
« Reply #462 on: April 18, 2010, 02:41:50 am »
Hmm... I don't know.  Is that an option you would like?  I think generally, you won't notice the slowdowns unless you use the same routine over and over for practically the entire program (Like my Game Of Life example).
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe Parser
« Reply #463 on: April 18, 2010, 04:18:28 am »
Well I guess if the speed difference is not that big, then disregard my comment. I was just worried about if somebody needed every single clock cycles he can get in some sort of complex game that it could cause issues.

I want to make World of Warcraft in Axe Parser! D:
j/k I don't even play WoW.

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: Axe Parser
« Reply #464 on: April 19, 2010, 02:23:48 am »
*Update*

Finally!  I have moved from alpha to beta release.  If you don't upgrade regularly, I would definitely recommend upgrading now since I really improved the user friendliness of it instead of just adding commands this time.  Enjoy!
___Axe_Parser___
Today the calculator, tomorrow the world!