Author Topic: Routines  (Read 313269 times)

0 Members and 4 Guests are viewing this topic.

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: Routines
« Reply #225 on: April 06, 2010, 03:00:16 pm »
and source code in text form
I'm sorry :-[
Interesting I didn't knew we could do that x.x. I was sure it either required inline assembly or 4 pt-ons
Well, apparently we can with the nice r option!
* LC really likes the nice r option *
oh no problem ^^ it's fine I just felt like posting it in text myself in case, but you don't really have too since people can open the file in SourceCoder ^^

I guess for the r function it's much more useful than I thought

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Routines
« Reply #226 on: April 06, 2010, 03:55:12 pm »
yeah, sure it is!
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Routines
« Reply #227 on: April 06, 2010, 06:43:46 pm »
I just saw the small amount of text from DJ's post, I thought L6 corrupted when graph stuff was involved? Or did I read the Axe thing wrong?
Spoiler For Spoiler:



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

SirCmpwn

  • Guest
Re: Routines
« Reply #228 on: April 06, 2010, 06:45:52 pm »
That is because L6 is the screen  (for all intents and purposes).  Writing random data to it will fill it with gibbersh.  However, writing meaningful data to it will fill it with meaningfullish.
Try this: write FF to L6.  You get a 8 pixel wide black bar.
« Last Edit: April 06, 2010, 06:46:56 pm by SirCmpwn »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Routines
« Reply #229 on: April 06, 2010, 06:55:05 pm »
So basically when the readme.txt says L6 is corrupt it basically just means that it will overwrite screen data?
Spoiler For Spoiler:



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

SirCmpwn

  • Guest
Re: Routines
« Reply #230 on: April 06, 2010, 06:55:42 pm »
Exactly.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Routines
« Reply #231 on: April 06, 2010, 07:01:28 pm »
Ah ok. Interesting.
Spoiler For Spoiler:



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

SirCmpwn

  • Guest
Re: Routines
« Reply #232 on: April 06, 2010, 07:02:47 pm »
Play around with L6 for a while.  You will have to be able to convert binary to hex, though.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Routines
« Reply #233 on: April 06, 2010, 07:04:57 pm »
Ya, I don't really understand any hex currently. I need to look into that.
Spoiler For Spoiler:



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

SirCmpwn

  • Guest
Re: Routines
« Reply #234 on: April 06, 2010, 07:06:20 pm »
Understanding the differences between decimal, hexidecimal, and binary is pretty important.  Wanna quick explination?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Routines
« Reply #235 on: April 06, 2010, 07:09:54 pm »
Well I know decimal is base 10, binary is base 2, and hex is base 16. I know how to convert between binary and decimal back and forth, I just have never needed hex yet so haven't looked into it. If you wanna explain though you can. It'd be appreciated by more than me I'm sure.
Spoiler For Spoiler:



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

SirCmpwn

  • Guest
Re: Routines
« Reply #236 on: April 06, 2010, 07:12:47 pm »
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.
« Last Edit: April 06, 2010, 07:13:02 pm by SirCmpwn »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Routines
« Reply #237 on: April 06, 2010, 07:19:56 pm »
Um, i think you meant FF = 255.  256 is 100 in Hex.  Remember, since F represents 15, than FF translates to this

FF = F in the 16s place + F in the 1s place = 15*16 + 15*1 = 255

Also, this is very important when learning about bases:  FF in hex == 255 in decimal.  They are the same number, the same amount.  Base does not change the number, or amount, that you have, only the method in which it is displayed or stored.
« Last Edit: April 06, 2010, 07:22:05 pm by Builderboy »

SirCmpwn

  • Guest
Re: Routines
« Reply #238 on: April 06, 2010, 07:21:33 pm »
Woops, thanks for the correction.
Yes, 255 is FF.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Routines
« Reply #239 on: April 06, 2010, 07:25:34 pm »
So the first place is 1, then 16, 256, and so on? Correct?
Spoiler For Spoiler:



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