Author Topic: Axe for Dummies (like me)  (Read 15626 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 for Dummies (like me)
« Reply #15 on: February 28, 2010, 10:23:51 pm »
Hmmmmm that might actualy be true, because you can run

:Disp L1>Dec

And it outputs 34594.  This shows how all L1-L6 really are is locations! :D So if we find the locations of other things (like flags for example) we could write some pretty interesting routines.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Axe for Dummies (like me)
« Reply #16 on: February 28, 2010, 10:29:08 pm »
Yeah that's what I was thinking.
/e

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Axe for Dummies (like me)
« Reply #17 on: February 28, 2010, 10:32:02 pm »
It would help if hex constants were allowed (hint hint, Quigibo ;) )
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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 for Dummies (like me)
« Reply #18 on: March 01, 2010, 02:08:21 pm »
I am thinking of adding hex soon.  Maybe even add ">Rect" do display hex numbers.  Right now, if you need $ABCD, you can do this: Asm(21CDAB)

Edit: Fixed little endian.

Oh and that routine I made to store a 16 bit number works like this:

When you divide a number by 256, a number in hexadecimal like $9D93 becomes $009D so it transfers the upper byte to the lower byte.  This is just like dividing in decimal. 2310 divided by 100 is 0023 if we ignore fractions.  When you do multiplication by 256, the opposite happens.  The low order byte moves to the high order byte.  $9D93 times 256 is $9300.  When you do modulus 256, it means that you only take the remainder of the division, so $9D93 becomes $0093 cutting off the high order byte.  However, I just realized that you don't need this since its automatically cut off anyway.  It can actually be this:

Write:
:A/256->{L1}:A->{L1+1}
Read:
:{L1}*256+{L1+1}->A
« Last Edit: March 01, 2010, 02:18:35 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Axe for Dummies (like me)
« Reply #19 on: March 01, 2010, 02:16:32 pm »
I am thinking of adding hex soon.  Maybe even add ">Rect" do display hex numbers.  Right now, if you need $ABCD, you can do this: Asm(21ABCD)
Remember little endian though. It would be Asm(21CDAB)
« Last Edit: March 01, 2010, 02:16:45 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Axe for Dummies (like me)
« Reply #20 on: March 01, 2010, 02:22:18 pm »
I wonder if Axe Parser can really help some people to pass from TI-BASIC to assembly...
Hobbing in calculator projects.

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 for Dummies (like me)
« Reply #21 on: March 01, 2010, 02:29:59 pm »
The thing is, some of the stuff we're talking about here is pretty advanced.  Most programmers won't need to use hexadecimal or multiprecision byte storing, but its pretty cool that you CAN do it.  Hence, Axe Parser has a very wide learning curve.  Its very easy to learn the basics but as you start to get more advanced, you can start doing some pretty crazy stuff.  Even when staying within the syntax and not using assembly, you can literally do almost everything.  Well... maybe not everything right now, but when Axe is finished, this is what I'm hoping.
« Last Edit: March 01, 2010, 02:30:39 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Axe for Dummies (like me)
« Reply #22 on: March 01, 2010, 02:58:23 pm »
The thing is, some of the stuff we're talking about here is pretty advanced.  Most programmers won't need to use hexadecimal or multiprecision byte storing, but its pretty cool that you CAN do it.  Hence, Axe Parser has a very wide learning curve.  Its very easy to learn the basics but as you start to get more advanced, you can start doing some pretty crazy stuff.  Even when staying within the syntax and not using assembly, you can literally do almost everything.  Well... maybe not everything right now, but when Axe is finished, this is what I'm hoping.
Yes, it is advanced but at least we are talking in TI-BASIC like syntax which people are familiar and they will focus on comprehend the theory (generally mathematics) behind it.
Trying to learn this along assembly mnemonics and many possible hazards (register destroy, limited instruction set) is so much harder.
Hobbing in calculator projects.

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Axe for Dummies (like me)
« Reply #23 on: March 01, 2010, 03:30:48 pm »
Personally, I don't find it difficult to understand, even though I never programmed in asm.

I think that Axe, with this half-asm half-basic syntax will help people smoothly go from basic to asm, including me.
Former Coder of Tomorrow


Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe for Dummies (like me)
« Reply #24 on: March 01, 2010, 05:55:06 pm »
This is an awesome thread! :)

Personally, I don't find it difficult to understand, even though I never programmed in asm.

I think that Axe, with this half-asm half-basic syntax will help people smoothly go from basic to asm, including me.
Yes! ;D

Personally, I don't find it difficult to understand even though I never programmed in asm, as I'm stuck around day 15 of 28 days.

I think that Axe, with this awesome half-asm half-basic syntax will help people transition smoothly from basic to asm, including me.

(Note: These sentences are almost the same for me as SilverShadow. :D )
« Last Edit: March 01, 2010, 05:55:45 pm by ztrumpet »

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 for Dummies (like me)
« Reply #25 on: March 02, 2010, 12:01:26 am »
This is what's awesome about Axe. You get very fast speed even when using the most basic functions, so anyone who could understand TI-BASIC easily could learn Axe.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe for Dummies (like me)
« Reply #26 on: January 27, 2011, 11:06:58 am »
huh, whats Axe? :P

Come on, seriously? -.-
« Last Edit: January 27, 2011, 12:50:26 pm by squidgetx »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe for Dummies (like me)
« Reply #27 on: January 27, 2011, 11:08:37 am »
no.
I'm not a nerd but I pretend:

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Axe for Dummies (like me)
« Reply #28 on: January 27, 2011, 02:28:52 pm »
Actually, as long as we're asking questions, has anyone else ran into the Down = Enter randomness? That is to say, when you press Enter, the program reacts as if you'd pressed Down? Is this another consequence of the TI's key hardware?
See you, space cowboy...

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe for Dummies (like me)
« Reply #29 on: January 27, 2011, 02:30:34 pm »
I dont know that bug, actually.
I'm not a nerd but I pretend: