Author Topic: Chopped BASIC - Can you use Axe subroutines in TI-BASIC? (ARMY)  (Read 3243 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
I was thinking about it.
Could you do this?

The only issue I can think of would be the data saving and loading...

By subroutines, I mean using the Asm() command in a BASIC program to run an Axe-compiled program.
« Last Edit: April 27, 2011, 04:01:34 am by DJ_O »
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 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: Chopped BASIC - Can you use Axe subroutines in TI-BASIC?
« Reply #1 on: May 06, 2010, 04:08:44 pm »
Yeah you can. It is best used using XCOPY, found in Illusiat 13 or in the downloads section. It's currently the only real way to pull a RPG with Axe, because of the 8.1 KB executable code limit. For data saving/loading you have to store the temporary data in appvars.

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: Chopped BASIC - Can you use Axe subroutines in TI-BASIC?
« Reply #2 on: May 06, 2010, 04:30:33 pm »
How do you put that data out of the appvar?

Celtic III?
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 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: Chopped BASIC - Can you use Axe subroutines in TI-BASIC?
« Reply #3 on: May 06, 2010, 04:48:19 pm »
I think Celtic III would be the only way to go for that. MY approach, though, would cause only program launching to be written in BASIC, though. So there would be no data accessed from TI-BASIC. Just between Axe programs.

PRGM:RPGEXE
:0→X:Asm(prgmXCOPY
:0→X:"RPGTITLE
:Asm(prgmXCOPY:prgmXTEMP000:0→X:Asm(prgmXCOPY
:Repeat pxl-test(0,0
:0->X
:"RPGSTOP
:If 1=pxl-test(0,1:"RPGMAP
:If 1=pxl-test(0,2:"RPGBATTL
:If 1=pxl-test(0,3:"RPGEVENT
:Asm(prgmXCOPY:prgmXTEMP000:0→X:Asm(prgmXCOPY
:End

Before exiting each Axe subroutines, you would need to turn on a pixel in particular to define which routine you want to run. In addition to that, pixel(0,0) would be always turned ON when exiting each sub-routines, unless you are quitting the game! BACKUP first, though! I did not test the code above, but it's just to give you an idea about how I migth do it.

Obviously, the program would be much compex than that, but it's just to give a small idea of how to do it without the hassle of trying to access Axe appvars in BASIC.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile