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

0 Members and 5 Guests are viewing this topic.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Q&A
« Reply #1170 on: December 13, 2011, 05:47:03 pm »
Pic1 is static. If those conditions are compile-time (They're constants), you can use the new ...If construction. If the condition can only be evaluated at run-time, however, you'll have to use a variable (This includes user-defined ones) instead of Pic1.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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 #1171 on: December 13, 2011, 05:47:53 pm »
ah. so Z works?
Sig wipe!

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Q&A
« Reply #1172 on: December 13, 2011, 05:49:21 pm »
Indeed, Z would work :)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

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 #1173 on: December 13, 2011, 05:52:13 pm »
By replacing the Pic1, you can store the pointer into a variable, just make sure to keep track of it!

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 #1174 on: December 13, 2011, 05:53:09 pm »
ah, ok.
Now I just wish I could have custom-named pointer/variable D:
Sig wipe!

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 #1175 on: December 13, 2011, 05:59:33 pm »
Oh whoops didn't see there was another page XD But yeah, you can have named constants but not named variables, unless you use a constant as a pointer to a variable o.O

Offline jacobly

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 205
  • Rating: +161/-1
    • View Profile
Re: Axe Q&A
« Reply #1176 on: December 13, 2011, 06:20:40 pm »
Oh whoops didn't see there was another page XD But yeah, you can have named constants but not named variables, unless you use a constant as a pointer to a variable o.O
Ahem...
Code: [Select]
°A-2→°MYVAR
5→MYVAR
MYVAR++
MYVAR*13→MYVAR
Disp MYVAR▸Dec,i .Prints 78

Code: [Select]
:If something
:Data(.......)→Pic1
:End
:If somethingelse
:Data(.......)→Pic1
:End
Gives me a duplicate error. (and I know that it should happen)
Is there a way to get around with it?
Also, if something is a constant, you can do this in Axe 1.1.0:
Code: [Select]
:...If something
:Data(.......)→Pic1
:...
:...If somethingelse
:Data(.......)→Pic1
:...
« Last Edit: December 13, 2011, 06:22:30 pm by jacobly »

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 #1177 on: December 13, 2011, 06:22:17 pm »
wait. I can have custom-named variables? sweet!
Sig wipe!

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 #1178 on: December 13, 2011, 06:27:08 pm »
Oh whoops didn't see there was another page XD But yeah, you can have named constants but not named variables, unless you use a constant as a pointer to a variable o.O
Ahem...
Code: [Select]
°A-2→°MYVAR
5→MYVAR
MYVAR++
MYVAR*13→MYVAR
Disp MYVAR▸Dec,i .Prints 78

Woah  O.O When did this happen?  It doesn't look like it's in the commands list either.
« Last Edit: December 13, 2011, 06:27:23 pm by Builderboy »

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 #1179 on: December 13, 2011, 06:36:09 pm »
now let's abuse these .equ custom-named variables XD
Sig wipe!

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #1180 on: December 13, 2011, 06:51:37 pm »
BITMAP EPIC FAIL :P

Ok, so I did this
[2424(hex-from-yeongs-program)]->Pic8
Bitmap(1,16,Pic8)

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 #1181 on: December 13, 2011, 06:53:51 pm »
Is your sprite 36 by 36?  How many bytes of data did the program give you? 

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #1182 on: December 13, 2011, 06:54:30 pm »
Its 24*24

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 #1183 on: December 13, 2011, 07:02:55 pm »
How many bytes of data did the program give you?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #1184 on: December 13, 2011, 07:04:15 pm »
Does that mean I have to count aalll the numbers? :P D: