Author Topic: Axe Q&A  (Read 601145 times)

0 Members and 1 Guest are viewing this topic.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe Q&A
« Reply #1050 on: November 23, 2011, 12:01:26 pm »
When an appvar or program is created with GetCalc(), is it necessarily filled with anything?  Or is it just whatever random stuff happens to be in that chunk of memory?
Vy'o'us pleorsdti thl'e gjaemue

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1051 on: November 23, 2011, 07:53:48 pm »
I always want to know that too.
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #1052 on: November 23, 2011, 08:00:37 pm »
I believe it's just filled with random junk XD

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1053 on: November 23, 2011, 08:22:08 pm »
aww. How to fill it with zeros?
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #1054 on: November 23, 2011, 08:48:59 pm »
Use the Fill() function ;)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1055 on: November 23, 2011, 08:54:02 pm »
:headbang:
Forgot. I always missed zeros()
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #1056 on: November 23, 2011, 08:56:34 pm »
Zeros() is not what you want, because that will insert more empty memory into your own program, you want to use the Fill() function.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1057 on: November 23, 2011, 09:01:17 pm »
You are right. Eh, the syntax is fill(number, string/gdb/pic/w-e)?
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #1058 on: November 23, 2011, 09:08:17 pm »
It is all in the documentation if you want to check it out, it has lots of useful info.  The syntax is Fill(Pointer, Length) which takes the value at Pointer and extends it for Length bytes.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #1059 on: November 23, 2011, 09:11:06 pm »
Thank you!
I'm not a nerd but I pretend:

Offline Wellen

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 118
  • Rating: +7/-2
    • View Profile
Re: Axe Q&A
« Reply #1060 on: November 24, 2011, 10:20:40 am »
Can we use recursion ?
I mean, something like that :
Code: [Select]
Lbl AXE
//
code
//
If something
sub(AXE
End
Return

Another question :
in this code :
Code: [Select]
Repeat
//
code
//
If something
Goto A
End
End
Is the Goto waiting for an 'End' token as it does with Ti-Basic ?

Edit : is there a problem with the line numbering ? If I add an empty line, it's fine though (see above ;))
« Last Edit: November 24, 2011, 10:23:03 am by Wellen »
-/...././/--./.-/--/.
I'm french, so please feel free to correct my bad english, it'd help me a lot ;)
Spoiler For Feat. Loulou54:
Spoiler For Projects:
Spoiler For Axe:
Ti-Lock : Lock your calc before turning it off               [XXXXXXXX--] 80%
Spoiler For Ti-Basic:
Spoiler For Soko-Ti, a sokoban game in Ti-Basic:

Spoiler For Memory:

Downloads here.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Q&A
« Reply #1061 on: November 24, 2011, 10:28:38 am »
Can we use recursion ?
Yes you can. Just don't nest too many levels. Additionally, to preserve the old values of r1 to r6, which might otherwise get changed, you can use such as sub(LBL,1,2,3)r (That is, append a r)
Quote
Is the Goto waiting for an 'End' token as it does with Ti-Basic ?
You don't need an End after a Goto in TI-BASIC.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1062 on: November 24, 2011, 12:42:45 pm »
I have a very strange question.
Can someone give me a code to make a RAM Clear ?
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Axe Q&A
« Reply #1063 on: November 24, 2011, 12:44:56 pm »
Asm(EFFC80

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Q&A
« Reply #1064 on: November 24, 2011, 12:46:16 pm »
Or just Asm(C7 ;)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.