This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Calculator Tech Support => Technology & Calculator Open Topic
Author Message
DJ Omnimaga
http://i-lost-the-ga.me


Calc Guru


Joined: 14 Nov 2003
Posts: 1196

Posted: 19 Dec 2003 02:03:22 pm    Post subject:

If anyone can help me find one (one that I can run with Asm( and without shell), It would help me cuz pressing ON in my RPG can make the game no longer executable.

And a prgm that store pics in archived pics without unarchiving them could be helpful too.
Back to top
Fr0sty


Member


Joined: 27 Nov 2003
Posts: 202

Posted: 19 Dec 2003 05:47:50 pm    Post subject:

According to This, It won't work unless you make your program entirely of ASM.
Back to top
Jedd
1980 Pong World Champion


Elite


Joined: 18 Nov 2003
Posts: 823

Posted: 19 Dec 2003 05:50:04 pm    Post subject:

I don't think there is a program like that. Are you worried about people breaking your program while they play? Because if so, I wouldnt recomend taking that out. When playing games its always better if the user can simply quit if something goes wrong or they just don't want to go through the menu to quit or something.
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 19 Dec 2003 06:21:10 pm    Post subject:

well, you can use a small asm program that just has a delay loop and a ret. Or you could try using interupts. If you find an interrupt method, let me know.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 20 Dec 2003 05:41:28 am    Post subject:

Moved to general help and support.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 20 Dec 2003 10:51:23 am    Post subject:

Fr0sty wrote:
According to This, It won't work unless you make your program entirely of ASM.

I think it checks for [on] to break it every time it looks at at a piece of Basic code. It could probably be done only by writing your own basic parser, or by somehow modifying TI's.

Quote:
I don't think there is a program like that. Are you worried about people breaking your program while they play? Because if so, I wouldnt recomend taking that out. When playing games its always better if the user can simply quit if something goes wrong or they just don't want to go through the menu to quit or something.

Maybe it's better to protect your program when you're done writing it, so that people cannot edit it but can use break to get out.

It's a pity TIBasic doesn't have try...finally statements. Is what you're trying to do like archiving a picture you use or saving the vars to a list?
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 20 Dec 2003 01:54:19 pm    Post subject:

I have two programs written for blocking and unblocking the on key. They have been tested and work flawlessly!
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 20 Dec 2003 02:14:29 pm    Post subject:

Where can I get them?

Edit: And how do they work?


Last edited by Guest on 20 Dec 2003 02:42:37 pm; edited 1 time in total
Back to top
Jedd
1980 Pong World Champion


Elite


Joined: 18 Nov 2003
Posts: 823

Posted: 20 Dec 2003 02:47:40 pm    Post subject:

Quote:
It's a pity TIBasic doesn't have try...finally statements.


What are those???
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 20 Dec 2003 02:50:18 pm    Post subject:

They work with interrupts, and i have to upload them.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 20 Dec 2003 02:56:38 pm    Post subject:

Jedd wrote:
Quote:
It's a pity TIBasic doesn't have try...finally statements.


What are those???

the code under finally is executed even if an error results. So in your case, when the user presses [on], you would put things like

Code:
Archive Pic1
{A,R,C,X,Y} -> LSAVE
Archive LSAVE

under the finally. If there were a try/finally statement in TI-Basic.

There is a Try... Else... EndTry in TI89-Basic, which could be almost used for the same purpose. But it doesn't catch the break error. Sad Which makes it pointless.
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 20 Dec 2003 02:58:01 pm    Post subject:

Done, check my members folder.

http://unitedti.org/members/jbirk/

the programs are yeson and noon.

Asm(prgmNOON to block the on button

and the other to unblock it.

You should use it within a basic program.

While 1
End

is an infinate loop, so to freeze your calculator, make a basic program like this and without the on break, you will have to pull a battery.

Asm(prgmNOON
While 1
End

A good test is:

Asm(prgmNOON
For(A,0,1000
Disp A
End
Asm(prgmYESON


Last edited by Guest on 20 Dec 2003 03:00:26 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 20 Dec 2003 02:59:40 pm    Post subject:

Thanks.
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 20 Dec 2003 03:01:21 pm    Post subject:

Okay, I uploaded it now.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 20 Dec 2003 03:27:46 pm    Post subject:

Could you make one so you can't use [2nd][Quit] to exit in the Input command?

Also, will it hurt the calculator to run prgm NOON then not run prgm YESON at the end?


Last edited by Guest on 20 Dec 2003 03:31:53 pm; edited 1 time in total
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 20 Dec 2003 03:59:28 pm    Post subject:

It should just block on breaks until you run the other prog, or clear your ram.
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 21 Dec 2003 04:22:24 am    Post subject:

No, it won't hurt the calculator. Worse case sencario, you get stuck in an endless loop and have to pull a battery to reset your ram.

BTW, there are other ways out of it. If you exit the basic program, with noon enabled, there shouldn't be any problems. Really, it only blocks ON until the interrrupt gets overwritten. You could just turn the calculator off then on from the homescreen; TIOS will overwrite the interrrupt then.

All in all, it works very well.
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 21 Dec 2003 08:53:47 am    Post subject:

wait, wouldn't it block you from turning it off with the on key?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 21 Dec 2003 05:11:04 pm    Post subject:

It didn't so I guess it shouldn't.
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 21 Dec 2003 08:52:21 pm    Post subject:

Ok, now I'm confused. I wonder if anyone from DS can give me a technical answer to explain why it works that way?
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2, 3  Next
» View previous topic :: View next topic  
Page 1 of 3 » All times are UTC - 5 Hours

 

Advertisement