Author Topic: Axe Parser  (Read 565529 times)

0 Members and 2 Guests are viewing this topic.

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Axe Parser
« Reply #1575 on: December 10, 2010, 08:10:27 pm »
I'm not worried about T. I'm worried about the fact that {...} can cut off the end of a two byte token, and {...}r can be one of three things:

 1: two one-byte tokens
 2: a one-byte token followed by the first half of a two-byte
 3: a two byte token.

I also need to know how much to increment my 'PC'... which is a pointer to the next token in the program string.
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Axe Parser
« Reply #1576 on: December 12, 2010, 11:30:15 pm »
hey you know the thing Axe does when you select compile from the menu? How do I do that...
Spoiler For irony:
...in Axe?
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

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 #1577 on: December 12, 2010, 11:34:39 pm »
Do you mean how the selection bar moves up and down smoothly? I could maybe dig up my xLIB xLIB Revolution menu code later, although it's in BASIC+xLIB. Maybe someone could convert it to Axe. :P

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Axe Parser
« Reply #1578 on: December 12, 2010, 11:40:48 pm »
no no no no no!!!
I thought my hints were clear enough... I meant AFTER you press 2nd/Enter while the cursor is over the 'compile' option.

...and I'm not talking about the transition effect :P (epic fade effect dude, its almost faster than ASM)

Spoiler For if my hints are insufficient:
Ok how do I parse the VAT searching for programs? Or just force open the prgm menu and get the prgm name as output?
« Last Edit: December 13, 2010, 12:00:19 am by lookitsan00b »
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

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 #1579 on: December 12, 2010, 11:56:07 pm »
Ah i see, you're joking.  I assume you are asking how to compile programs in Axe?

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Axe Parser
« Reply #1580 on: December 13, 2010, 12:04:09 am »
lulz edited too late :P
no no no no no!!!
I thought my hints were clear enough... I meant AFTER you press 2nd/Enter while the cursor is over the 'compile' option.

...and I'm not talking about the transition effect :P (epic fade effect dude, its almost faster than ASM)

Spoiler For if my hints are insufficient:
Ok how do I parse the VAT searching for programs? Or just force open the prgm menu and get the prgm name as output?

I think the second option is best... for now at least.
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

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 #1581 on: December 13, 2010, 12:10:59 am »
Ah i see, there is a topic about that here actually

http://ourl.ca/7202

It has some really good info

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Axe Parser
« Reply #1582 on: December 13, 2010, 12:16:49 am »
KTHXBAI




:P
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Axe Parser
« Reply #1583 on: December 13, 2010, 12:23:20 am »
Do you mean how the selection bar moves up and down smoothly? I could maybe dig up my xLIB xLIB Revolution menu code later, although it's in BASIC+xLIB. Maybe someone could convert it to Axe. :P

It's very easy to do actually, with the RectI( command. I normally just use a subroutine like

Code: [Select]
:For(A,0,9
:RectI(X,Y,width,height
:Y-W->Y
:RectI(X,Y,width,height
:End

You just flip the sign of W to make it move up or down.
« Last Edit: December 13, 2010, 12:23:40 am by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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 #1584 on: December 13, 2010, 01:35:07 am »
Ah I see lookitsan00b, it wasn't too clear to me. I just couldn't find anything special to replicate past the title screen sequence. Also what is the transition effect? I never saw any on my 83+ or Nspire O.O

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Axe Parser
« Reply #1585 on: December 14, 2010, 11:20:43 pm »
Ah I see lookitsan00b, it wasn't too clear to me. I just couldn't find anything special to replicate past the title screen sequence. Also what is the transition effect? I never saw any on my 83+ or Nspire O.O

Sorry, a bit of sarcasm there. Scr1 -> Scr2 + Low_quality_LCD = barely perceptible fade effect. :P
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

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 #1586 on: December 15, 2010, 04:18:13 am »
Oh I see now. This is normal with that kind of LCD. The fade effect is a good thing, though, for grayscale, else grayscale would be impossible if it faded instantly.

Offline feerik

  • LV2 Member (Next: 40)
  • **
  • Posts: 23
  • Rating: +0/-0
    • View Profile
Re: Axe Parser
« Reply #1587 on: December 20, 2010, 01:01:59 pm »
doesnt look that bad

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe Parser
« Reply #1588 on: December 21, 2010, 03:02:34 pm »
Quick question: Which is faster:
Code: (Example 1) [Select]
For(C,0,10)
  Code...
  If A
    If B
      Do something...
    End
  End
End

versus

Code: (Example 2) [Select]
For(C,0,10)
  Code...
  If A and B
    Do something...
  End
End

(If it helps, in both examples, the chances of A or B being true are about 1 in 6, but the chances of both of them being true at the same time are about 1 in 36 (well, approximately - probability isn't my strongest point))
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

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 #1589 on: December 21, 2010, 03:22:38 pm »
The first is faster, since 5 out of 6 times the program isn't even *looking* to see what B is.  This is known as short circuit evaluation and can come in very handy :)