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

0 Members and 3 Guests are viewing this topic.

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 #645 on: September 28, 2011, 04:52:58 pm »
Asm() does *not* actually have write back enabled, because when the program is run, it is copied to a separate location, but never copied back, so you need to force writeback yourself.  

MirageOS automatically performs writeback on all unarchived programs, and only does writeback on archived programs if you set the option yourself
« Last Edit: September 28, 2011, 04:54:17 pm by Builderboy »

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 #646 on: September 28, 2011, 10:50:21 pm »
Does Doors CS do that as well? ^
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 #647 on: September 29, 2011, 09:19:07 am »
DoorsCS uses "smart writeback," where it checks if the program data actually changed and writes back if it did.




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 #648 on: September 29, 2011, 10:39:55 am »
Ok, that's cool.
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 squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Q&A
« Reply #649 on: September 29, 2011, 12:03:52 pm »
Woops, my bad :P I just remembered that Space Dash had this issue where the sprites would change after the program quit or something because I was Exch'ing data within the program so I figured that Asm() did writeback or something (But maybe I was using MOS lol)

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 #650 on: September 29, 2011, 09:25:58 pm »
Code: [Select]
A?Pt-On(X,Y,Pic1)Is supposed to throw an error?  It seems like every time I try to do a Pt-blarg() it errors x.x
Vy'o'us pleorsdti thl'e gjaemue

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 #651 on: September 29, 2011, 10:19:19 pm »
Code: [Select]
A?Pt-On(X,Y,Pic1)Is supposed to throw an error?  It seems like every time I try to do a Pt-blarg() it errors x.x

Yeah that should error.  That's like saying "A and Pt-On()" which doesn't make any sense since Pt-On() doesn't return a value.  In general, you can only use Axe commands that start with lowercase letters inline.  Uppercase commands have to start from a new line.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #652 on: September 29, 2011, 11:21:16 pm »
Ok, good to know.
Another one.  Is Buff()/Zeros()/det() in any of the menus?  I haven't been able to find it outside the catalog..
Vy'o'us pleorsdti thl'e gjaemue

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Axe Q&A
« Reply #653 on: September 29, 2011, 11:53:24 pm »
Ok, good to know.
Another one.  Is Buff()/Zeros()/det() in any of the menus?  I haven't been able to find it outside the catalog..
It's in the Matrix menu.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Axe Q&A
« Reply #654 on: September 30, 2011, 12:05:56 am »
Why can't we abuse the ? operators?
I want to be able to do
Q?If blarg
Stuff
Q?End
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 calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Axe Q&A
« Reply #655 on: September 30, 2011, 12:13:44 am »
Why can't we abuse the ? operators?
I want to be able to do
Q?If blarg
Stuff
Q?End
What exactly would that do? O_o
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Axe Q&A
« Reply #656 on: September 30, 2011, 12:52:57 am »
Why can't we abuse the ? operators?
I want to be able to do
Q?If blarg
Stuff
Q?End
What exactly would that do? O_o
It would ignore the If statement if Q!=0, executing Stuff
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 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 #657 on: September 30, 2011, 12:59:16 am »
Isn't that equivalent to If Q:If Blarg:Stuff:End:End? o.O
« Last Edit: September 30, 2011, 12:59:43 am by Builderboy »

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 #658 on: September 30, 2011, 06:37:59 am »
Theoretically, it could be abused, but it wouldn't be any more optimized than a regular if statement, just more cluttered and less readable.  I added the ? and ?? as operators specifically to avoid chains of if/while statements like If A:If B:If C:something:End:End:End should just be if A?B?C:something:End.  I don't want to allow intentionally misleading code as legal syntax when there is already a better way to represent it.
___Axe_Parser___
Today the calculator, tomorrow the world!

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: Axe Q&A
« Reply #659 on: September 30, 2011, 10:09:41 am »
Theoretically, it could be abused, but it wouldn't be any more optimized than a regular if statement, just more cluttered and less readable.  I added the ? and ?? as operators specifically to avoid chains of if/while statements like If A:If B:If C:something:End:End:End should just be if A?B?C:something:End.  I don't want to allow intentionally misleading code as legal syntax when there is already a better way to represent it.
Huh.
Actually, Builder, that is not what it would do.
Q?If Blarg
stuff
Q?End
Would execute stuff if Q=0, or, failing that, if Blarg!=0
Key term here is "failing that". If Q=0, Blarg could be infinity (-1, anyone?) or it could be 0, and it wouldn't matter.
« Last Edit: September 30, 2011, 10:10:10 am by Freyaday »
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!