Author Topic: Correlation: A New Project Aimed at Ti-Basic Programmers  (Read 61241 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: New Project Aimed at Ti-Basic Programmers
« Reply #15 on: November 10, 2010, 05:47:06 pm »
Hey, not to spam or anything, but I have made a program (SpriteLib) which lets you edit the font a little and use the display routines I even included an example (try example 2) to show what it can do. It is an ASM program and it sets the font hook to work during BASIC program execution and for the hex digits. Example 1 has more maps, but was created early on without the full use of all of the functions...

http://www.ticalc.org/pub/83plus/asm/graphics/spritelib.zip

Nah, it's not spamming.  Quite a nifty program, if I say so myself!  So don't take the next line as an insult, because it's quite impressive.  However, just like your program can do things mine can't, I'm adding features that SpriteLib doesn't have.

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: New Project Aimed at Ti-Basic Programmers
« Reply #16 on: November 10, 2010, 05:52:01 pm »
So, it's like Omnicalc fonts, but with more versatility, and the user doesn't have to do anything?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: New Project Aimed at Ti-Basic Programmers
« Reply #17 on: November 10, 2010, 05:53:44 pm »
So, it's like Omnicalc fonts, but with more versatility, and the user doesn't have to do anything?

Well, the user does have to run something to enable/disable hooks in his basic program, and create his own font of course.  Other than that, it is more versatile, faster, and can be done with regular Output(), Text(), etc. commands.

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: New Project Aimed at Ti-Basic Programmers
« Reply #18 on: November 10, 2010, 05:56:32 pm »
It would be nice if one could install an APP on the calc that could make a brand new locale-based font and change the locale in the program temporarily so that the other font is displayed.

(i.e. the foreign language programs preinstalled on the calcs.)
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 TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: New Project Aimed at Ti-Basic Programmers
« Reply #19 on: November 10, 2010, 06:00:45 pm »
I didn't realize it was going to work with Text and Output. That's pretty nifty! =) So the hooks "point" to your custom routine to display text when the program is enabled as opposed to TI's?

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: New Project Aimed at Ti-Basic Programmers
« Reply #20 on: November 10, 2010, 06:04:06 pm »
So the hooks "point" to your custom routine to display text when the program is enabled as opposed to TI's?

Exactly.  I just need to understand how to get it to work.  No trouble yet ;)

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: New Project Aimed at Ti-Basic Programmers
« Reply #21 on: November 10, 2010, 06:14:47 pm »
Sounds neat.  I don't know how much I'd use it, but it's a neat alternative. :)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: New Project Aimed at Ti-Basic Programmers
« Reply #22 on: November 10, 2010, 06:38:34 pm »
Now that I understand hooks, I'm going to use Output() to let people specify a font character size.  Text() will display the text.  I'm also going to have something that will update the screen when all text is drawn.

So, a person will run pgrmText to enable the special font routines.  If there is a need in the Ti-Basic program to use the regular Ti-Basic font (with normal Output and Text functions), another hooked function is run to switch back and forth.  At the end of the program, pgrmText is run again.
« Last Edit: November 10, 2010, 06:42:16 pm by Hot_Dog »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: New Project Aimed at Ti-Basic Programmers
« Reply #23 on: November 11, 2010, 01:28:24 am »
What if someone wants to use the homescreen at one point, though? ???

Maybe ANOVA? (although that's a 2 byte token, if I remember)

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #24 on: November 13, 2010, 02:49:55 am »
Correlation will now come with two programs.  The first will be pgrmCORELATE.  This program will be small--hopefully 200 bytes or less--and is used for initalizing and deinitalizing.  The other program is pgrmFONTROUT.  It's much bigger, but it can be stored in archive.

Both programs are required for Ti-Basic programs wanting to do custom fonts using Correlation.
« Last Edit: November 13, 2010, 02:50:42 am by Hot_Dog »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #25 on: November 13, 2010, 03:05:28 am »
Ah ok so it installs font files and hooks?

Also could you answer the first question in http://ourl.ca/7842/139516 ?
« Last Edit: November 13, 2010, 03:05:56 am by DJ Omnimaga »

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #26 on: November 13, 2010, 03:12:11 am »
Ah ok so it installs font files and hooks?

Also could you answer the first question in http://ourl.ca/7842/139516 ?

pgrmCORELATE installs hooks, but does not need to install fonts.  The user specifies a font in his program by using Select().

Sorry about not answering that first question.  If I read it correctly, Output() will display a homescreen-sized font, but it will not appear on the homescreen when the program ends.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #27 on: November 13, 2010, 03:13:37 am »
It does in BASIC. Try it for yourself on a real calc.

Offline Hot_Dog

  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #28 on: November 13, 2010, 03:15:33 am »
It does in BASIC. Try it for yourself on a real calc.

It does in Basic because it uses the Ti-OS font routines, which save to a Text Buffer.  With correlation, I'm using special routines that do not save to a text buffer, or else gibberish would appear when a Ti-Basic program ends. 

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Correlation: A New Project Aimed at Ti-Basic Programmers
« Reply #29 on: November 13, 2010, 03:16:18 am »
Oh ok but what if someone absolutely needs to use the homescreen while using Coorelation?