On Flag? Huh?
Moderator: MaxCoderz Staff
- L4E_WakaMol-King
- Maxcoderz Staff
- Posts: 342
- Joined: Tue 01 Nov, 2005 6:34 am
On Flag? Huh?
I was reading around on the Learn ASM in 28 days thing, and found an On Flag (OnRunning). It it set to 1 if the calculator is on. Why in the world would you need that? It's not like you can write code to execute when the calc is off...
- Now Under Development - [Progress]
- L4E_WakaMol-King
- Maxcoderz Staff
- Posts: 342
- Joined: Tue 01 Nov, 2005 6:34 am
Hmm, perhaps. But even in these cases mentioned, it would have to be 0 at some times... and it doesn't seem to make much sense for the calc to check if it is on.
If it's being used for something like battery replacement or link port stuff, then it would have to remain as 0 even a little after being turned on. Then the calc could check if it is on and find that, in fact, it is off. Talk about an identity crisis...
If it's being used for something like battery replacement or link port stuff, then it would have to remain as 0 even a little after being turned on. Then the calc could check if it is on and find that, in fact, it is off. Talk about an identity crisis...
- Now Under Development - [Progress]
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
The calculator switches itself on when you do anything on the link port (there are a number of different things that can fire interrupts - timers (disabled when the calc is off), on key, and link port).
I believe the on flag is just to save the state of the calculator - if it handles an on-key interrupt, it then checks the flag. If the calculator is off, it switches on. Otherwise, it checks for the 2nd key flag (and if that's set it switches off). Then it toggles the flag.
I believe the on flag is just to save the state of the calculator - if it handles an on-key interrupt, it then checks the flag. If the calculator is off, it switches on. Otherwise, it checks for the 2nd key flag (and if that's set it switches off). Then it toggles the flag.
Unfortunately Ti-83s don't have the link interrupt, or so I've been told... I'll try never the less of coursebenryves wrote:The calculator switches itself on when you do anything on the link port (there are a number of different things that can fire interrupts - timers (disabled when the calc is off), on key, and link port).
Sounds very likelyI believe the on flag is just to save the state of the calculator - if it handles an on-key interrupt, it then checks the flag. If the calculator is off, it switches on. Otherwise, it checks for the 2nd key flag (and if that's set it switches off). Then it toggles the flag.
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact: