Author Topic: Bug Reports  (Read 456714 times)

0 Members and 2 Guests are viewing this topic.

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: Bug Reports
« Reply #795 on: September 26, 2010, 04:15:16 pm »
Um, here's a way to look at it in Ti-Basic:

Repeat not(X
X-1->X
If Ans=-1
65535->X
End
« Last Edit: September 26, 2010, 04:27:12 pm by ztrumpet »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Bug Reports
« Reply #796 on: September 26, 2010, 04:24:48 pm »
I thought it might be clearer with labels ;)
Probably better to use a separate If statement for clarification though, like you did.
Is the "65536->Ans" line a typo, though? It seems like it should be "65535->X"
"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 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: Bug Reports
« Reply #797 on: September 26, 2010, 04:26:29 pm »
Why? -1+1 is technically 65536, so it should be 65536->X.
« Last Edit: September 26, 2010, 04:27:30 pm by Deep Thought »




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: Bug Reports
« Reply #798 on: September 26, 2010, 04:26:41 pm »
Is the "65536->Ans" line a typo, though? It seems like it should be "65535->X"
* ZTrumpet feeds himself to the lobster. :(

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Bug Reports
« Reply #799 on: September 26, 2010, 04:29:29 pm »
Why? -1+1 is technically 65536, so it should be 65536->X.
Well, if 0 is supposed to become 65535, then the lines "X-1->X:If X=-1:65536->X" set it to 65536, not the wanted 65535. Or am I misunderstanding you?
"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 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: Bug Reports
« Reply #800 on: September 26, 2010, 04:30:21 pm »
Oh, wait, never mind :P

* Deep Thought feeds himself to the lobster as well

EDIT: Netham's gonna be pretty full today...
« Last Edit: September 26, 2010, 04:31:20 pm by Deep Thought »




Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: Bug Reports
« Reply #801 on: October 02, 2010, 06:48:49 am »
Just found a little keydetection bug.
(At least, on apps)
When you press a key, and you close the app, it remembers the key.
For example in splut, if you open the settings screen (by pressing MODE), it opens the mode menu (the TIOS one) upon closing Splut.

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline 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: Bug Reports
« Reply #802 on: October 02, 2010, 10:10:21 am »
Oh right I remember that. When exiting games with clear, the homescreen content is cleared almost in an instant.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Bug Reports
« Reply #803 on: October 02, 2010, 12:30:45 pm »
Oh right I remember that. When exiting games with clear, the homescreen content is cleared almost in an instant.

Couldn't you just put the following code at the end of the program, right before it exits? Or is this something different involving apps in particular.
Code: [Select]
While getKey(15)
End

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bug Reports
« Reply #804 on: October 02, 2010, 12:38:23 pm »
I think the solution is to put a simple getKey before the program exits. That will read and clear out the recorded keypress.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Bug Reports
« Reply #805 on: October 02, 2010, 08:10:48 pm »
I think the solution is to put a simple getKey before the program exits. That will read and clear out the recorded keypress.

That works, but if you've been using getKey(#) all throughout your program, it would add another 50 bytes or so. Repeat getKey(0):End would work in that case.




Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bug Reports
« Reply #806 on: October 02, 2010, 08:19:52 pm »
I think the solution is to put a simple getKey before the program exits. That will read and clear out the recorded keypress.

That works, but if you've been using getKey(#) all throughout your program, it would add another 50 bytes or so. Repeat getKey(0):End would work in that case.
That doesn't work, because it doesn't clear out the key recorded by the OS. That said, each use of getKey takes up only 6 bytes anyway.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Bug Reports
« Reply #807 on: October 02, 2010, 08:23:02 pm »
Oh, wait, I meant While getKey(0). But yeah, I guess, but doesn't getKey require a subroutine? If the program never uses getKey, it might be better not to add it in at the end and add an extra 50-byte sub.




Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bug Reports
« Reply #808 on: October 02, 2010, 08:49:46 pm »
It's not a 50-byte sub, it's provided by the OS. So it's only 6 bytes total added to the program.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: Bug Reports
« Reply #809 on: October 02, 2010, 08:52:05 pm »
Oh, I must have been thinking of a different routine.