• Axe Q&A 5 5
Currently:  

Author Topic: Axe Q&A  (Read 587387 times)

0 Members and 6 Guests are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Axe Q&A
« Reply #1395 on: March 04, 2012, 12:34:32 pm »
I'm just wondering, but is there a way to compile axe from the program?
Sig wipe!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1396 on: March 04, 2012, 12:35:28 pm »
Yes if you use zStart.
There is even an option "Compile, launch and come back to the editor".
« Last Edit: March 04, 2012, 12:35:59 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Axe Q&A
« Reply #1397 on: March 04, 2012, 12:36:19 pm »
I meant without any shells and stuff. D:
Sig wipe!

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe Q&A
« Reply #1398 on: March 04, 2012, 12:43:26 pm »
If you mean compile just after quitting from the editor, then no; Axe can't do that on its own.
As mentioned Zstart can do that sort of thing, tho.
Vy'o'us pleorsdti thl'e gjaemue

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Q&A
« Reply #1399 on: March 04, 2012, 04:29:13 pm »
If you mean making a program that makes Axe compile a program, that's possible (there must be an entry point because zStart does it, anyway).

You should ask Quigibo (or someone who's done it, like thepenguin77) about it.




Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Axe Q&A
« Reply #1400 on: March 05, 2012, 12:49:33 am »
Just because I'm curios and this is quite odd, but is it possible to edit the bits of a variable using the Pxl-Command on arbitary buffers?
For example we want A to be 10000100, can we do
Code: [Select]
0->A
Pxl-On(0,0,°A)
Pxl-On(5,0,°A)
???

I know this isn't very efficient, but can you do that?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Axe Q&A
« Reply #1401 on: March 05, 2012, 03:45:19 am »
Yes, I believe that should work, that's a cool application for pixel buffering :)  Keep in mind that numbers are stored little endian though and so the "pixel coordinates" for X in 0-7 are actually the low byte and 8-15 is the high byte.
« Last Edit: March 05, 2012, 03:45:44 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: Axe Q&A
« Reply #1402 on: March 05, 2012, 10:00:48 am »
Yes, I believe that should work, that's a cool application for pixel buffering :)  Keep in mind that numbers are stored little endian though and so the "pixel coordinates" for X in 0-7 are actually the low byte and 8-15 is the high byte.
Ok, thanks. I came up with this idea planning a maze generator were setting bits of variables is necessary, but I just go with adding numbers each time.

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: Axe Q&A
« Reply #1403 on: March 05, 2012, 07:29:19 pm »
Use eulers 'e' to access individual bits. You can also use bit masking combined with shifting left/right (* or / by 2) to read/write bits.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #1404 on: March 05, 2012, 08:00:49 pm »
Use eulers 'e' to access individual bits. You can also use bit masking combined with shifting left/right (* or / by 2) to read/write bits.
You can only use e to read bytes, not write.  His method was a way to set, reset, and toggle individual bits in an intuitive way that didn't require masking :D

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Axe Q&A
« Reply #1405 on: March 06, 2012, 05:29:21 pm »
With the new method of absorbing appvars into executables, could you store a high score or data into the program without a appvar? Like, assuming that I have a 3 byte pre-prepared appvar in archive, could I do stuff like this?

Code: [Select]
:[appvData]->Z
:If <new highscore>
:A->Z
:End



EDIT: This doesn't seem to work, it just gives me random crap.
Code: [Select]
:.SAV
:[appvSwords2]->Z
:Repeat getKey(15)
:ClrHome
:Disp {Z}
:{Z}-(getKey(1))+(getKey(4))->{Z}
:Pause 200
:End
« Last Edit: March 06, 2012, 05:59:07 pm by parser padwan »

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Axe Q&A
« Reply #1406 on: March 06, 2012, 05:52:13 pm »
Also relating to absorbing appvars, this is kind of an obscure feature, but it would be nice to be able to absorb only certain sections of appvars. Like say [appvAAPPVAR]<<10<<100 to absorb bytes 10 through 100 of appvAAPPVAR
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Q&A
« Reply #1407 on: March 06, 2012, 07:54:57 pm »
Also relating to absorbing appvars, this is kind of an obscure feature, but it would be nice to be able to absorb only certain sections of appvars. Like say [appvAAPPVAR]<<10<<100 to absorb bytes 10 through 100 of appvAAPPVAR
I can actually see that feature being very useful for pics—absorbing a certain number of rows from a Pic variable.




Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Axe Q&A
« Reply #1408 on: March 10, 2012, 03:26:36 pm »
Pic automatically do that, you just have to change the size of the pic.  Pictures are not limited to heights of 95 and 96, but can actually have any height.  If you send a picture with a smaller or larger height, Axe will import it correctly.  For appvars, I don't think that is really very useful.  If you have an appvar, you probably made it yourself/on a computer.  Why would it be formatted such that you only need part of it?  You could just have 2 appvars, one with the part you want to import, the other without it.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Q&A
« Reply #1409 on: March 10, 2012, 06:37:20 pm »
Pic automatically do that, you just have to change the size of the pic.
Oh, I didn't know that. Does it work with tilemap importing too, as in importing the largest multiple of eight rows that fits?