Author Topic: BatLib Default Modes  (Read 21637 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
BatLib Default Modes
« on: April 12, 2011, 04:26:06 pm »
Okay, so currently, I would like to know if ReCode should automatically set Full or not. So, what is your opinion?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BatLib Default Modes
« Reply #1 on: April 13, 2011, 04:19:30 am »
I think it should be 6MhZ, like in Axe, and the user can change it to 15MhZ.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: BatLib Default Modes
« Reply #2 on: April 13, 2011, 03:55:06 pm »
I voted for 6mhz also, as I think it's easier if the faster languages are in 6mhz mode on default, to avoid some conflicts between the 83+ and the 83+SE and above. :)

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Default Modes
« Reply #3 on: April 13, 2011, 06:34:01 pm »
Hmm, okay. When I decided to make the regular commands run at max speed, I didn't disable that for ReCode which is why in the latest version it starts at 15MHz (if possible). So it looks like in the next version, default will be 6MHz :)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: BatLib Default Modes
« Reply #4 on: April 13, 2011, 06:37:40 pm »
Wait, are you talking about the entire program, or just the ReCode part?

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Default Modes
« Reply #5 on: April 13, 2011, 06:46:40 pm »
Just the ReCode part :) I plan to keep the rest at max speed :)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: BatLib Default Modes
« Reply #6 on: April 13, 2011, 07:02:10 pm »
In my opinion, it should be set at 6Mhz by default. :)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: BatLib Default Modes
« Reply #7 on: April 13, 2011, 08:11:31 pm »
So would it be changing between 6mhz and 15mhz modes a lot if it was going between BatLib and ReCode and regular Basic?  Or would it always be set at 6mhz or 15mhz mode?

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Default Modes
« Reply #8 on: April 13, 2011, 10:18:55 pm »
When it comes across a regular BatLib command, the code will be executed at 15MHz, but when it enters ReCode, I will make it so that drops down to 6MHz.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: BatLib Default Modes
« Reply #9 on: April 13, 2011, 10:20:03 pm »
Ah.  In that case, I retract my vote, as the speed would be different on the 83+ anyway.
15mhz mode all the way! ;D

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: BatLib Default Modes
« Reply #10 on: April 13, 2011, 10:43:48 pm »
Does the 15mhz mode drain the battery much faster?

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Default Modes
« Reply #11 on: April 14, 2011, 12:42:39 am »
The answer is yes and no :)
It will use the same power to perform the same actions, so in that sense, no. However, since it performs at 2.5 times the speed, it will drain at 2.5 times the speed. So, in situations where you need speed (graphics and data crunching), either mode will use the same amount of energy, but 15MHz mode will do it faster. However, if your calc is idling, waiting for user input, at 15MHz you are just draining your batteries.

So with that in mind, I will go back and modify some routines. The routines that wait for user input, like the getkey routines and Pause will execute at 6MHz and the rest will remain at the users current setting. This is especially a good idea for Pause because in 15MHz mode, Pause 250 would pause for 1 second instead of 2.5 like it would at 6MHz.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: BatLib Default Modes
« Reply #12 on: April 14, 2011, 12:49:43 am »
Interrupts work faster too, right? And, doesn't sound get screwed up? There's lots of things that change in 15 mhz mode.
« Last Edit: April 14, 2011, 12:50:29 am by willrandship »

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib Default Modes
« Reply #13 on: April 14, 2011, 12:55:05 am »
Hmm, BatLib has interrupts turned off, so that isn't a problem at the moment, but I didn't know about the sound... I guess I should change the sound commands to 6MHz mode, too! Thanks!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: BatLib Default Modes
« Reply #14 on: April 14, 2011, 04:33:46 am »
I think the default both in BatLib and ReCode should be 6Mhz, however, if we use, let's say:

dim(X

It will make BatLib full.

If we did:

dim(40
Full
...
Stop

It would make ReCode 15mhz.