Author Topic: Shutdown command/asm line  (Read 11611 times)

0 Members and 3 Guests are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Shutdown command/asm line
« on: March 20, 2011, 03:52:47 pm »
Is there an axe command that shuts down your calculator? If not: has someone got an asm line that does this?
I need it for password protection.
If you like my work: why not give me an internet?








Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Shutdown command/asm line
« Reply #1 on: March 20, 2011, 04:02:44 pm »
What do you mean "shut down?"

If you mean to turn the screen off, then just use
Quote
:Asm(DB10CB6F3E0220013CD310C9

Re-run that code to turn it back on as well.

To set the calculator into sleep mode and wait for the [On] key to be pressed, use
Quote
:Asm(3E01D303FB76FDCB09A6C9


To completely turn the calculator off so that the program will exit and the user will return to the homescreen:
Quote
:Asm(EF0850


All courtesy of Xeda and TI-BASIC dev.
« Last Edit: March 20, 2011, 04:03:26 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Shutdown command/asm line
« Reply #2 on: March 20, 2011, 04:03:39 pm »
Asm(EF0850) shuts down your calc (turns off completely, so when you turn it on again it's at the home screen). It causes memory leaks, though.

There some more specific hex codes here, thanks to Xeda.

EDIT: Ninja'd with a better explanation.




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Shutdown command/asm line
« Reply #3 on: March 20, 2011, 04:04:04 pm »
I'm afraid Axe doesn't have such command and Asm(EF0850 is what you need.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Shutdown command/asm line
« Reply #4 on: March 20, 2011, 04:06:17 pm »
If Keoni29 is really brave, they could always use Asm(C7, which doesn't cause memory leaks ;)

« Last Edit: March 20, 2011, 04:06:38 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Shutdown command/asm line
« Reply #5 on: March 20, 2011, 04:09:02 pm »
If Keoni29 is really brave, they could always use Asm(C7, which doesn't cause memory leaks ;)



No, don't do that :P That's the instant RAM reset code.




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Shutdown command/asm line
« Reply #6 on: March 20, 2011, 04:11:04 pm »
If Keoni29 is really brave, they could always use Asm(C7, which doesn't cause memory leaks ;)



No, don't do that :P That's the instant RAM reset code.

http://ourl.ca/8617/160758

And Qwerty knows it :P

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Shutdown command/asm line
« Reply #7 on: March 20, 2011, 04:12:25 pm »
If Keoni29 is really brave, they could always use Asm(C7, which doesn't cause memory leaks ;)



No, don't do that :P That's the instant RAM reset code.

Awww, you spoiled the ruination of hours of work by a single misplaced byte :P

j/k

I probably should have mentioned that in my post...

« Last Edit: March 20, 2011, 04:13:02 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Shutdown command/asm line
« Reply #8 on: March 20, 2011, 05:37:01 pm »
If you simply want to turn off the calc without exiting to the home screen, you can use Asm(3E01D303 I believe. I've never had to use it in an assembly program.

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: Shutdown command/asm line
« Reply #9 on: March 20, 2011, 05:43:15 pm »
Quote
:Asm(EF0850
Is that what super mario 1.2/2.0 do when you press MODE?  I'm kind of shooting for an effect like that
Vy'o'us pleorsdti thl'e gjaemue

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Shutdown command/asm line
« Reply #10 on: March 20, 2011, 05:52:49 pm »
What does that do?

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: Shutdown command/asm line
« Reply #11 on: March 20, 2011, 05:57:34 pm »
You press mode and the screen turns off until you press on.  It was called a teacher key iirc.
« Last Edit: March 20, 2011, 05:57:43 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Shutdown command/asm line
« Reply #12 on: March 20, 2011, 06:01:26 pm »
If you execute 3E01D303 when you press Mode, that is what will happen :) If you use the EF0850, it will exit the program or App upon pressing On.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Shutdown command/asm line
« Reply #13 on: March 20, 2011, 06:50:01 pm »
EF0850 is basically "quit everything and shut down" (not really, but it's as close as you're gonna get without causing a RAM clear). If you run it from a program, it can cause memory leaks (not sure, gotta check).




Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Shutdown command/asm line
« Reply #14 on: March 20, 2011, 06:57:17 pm »
I don't think it resets the stack or any of the non-volatile RAM storage areas (aside from the homescreen), so it shouldn't cause major leaks.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ