Author Topic: [AXE] help ?  (Read 3411 times)

0 Members and 1 Guest are viewing this topic.

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
[AXE] help ?
« on: February 25, 2013, 01:42:56 pm »
Hi in one programme in axe, i want wrtie this line :X-9??sub(XXX,r1,r2,r3,r4,r5,r6) when XXX is a routine in other programme compiled by the axe.

(I can't fusion the 2 programme)
« Last Edit: February 25, 2013, 02:08:10 pm by nikitouzz »
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] help ?
« Reply #1 on: February 25, 2013, 01:44:33 pm »
And the question is ? <_<

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] help ?
« Reply #2 on: February 25, 2013, 01:46:03 pm »
sorry, "how to make this ?"
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] help ?
« Reply #3 on: February 25, 2013, 02:26:09 pm »
There are two ways : a simple way that actually works, and a very hard one I just thought about so I'm not sure if it works.

Simple way : follow the tutorial about my PageSwap axiom in the "Tutorials" sub-forum of Omnimaga. Yeah, I said "the easy way" ;D

And the very hard and experimental way : in the program where you define the function you want to use, follow these steps :
  • Create an appvar that will hold an address (one address for each function you want to use)
  • Put in this appvar the addresses of each function (use the LLABEL function to have the address of a label) minus E9D93.
Then, run the program once, so the appvar holding the addresses is created.

Back to your original program, follow these steps :
  • Access to the apppvar at the beginning of the program
  • Access to the program containing the functions you want to use
  • To call a function, add the corresponding address holded by the appvar to the origin of the program holding the functions, and call the resulting address. It *should* work ;D

Here's a quick example of the last method :

:.HOLDFUNC
:
:GetCalc("appvADDR",2)->A
:LFunc1-E9D93->{A}r
:.other code
:
:Return
:Lbl Func1
:...
:End

:.USEFUNC
:Return!If GetCalc("appvADDR")->A
:Return!If GetCalc("prgmHOLDADDR")->B
:
:({{A}r+B}r)(parameters)


I'm absolutely not sure about it working or not, I thought I got mad or something. If it actually works, I'll write a tutorial about it ;D

And please other members that are reading this thing (if any), please explain your opinions, I'll need them and it'll also help Nikitouzz :P

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] help ?
« Reply #4 on: February 25, 2013, 02:29:26 pm »
O_o thanks there no exist one simple methode ?
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] help ?
« Reply #5 on: February 25, 2013, 02:31:44 pm »
Nope, as far as I know there are only these two methods (only one involving programs and not apps). But maybe I'm wrong, so you'd better point thepenguin77 or Runer112 to this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [AXE] help ?
« Reply #6 on: February 25, 2013, 03:03:53 pm »
If your main prog is an app, then there is a small hex code that can run programs directly. ;) http://ourl.ca/8800
It's pretty simple to set up, but ONLY works from an app. Your target prog can be an appvar, though.

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] help ?
« Reply #7 on: February 25, 2013, 03:05:09 pm »
i know but i can't use the app for the moment.
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [AXE] help ?
« Reply #8 on: February 25, 2013, 03:10:38 pm »
Why ?

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] help ?
« Reply #9 on: February 25, 2013, 03:13:07 pm »
Because I want put 1000/2000 bit into one programme for the routines and i don't make one app for 2000 bit max...
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [AXE] help ?
« Reply #10 on: February 25, 2013, 03:18:24 pm »
The link I posted was for the app to be the main program.
Also, you can "relocate" your code : copy the routine to a free RAM area (L1-L6) and then do (Lx)(args). Of course, they're limited in size but hey !, why won't we try it ? :P

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] help ?
« Reply #11 on: February 25, 2013, 03:19:34 pm »
sorry but i need one programme ^^
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [AXE] help ?
« Reply #12 on: February 25, 2013, 03:33:53 pm »
Use the method I said so. Even if it's a PITA, I can't think of any other solution :P

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: [AXE] help ?
« Reply #13 on: February 25, 2013, 07:06:09 pm »
Why can't the two programs be combined? Unfortunately the OS doesn't really allow for programs to call routines in other programs, so there is no simple way to do it.

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [AXE] help ?
« Reply #14 on: February 27, 2013, 07:43:06 am »
because i need 10-11 routine for X programme Xe[15,+oo[ and if i combin all the programm it's too large...
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes