Author Topic: Routines  (Read 314901 times)

0 Members and 2 Guests are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Routines
« Reply #480 on: November 29, 2010, 12:34:42 am »
* Darl181 is confused
How do I get the length of it?  No idea of how to go about it...
* Darl181 hopes he won't have to use ASM
Vy'o'us pleorsdti thl'e gjaemue

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: Routines
« Reply #481 on: November 29, 2010, 12:36:54 am »
* Darl181 is confused
How do I get the length of it?  No idea of how to go about it...
* Darl181 hopes he won't have to use ASM

I don't really understand what you mean...

You don't need the length of the token. All tokens stored in Ans are either one byte or two bytes, which you can check with http://tibasicdev.wikidot.com/tokens.
« Last Edit: November 29, 2010, 12:37:21 am by Deep Thought »




Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Routines
« Reply #482 on: November 29, 2010, 12:38:32 am »
Oh I see what you mean now :P
I'll need to find the first two-byte token, then...or does anybody know?
« Last Edit: November 30, 2010, 07:44:51 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

SirCmpwn

  • Guest
Re: Routines
« Reply #483 on: December 13, 2010, 08:56:51 pm »
So I made a simple menu routine that will display a TIOS-style menu for your program, and return the selected index in I.  MENU.8xp contains the actual routine, and MENUTST.8xp provides a sample implementation.
Enjoy!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Routines
« Reply #484 on: December 13, 2010, 09:01:31 pm »
Lolls for a second i was thinking to myself, 'what is he waiting for just go to the program already!  Or compile it if you have to!' not realizing that it was already in the program XD great job :D

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: Routines
« Reply #485 on: December 13, 2010, 09:02:51 pm »
Can you customize the display if you wanted to make a GUI or something?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Routines
« Reply #486 on: December 13, 2010, 09:25:26 pm »
Can you customize the display if you wanted to make a GUI or something?

more importantly, can it scroll down? :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

SirCmpwn

  • Guest
Re: Routines
« Reply #487 on: December 13, 2010, 09:58:57 pm »
It can't scroll down :( but I'm working on scrolling and having multiple headers.
Can you customize the display if you wanted to make a GUI or something?
It's a pretty simple routine, you could probably modify the source.

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: Routines
« Reply #488 on: December 13, 2010, 10:09:21 pm »
Yay, bugs (or user idiocy) :P



The part where it returns Err: Syntax is followed by a RAM clear, although Wabbit doesn't record it.
« Last Edit: December 13, 2010, 10:10:42 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: Routines
« Reply #489 on: December 13, 2010, 10:10:18 pm »
Don't use 2.53 MP, you silly Qwerty!
And is that the demo, or your own implementation?

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: Routines
« Reply #490 on: December 13, 2010, 10:11:21 pm »
That's Menu.8xp, unmodified. The Demo won't compile for me.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: Routines
« Reply #491 on: December 13, 2010, 10:12:12 pm »
Ah, weird that the demo won't compile.
Menu.8xp will crash, I guarantee it.  It isn't designed to work on its own.  What errors does the demo give you?

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: Routines
« Reply #492 on: December 13, 2010, 10:15:33 pm »
Silly Qwerty  ;)

You have to have BOTH programs to compile...
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: Routines
« Reply #493 on: December 13, 2010, 10:15:51 pm »
lol XD

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: Routines
« Reply #494 on: December 14, 2010, 03:55:38 pm »
It can't scroll down :( but I'm working on scrolling and having multiple headers.
Can you customize the display if you wanted to make a GUI or something?
It's a pretty simple routine, you could probably modify the source.
Scrolling down and having multiple tabs would be really awesome. The lack of this in TI-BASIC was an annoying limitation in that language. D:

Nice job by the way! At one point I should try to convert ROL4 (defunct) menu routine to Axe.