Author Topic: Correlation + Axe?  (Read 2468 times)

0 Members and 1 Guest are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Correlation + Axe?
« on: April 12, 2011, 11:35:41 pm »
How hard would it be to implement the font switching of correlation in an Axe prog? I think you could do it thru BASIC, have a BASIC prog run correlation's font switch, then have the axe prog run, but that assumes Axe uses the TIOS text writing routines. The reason I ask is because it's an easy way to get smaller sprites than 8x8, like 6x8 or 4x6 (small text) it also assumes axe doesn't overwrite anything correlation uses.

Also, would it be eligible for the contest?  ;D If not, I guess I could use my own routine.

On that note, are axioms disallowed from the contest?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Correlation + Axe?
« Reply #1 on: April 12, 2011, 11:40:25 pm »
Axe does use the OS's font writing routines, so Correlation should work.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation + Axe?
« Reply #2 on: April 12, 2011, 11:52:15 pm »
Axe programs are, of course, translated to machine code and run with Asm( ;D

With that said, you always want to use int("CN before the Asm( command.  Then you use int("CY when you want to return to Correlation.  This keeps things compatible and protects your data.  Axe programs are bound to use certain areas of RAM that Correlation uses.

It is important to note that switching between Correlation and Axe several times a second is highly discouraged if you're aiming at a fast program.

EDIT: I just reread your question.  When it comes to Correlation, it's better to run an Axe program from Ti-Basic than it is to run a Ti-Basic program from Axe.  But indeed, what you want to do can be done.
« Last Edit: April 12, 2011, 11:58:21 pm by Hot_Dog »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Correlation + Axe?
« Reply #3 on: April 13, 2011, 12:01:56 am »
Well, I was thinking of having only the font part used, and use the fonts in axe. There are tons of symbols in TI-Basic that I will never use in a program as display text, like the r for backbuffer drawing, and various other greek/math symbols.

I guess I'll just have to try and see :P

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Correlation + Axe?
« Reply #4 on: April 13, 2011, 04:16:06 am »
Well, I was thinking of having only the font part used, and use the fonts in axe. There are tons of symbols in TI-Basic that I will never use in a program as display text, like the r for backbuffer drawing, and various other greek/math symbols.

I guess I'll just have to try and see :P

Great, I'd like to see stuff made with this :)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Correlation + Axe?
« Reply #5 on: April 13, 2011, 09:52:50 am »
Oh, THAT?  Sorry, that's not possible.  Amongst other reasons, Correlation fonts use a different file format than the standard Ti-83+ font--or for that matter, Omnicalc and Batlib fonts.  You would need an axiom, although my schedule doesn't make it possible for me to make one.

On another note, I did my homework, and apparently there's more to Correlation + Axe than meets the eye.  I'll have to document this.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Correlation + Axe?
« Reply #6 on: April 13, 2011, 10:25:05 am »
Wasn't this post moved, it doesn't seem like it.