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

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Re: [Axe Parser] Bytes?
« Reply #15 on: March 23, 2010, 02:29:33 pm »
...and lets you store your own, too!
You can store at compile time using hex.  You can store/retrieve at execution time using decimal or 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 #16 on: March 23, 2010, 02:32:40 pm »
Explain that one a bit. o_o
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 #17 on: March 23, 2010, 02:35:24 pm »
So, in your source code, you can define data in terms of hex, like so:
[0102030A
This is taken at compile time and placed into the binary.
You can also specify in your source code:
E0A to use a hex digit or group of hex digits.  You could also specify:
17 to use a decimal digit or group of decimal digits.

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 #18 on: March 23, 2010, 02:37:22 pm »
How would you retrieve that data?
A little more clarity is needed... :(
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 #19 on: March 23, 2010, 02:38:53 pm »
Hex:
E0A->{GDB1}
{GDB1}->A    ; A now equals ten

Decimal
10->{GDB1}
{GDB1}->A

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 Parser] Bytes?
« Reply #20 on: March 23, 2010, 03:07:49 pm »
You retrieve data by naming it.  If you store 100 bytes of data to memory and name that location "Str1" then you can access the entire 100 bytes with {Str1} for the first byte, {1+Str1} for the second byte, {2+Str1} for the third byte, or even {N+Str1} for the N-1th byte.  Same as how you would in BASIC do L1(N).
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #21 on: March 23, 2010, 03:51:18 pm »
Ahh.
Thank you so much.
Clarity is truly refreshing.

EDIT: OMG! Revelation!
*Prophet runs away to program

HINT: This has to do with ARMY.
Look below.
It is a project I had on hold...

Until now...
« Last Edit: March 23, 2010, 04:31:35 pm by ProphetsDementia »
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







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: [Axe Parser] Bytes?
« Reply #22 on: March 23, 2010, 04:35:58 pm »
lol nice ^^

weren't you supposed to finish Lemonade Tycoon in 24 hours, though? :P
* DJ Omnimaga runs `-` 

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 #23 on: March 23, 2010, 04:38:47 pm »
*Prophet dive-tackles DJ
THE TRUTH MUST NOT BE KNOWN!
RAWR!

Yes, it was to be done in 48 HOURS.
But, a BSOD kicked my arse.
So... yeah...

LEMONADE TYCOON STILL WON GOLD!
>:D
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







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: [Axe Parser] Bytes?
« Reply #24 on: March 23, 2010, 04:48:15 pm »
aw that sucks about the BSOD x.x

Glad you won though

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [Axe Parser] Bytes?
« Reply #25 on: March 23, 2010, 05:47:31 pm »
So I just read this whole thing, what exactly is meant by "using bytes" and such?

@Prophet
Congrats on the win, what is BSOD though? ???
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: [Axe Parser] Bytes?
« Reply #26 on: March 23, 2010, 05:49:41 pm »
blue screen of death

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [Axe Parser] Bytes?
« Reply #27 on: March 23, 2010, 06:23:12 pm »
Ah, ya, that makes sense. That always sucks :(
Spoiler For Spoiler:



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

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: [Axe Parser] Bytes?
« Reply #28 on: March 23, 2010, 06:47:04 pm »
my dad was the one who taught me that term (BSOD).. xD
remember me as a time of day...

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Axe Parser] Bytes?
« Reply #29 on: March 23, 2010, 06:58:26 pm »
Yeah there is often the misconception between bytes and numbers, and the thing is, Bytes are numbers! :) In Axe there are two ways to represent a byte (number), in Hex or in Decimal.  Hex is easy to store bytes in because it is closely related to binary, and yet Decimal is easy for programmers to write in because we live in base 10 :)