Author Topic: Routines  (Read 298168 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Routines
« Reply #315 on: June 09, 2010, 11:22:44 pm »
I think Builderboy might find this useful for his BASIC editor for when he wants to make sure there's enough RAM to add stuff to programs.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Routines
« Reply #316 on: June 10, 2010, 03:52:16 pm »
That doesn't seem to work... it gives numbers that are anywhere for 50 to 1000 btes less than the actual...
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Routines
« Reply #317 on: June 10, 2010, 03:54:30 pm »
That doesn't seem to work... it gives numbers that are anywhere for 50 to 1000 btes less than the actual...
Well, while the program is running there is less RAM available. So it will be different from the memory menu, I think.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Routines
« Reply #318 on: June 10, 2010, 03:54:32 pm »
When your programs running no-shell, a copy of it is created in RAM, for which reason there is less space.
Edit: Ninja'd again!
« Last Edit: June 10, 2010, 03:55:10 pm by calcdude84se »
"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 cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Routines
« Reply #319 on: June 10, 2010, 03:55:44 pm »
O... so to get the actual value I would have to subtract the size of the program?
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Routines
« Reply #320 on: June 10, 2010, 03:57:17 pm »
no. that is the actual value: you can only create a variable up to that size.
If you mean the RAM available when nothing is running, then it is yes, actually.
« Last Edit: June 10, 2010, 03:58:01 pm by calcdude84se »
"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 calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Routines
« Reply #321 on: June 10, 2010, 03:57:38 pm »
It is the "actual value" for all practical purposes, unless you want to display exactly what is on the memory menu.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Routines
« Reply #322 on: June 10, 2010, 03:58:45 pm »
Yeah, I want the value when nothing is running. Thanks! (And this time, Calc84Maniac is ninja'd...)
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Routines
« Reply #323 on: June 16, 2010, 10:10:13 pm »
Bresenham circle algorithm is in your Axe. Draws perfect circles. :)
Code: [Select]
:.INPUTS: X,Y=CENTER, R=RADIUS
:Lbl C
:-(R→M)→E
:0->N
:While M≥N
:Pxl-On(X+M,Y+N
:Pxl-On(X+M,Y-N
:Pxl-On(X-M,Y+N
:Pxl-On(X-M,Y-N
:Pxl-On(X+N,Y+M
:Pxl-On(X+N,Y-M
:Pxl-On(X-N,Y+M
:Pxl-On(X-N,Y-M
:If N+1→N*2-1+E→E≥≥0
:-(M-1→M)*2+E→E
:End
:End
:Return
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

SirCmpwn

  • Guest
Re: Routines
« Reply #324 on: June 17, 2010, 12:28:05 am »
Woah.  Nice.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Routines
« Reply #325 on: June 17, 2010, 03:13:04 am »
Mhmm could you post a SourceCoder version of this program? I copied it in SC and saved, but had to edit the syntax a bit and couldn't figure out what is it it seems, because when I ran the program I got a RAM clear
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Routines
« Reply #326 on: June 17, 2010, 03:15:03 am »
Did you initialize X,Y,R and call the routine? Also, apparently R value of 0 crashes... I found this out the hard way.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Routines
« Reply #327 on: June 17, 2010, 03:17:34 am »
oh I did not realize we had to enter inputs. I did not know Axe supported variables other than Ans now.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Routines
« Reply #328 on: June 17, 2010, 03:18:20 am »
I meant Axe variables.

Edit:
Yeah, the above code wasn't a full program, just a callable routine.
« Last Edit: June 17, 2010, 03:24:04 am by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Routines
« Reply #329 on: June 17, 2010, 03:25:11 am »
oh ok thanks

Wow that's sure fast circle stuff... /me stabs TI with their slow circle display routines (even the fast one)

Nice job
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)