Author Topic: A little help  (Read 28125 times)

0 Members and 1 Guest are viewing this topic.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: A little help
« Reply #30 on: April 07, 2010, 11:06:47 pm »
To Quigbo: I'm sorry. This is like the 15 millionth time I've asked this question. Can you write up for me a full detail on how to use the pointers commands to store the data between two places and how to access individual parts of the data as you would a list. If you can explain this, I think I may not need anymore help. Thanks

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A little help
« Reply #31 on: April 07, 2010, 11:14:24 pm »
Quigibo isn't the only person who knows about them so there are a few people who could do it (SirCmpwn, Builderboy, Ztrumpet possibly (can't remember how much you know, Z :P), etc.). Just gotta wait for someone to answer is all. I would do it if I knew more about pointers, and Axe in general. Sadly though, I do not. Sorry.
« Last Edit: April 07, 2010, 11:18:05 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: A little help
« Reply #32 on: April 07, 2010, 11:16:06 pm »
It doesn't necessarily need to be Quigibo who has to do it. There are a lot of people here who could explain it in great detail. Personally, I would do it if I knew more about them (and Axe in general).

Well, it seemed, Quigbo would be best, as he programmed the commands and knows their intricate workings.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A little help
« Reply #33 on: April 07, 2010, 11:21:23 pm »
(I just edited my last post to show what I meant more.)

Well ya, he is the one developing Axe but I don't think he has been working with it in programming nearly as much as some other guys have (Quigibo, I'm very sorry if I'm mistaken. I don't mean to be telling false information if it is.). Plus he is also busy still developing Axe Parser and is in school and probably has other things going on too. Trust me, anyone of the guys I mentioned before would be able to explain it probably just as well if they chose to. I don't mean this to sound rude.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: A little help
« Reply #34 on: April 07, 2010, 11:25:38 pm »
Not taken as rude at all.

Maybe I'll read up on pointers online. It may help.

Edit: Yeah right. Search--"Using pointers in assembly". First result-- "Purchase a laser pointer for 4.99".
« Last Edit: April 07, 2010, 11:29:17 pm by ACagliano »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A little help
« Reply #35 on: April 07, 2010, 11:30:47 pm »
Try this.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A little help
« Reply #36 on: April 07, 2010, 11:39:49 pm »
Didn't Axe Parser come with some text files explaining pointers in details with a TI-BASIC frame of mind?

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: A little help
« Reply #37 on: April 07, 2010, 11:40:10 pm »
It helps a little thanks, but it still leaves the part of knowing how to use Axe's commands. I will definately use an array for the reference.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A little help
« Reply #38 on: April 07, 2010, 11:42:00 pm »
Ya, it does. But I can understand where ACagliano may come from in not understanding them still. I didn't fully understand the text document, though I did just read it once.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A little help
« Reply #39 on: April 07, 2010, 11:46:20 pm »
First, @meishe91, I'm flattered that you cited me as a reference.
Second, a pointer is a value that points to an offset in memory.  For instance, a pointer with a value of 10 points to the 10th byte (actually, it points to the 11th byte because it is zero-indexed, but lets say that it points to the 10th byte for now).  If that place in memory contains code, you can use a pointer to say, "execute this code."  If that place contains data, then you can say, "look at this data."  Code and data look the same in memory, the only difference being that executing data may accidently in your RAM.
Third, here is how applys to Axe, for methods and code:
Code: (Axe Basic) [Select]
ClrHome
sub(SH
Return
Lbl SH
Disp "Hello World!"
When Axe compiles, it saves the location of Lbl SH in the first run.  By location, I mean that it saves offset from the beginning.  So, if SH comes 10 bytes from the beginning, it remembers that SH is 10 bytes from the beginning.
The, it hits the "sub(SH" line.  It says to itself, "hey, I know where that is!  It's 10 bytes from the beginning!"  So, it tells the output program to jump to 10 bytes from the beginning, and come back when it's finished.

With storing data, it works the same way.  If you have:
Code: (Axe Basic) [Select]
[0102030405060708->Pic1
Pt-On(0,0,Pic1
Axe remembers that Pic1 points somewhere, and then supplys that location to the Pt-On command.

Questions?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A little help
« Reply #40 on: April 07, 2010, 11:54:45 pm »
Well you seem to know what you're doing (besides the silly math errors you made the other day ;) Just kidding :P). But you're welcome.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A little help
« Reply #41 on: April 07, 2010, 11:56:53 pm »
silly math errors
I don't seem to recall any of these errors?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A little help
« Reply #42 on: April 07, 2010, 11:57:51 pm »
Let me see if I can find one, one second.

Reader's Digest:
Well, in base 10, you go from 0-9.  In hex, you go from 0-F.  (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F).  All data is stored as a single byte.  A byte is a pair of hex digits: 00 is 0, 0A is 10, FF is 256.  <- Recognize that number?  It's the maximum value of a byte.  A word is a pair of bytes, like BB6D.

But I'm only kidding, it was a joke :P
« Last Edit: April 08, 2010, 12:00:35 am by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A little help
« Reply #43 on: April 08, 2010, 12:07:17 am »
Lol, I knew it was a joke.
My bad.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: A little help
« Reply #44 on: April 08, 2010, 12:26:33 am »
Ok. Now, I am done with all of the in-game variable manipulation. All thats left is to create the array, do sprites for the three starting pokemon, a sprite for the computer's enemy, do the actual battle system, then the saving to the AppVar. I got my work.