# Omnimaga

## Calculator Community => TI Calculators => Axe => Topic started by: Matrefeytontias on December 28, 2011, 08:32:17 pm

Title: Develop Axiom with Mimas
Post by: Matrefeytontias on December 28, 2011, 08:32:17 pm
Hi guys !

I'm using Mimas to program ASM on-calc and I try to make Axiom with this App. She compile as progtam so I use this code to convert it into an appvar :
Code: [Select]
`GetCalc("prgmAXIOM")->AGetCalc("appvAXM", 50)->BFor(C,0,length(A)){A+C}->{B+C}End`
My Axe source is
Code: [Select]
`.AXIOM1#Axiom(AXM)Boxplot`
And my Axiom (a simple test which doesn't run anymore >_< , it's Mimas's ASM format)
Code: [Select]
`dw \$C0DEdw \$00FF ; size of the commanddb %00011111 ; compatible ASM nostubdb \$05,0 ; token Boxplotdb 0 ; inline commanddb 0 ; no argsorg 0bcall getkey`
While the compilation, Axe said "Invalid Axiom". So I ask : is it really possible to make Axiom with Mimas ? If no, can I use another mean than a PC ? And if I must use a PC, how to compile ASM in the OS variables format (*.8xv) ?

Title: Re: Develop Axiom with Mimas
Post by: jacobly on December 28, 2011, 08:38:05 pm
First of all, if the axiom is a program in ram, then axe will automatically convert it to an app var the first time something is compiled that uses it (assuming the appvar doesn't already exist).

On the other hand, here is an axe program that should do what you wanted:
Code: [Select]
`GetCalc("prgmAXIOM")→AGetCalc("appvAXM",{A-2}ʳ)→BCopy(A,B,{A-2}ʳ)`
Edit: Oh yeah, and here is a mimas include file that has the same equates as Axe.inc.
Title: Re: Develop Axiom with Mimas
Post by: Matrefeytontias on December 28, 2011, 09:16:21 pm
Thanks, but can you write the code instead upload the variable, at this hour I'm on phone ^^

And Axe hadn't converted prgmAXM into appvAXM at all, but your code seems work.
Title: Re: Develop Axiom with Mimas
Post by: jacobly on December 28, 2011, 09:24:20 pm
umm... it is pretty much identical to Axe.inc (http://jacob.heliohost.org/calc/axe/latest/Developers/Axe.inc). (except for the comments)
Title: Re: Develop Axiom with Mimas
Post by: Matrefeytontias on December 28, 2011, 09:37:04 pm
Ok, but what must I do to make my Axiom able to run ? Every tentatives I did were fails.
Title: Re: Develop Axiom with Mimas
Post by: jacobly on December 28, 2011, 09:42:30 pm
Check the length field to make sure it is right. If you put a label at the end of the axiom, you can use that in the length field. Also make sure that the axiom ends with dw 0000.
Title: Re: Develop Axiom with Mimas
Post by: Matrefeytontias on December 28, 2011, 10:00:05 pm
Invalid Axiom, again and again ... Now I have :
Code: [Select]
`dw \$C0DEdw Ax1db %00011111db \$05,0db 0db 0org 0bcall getkeyAx1:dw ,\$0000` Then I compile, I launch Axe which said me Invalid Axiom without convert, so I conert it, and Axe said Invalid Axiom, but AFTER the #Axiom( line, at the Boxplot line. If I put off the line Boxplot, there isn't any compilation error (but the code of Boxplot is \$05,0 ??? )
Title: Re: Develop Axiom with Mimas
Post by: jacobly on December 28, 2011, 10:05:38 pm
Oh, use rorg 0. It does what you are used to .org doing (org is tasm .org).

Edit: to clarify, rorg works like spasm's .org, and org works like brass's and tasm's .org. org actually changes where in the output file code is generated, but rorg just affect labels and such.
Title: Re: Develop Axiom with Mimas
Post by: Matrefeytontias on December 28, 2011, 10:21:48 pm
Yeah, if I replace org by rorg axe compile without any error. But ... If I use the command that I defined, anything else a romcall on getkey is done ... I don't know what is done but it puts many of special character on the display ???