Author Topic: What am I doing wrong here?  (Read 27948 times)

0 Members and 1 Guest are viewing this topic.

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: What am I doing wrong here?
« Reply #75 on: February 27, 2011, 09:30:34 am »
Edit:
I just realized something: I don't need a dynamic AppVar. I just use Axe's GDB0 and keep track of how long it's getting, then create the AppVar at the very end.
*Sigh.*
Gloves.

GDB0 isn't dynamic either. It's just bytes reserved as data in the program itself.




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: What am I doing wrong here?
« Reply #76 on: February 27, 2011, 12:59:42 pm »
But because GDB0 is not an actual OS  variable, I can store to the end of it without fear, and then I have Axe create the AppVar for me.
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 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: What am I doing wrong here?
« Reply #77 on: February 27, 2011, 02:06:08 pm »
Just make sure you allocate sufficient memory for GDB0 at the beginning, since it's even harder to resize than an OS var.




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: What am I doing wrong here?
« Reply #78 on: February 27, 2011, 03:12:17 pm »
Wait...what?
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: What am I doing wrong here?
« Reply #79 on: February 27, 2011, 03:16:56 pm »
GDB0 is not a memory location, its a pointer to a spot that is inside of your Axe program.  Whenever you create a string of data like [00000000]->GDB0, all Axe does is add this onto the end of your program.  GDB0 is just a number that points to where this data starts.  This means that there is only as much memory there as you first set it as, and writing past it without care is likely going to get you a corrupted program or worse.

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: What am I doing wrong here?
« Reply #80 on: February 27, 2011, 03:27:57 pm »
Oohh. That's what all the buisness is about adding something to program memory.
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 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: What am I doing wrong here?
« Reply #81 on: February 28, 2011, 03:09:52 pm »
So, after adding 6k bytes to program memory with Zeros(6000), how do I find the start of all those zeros? And then, at the end of the program, how do I create an AppVar with the appropriate length in Archive and copy all the used bytes to the AppVar?
Edit:
Anybody got any suggestions for additional drawing commands? I have Pxl-change, Line on/off, Circle on/off, and RectI. I can put in two more.
« Last Edit: February 28, 2011, 03:14:47 pm 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!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: What am I doing wrong here?
« Reply #82 on: February 28, 2011, 07:27:16 pm »
To find the location, do this.  Zeros(6000)->GDB1.  GDB1 now holds the start location of all the zeros.  To create an appvar, you could do something like this:

GetCalc("appvNAME",6000)->P
Copy(GDB1,P,6000
Archive "appvNAME"

Oh and for new ideas? Flood Fill >:D
« Last Edit: February 28, 2011, 07:29:54 pm by Builderboy »

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: What am I doing wrong here?
« Reply #83 on: March 01, 2011, 12:21:44 am »
What's flood fill? And do you have any suggestions for another command?
« Last Edit: March 01, 2011, 02:06:53 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!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: What am I doing wrong here?
« Reply #84 on: March 01, 2011, 12:22:48 am »
Yes its the paint bucket :P And for another idea what about a filled circles?

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: What am I doing wrong here?
« Reply #85 on: March 01, 2011, 12:29:19 am »
Layers, channels, alpha... J/k, but how about regular polygons? That should be easier than some other stuff :)




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: What am I doing wrong here?
« Reply #86 on: March 01, 2011, 12:35:22 am »
Filled circles...now that's a good idea! Paint Bucket would only be one command because there's only two colors, and it would thus essentially be a Bucket of Inverse.
Edit:
I have eaten my words. The circles were weird because I forgot the way order of operations works in Axe.
Edit 2:
Does anyone have an idea on how to implement a flood fill? I read the Wikipedia page, but I can't figure out a method of implementation that would work on the calculator.
« Last Edit: March 01, 2011, 02:38:55 pm 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!

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: What am I doing wrong here?
« Reply #87 on: March 01, 2011, 06:54:56 pm »
Use L1 for a queue and make it wrap around to the beginning when it runs out of space. (Thanks to Builder for teaching me ;D)




Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: What am I doing wrong here?
« Reply #88 on: March 01, 2011, 07:17:15 pm »
I think someone needs to write a flood fill tutorial.  I've tried and failed, and I'd like to know how to do it without using too much memory. :)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: What am I doing wrong here?
« Reply #89 on: March 01, 2011, 08:41:53 pm »
I'll have to find that explanation I gave to Deep Thought and make it more detailed and post it :D