Author Topic: [Axe Parser] Bytes?  (Read 19639 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
[Axe Parser] Bytes?
« on: March 23, 2010, 01:48:50 pm »
I've looked at a bunch of different programs and a lot of them use bytes explicitly.
I was just wondering...
How would a TI-BASIC programmer use these bytes?
What would I use them for?

Could you break it down to a level a noob (well... ASM noob) could understand?

For example, Builderboy was talking about how he used bytes in Portal X to do something...

Any clarity on the topic will be greatly appreciated. :)
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #1 on: March 23, 2010, 01:59:13 pm »
Do you know how hexidecimal works?

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #2 on: March 23, 2010, 02:00:36 pm »
What do you mean?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #3 on: March 23, 2010, 02:01:25 pm »
If I said, what does 0A represent, you would say...

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #4 on: March 23, 2010, 02:03:02 pm »
It looks like a memory address... Or 10 in Base-10.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #5 on: March 23, 2010, 02:05:15 pm »
Or 10 in Base-10.
There you go!  So, when you do this in Axe:
[010203
it stores three bytes to the end of the binary.  They are as follows:
01
02
03
Who'd a thunk? ;) So, let's say you do this:
[010203->GDB1
Then, when you do this:
{GDB1}->A
01 is stored to A.
Also, if you do this:
{GDB1+1}->A, you get 02 stored to A.  Kapeesh?

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #6 on: March 23, 2010, 02:07:16 pm »
Oooooohhh. I get it. So, how would you store more than that to something?
*Prophet thinks about making an animated sprite
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #7 on: March 23, 2010, 02:07:44 pm »
Instead of [010203, do [01020304 ;)

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #8 on: March 23, 2010, 02:10:06 pm »
I mean, how do you have Axe extract more data than just those two values?
Instead of just 01, how do I make it take 0102 and evaluate it?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #9 on: March 23, 2010, 02:15:35 pm »
{GDB1}r->A
Puts 0102 into A

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #10 on: March 23, 2010, 02:18:09 pm »
So, 01 is actually one byte... And 0102 would be two bytes...
This means that everything involving bytes would be in hex.
Correct?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #11 on: March 23, 2010, 02:18:30 pm »
Yes.

*EDIT*
Unless you do
5->{GDB1}
« Last Edit: March 23, 2010, 02:18:51 pm by SirCmpwn »

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #12 on: March 23, 2010, 02:24:09 pm »
What happened there?
Are you allowed to drop the zeros?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #13 on: March 23, 2010, 02:25:39 pm »
Not hex

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: [Axe Parser] Bytes?
« Reply #14 on: March 23, 2010, 02:26:32 pm »
Ahh. That would make sense.
Axe allows you to access all memory to store data...
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm