Author Topic: What happens when a calculator crashes...  (Read 17865 times)

0 Members and 3 Guests are viewing this topic.

SirCmpwn

  • Guest
What happens when a calculator crashes...
« on: March 24, 2011, 08:59:55 pm »
What does the z80 do when it crashes?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: What happens when a calculator crashes...
« Reply #1 on: March 24, 2011, 09:02:41 pm »
What do you mean exactly by "crash"?
"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 mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: What happens when a calculator crashes...
« Reply #2 on: March 24, 2011, 09:06:51 pm »
Is this like a joke?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: What happens when a calculator crashes...
« Reply #3 on: March 24, 2011, 09:08:21 pm »
Not at all. It's not in Randomness ;)
"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 jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: What happens when a calculator crashes...
« Reply #4 on: March 24, 2011, 09:10:03 pm »
What does the z80 do when it crashes?
It depends on how it crashes.  I would say it just resets to start at $4000 on page 7F, just like booting.  TIOS may have a flag somewhere that gets set every time the OS starts, and if RAM is cleared, the flag is automatically reset, indicating to TIOS that RAM was reset.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: What happens when a calculator crashes...
« Reply #5 on: March 24, 2011, 09:10:36 pm »
Ahh. Oops. But now I'm curious, what DOES happen? RAM clear? Calc turns off? Do you just remove the batteries for 15 minutes?

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: What happens when a calculator crashes...
« Reply #6 on: March 24, 2011, 09:11:26 pm »
Ahh. Oops. But now I'm curious, what DOES happen? RAM clear? Calc turns off? Do you just remove the batteries for 15 minutes?
You usually don't have to keep batteries out, that's only for rare cases.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: What happens when a calculator crashes...
« Reply #7 on: March 24, 2011, 09:13:04 pm »
Ahh. Oops. But now I'm curious, what DOES happen? RAM clear? Calc turns off? Do you just remove the batteries for 15 minutes?
You usually don't have to keep batteries out, that's only for rare cases.

Good. Las time my HP-50g crashed, the ON/CANCEL button stopped working, which means I couldn't turn it off without removing the batteries, and unless they were out for 15 minutes, the button stayed stuck.

Online 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: What happens when a calculator crashes...
« Reply #8 on: March 24, 2011, 09:16:02 pm »
Actually in that case it might be a freeze. When the calculator crashes, the user sees it eventually turn OFF, kinda, then when truning it ON again it says RAM Cleared. Some bad ASM code could cause the calc to freeze like you described and never get to the reset code (or whatever it is), so a battery pull is required.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: What happens when a calculator crashes...
« Reply #9 on: March 24, 2011, 09:17:40 pm »
Yeah, for example, don't run di and then halt in z80.  That's a freeze that you would have to remove A battery for, to reset it.

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: What happens when a calculator crashes...
« Reply #10 on: March 24, 2011, 09:28:22 pm »
There's this tutorial that someone wrote on how to deal with crashes. I can't remember where it is, but it was really sophisticated, and went into everything from running out of batteries to using Calcsys. Could someone please post that link?
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: What happens when a calculator crashes...
« Reply #11 on: March 24, 2011, 09:29:10 pm »
I think he's more interested in what the calc does than how to fix it ;)
"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.

Online 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: What happens when a calculator crashes...
« Reply #12 on: March 24, 2011, 09:35:53 pm »
Yeah he really wants to know what technical stuff does the calc do, such as what ASM code is executed and how the hardware operates.

Offline mikehill2003

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 279
  • Rating: +13/-4
    • View Profile
Re: What happens when a calculator crashes...
« Reply #13 on: March 24, 2011, 09:45:11 pm »
Yeah he really wants to know what technical stuff does the calc do, such as what ASM code is executed and how the hardware operates.

Okay, cool. I couldn't really tell.

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: What happens when a calculator crashes...
« Reply #14 on: March 24, 2011, 09:45:31 pm »
Here's what I learned from that crash tutorial:

- When the RAM clears (probably because a certain address reads zero), the calculator runs the boot certificate code, which is a bit of code that all calculators have, and cannot be modified. This code tells it to boot the OS. (If you hold down DEL while replacing the battery, it will not boot the OS and will instead accept a new one from link transfer)
- When the OS boots, it goes through your archive and looks for archived variables, putting them into the VAT for access later. (If you hold down CLEAR while replacing the battery, it will skip this step, and it will appear as if there are no variables in archive)
- Once it has gone through your archive, it initializes all of the RAM variables and shows you the RAM Cleared screen.

I don't know much more (much less the super techincal details of all of this) but I know that some people do know. One such person is Benjamin Moody, the person who made The Impossible Game and TI-Boy SE. His app, zStart, can run on RAM clear, which means that all of your defaults are automatically restored after a crash. It works because part of the OS is modified to call that code.
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com