Author Topic: Bug Reports  (Read 467456 times)

0 Members and 1 Guest are viewing this topic.

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 #180 on: May 04, 2010, 06:41:49 pm »
Do you write down some notes while coding? Sometimes it's a good practice to do so, even if on paper. It can help a lot when your code gets very huge, along with the comments inside the code.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #181 on: May 04, 2010, 06:45:57 pm »
Yeah, every single subroutine I have I list the input, output, flag states, and sometimes a description of what should happen.  It wasn't like that before this update though becasue before, I had only done this to about 50% of the subroutines.  Now its about 90%.  Does the new version compile your code alright?
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #182 on: May 04, 2010, 06:48:00 pm »
post

EDIT: Nvm the 0.2.2 post was edited. I am used to new post every update XD

I'll put new version on my calc later

EDIT 2: UPDATE! It worked! My program also shrunk by 1 byte :P
« Last Edit: May 04, 2010, 07:20:55 pm by DJ Omnimaga »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bug Reports
« Reply #183 on: May 04, 2010, 11:00:29 pm »
It might be worthy to note that writing to L2 while in MirageOS crashes your calc :( Maybe it should throw an error when compiling for Mirage?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #184 on: May 04, 2010, 11:14:24 pm »
I'll put a note in the readme, that's a good idea.  But I won't block its usage because it might be useful for programs that need to change MOS variables as part of the program.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #185 on: May 04, 2010, 11:19:08 pm »
It might be good to put a warning about Mirage using that, but again I'm not sure. What would be the right code to use to prevent such crash from happening upon exiting the game?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bug Reports
« Reply #186 on: May 04, 2010, 11:22:39 pm »
For me the crash happened immediately, not just when exiting the program, which is weird o.O what is Mirage doing during execution? And why is it that Mirage can run any asm program that fits in RAM but the TiOS can only run up to 8126 bytes?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #187 on: May 04, 2010, 11:31:15 pm »
Mirage sets up an interrupt table with it's own interrupt routine.  So if you happen to write over that, bad code can execute in the middle of your program whenever an interrupt is called.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #188 on: May 04, 2010, 11:35:14 pm »
Ouch x.x

bad, then. And I used L2 sometimes x.x

Are others safe in Mirage, though?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #189 on: May 04, 2010, 11:37:37 pm »
Yeah, all other areas are safe from mirage, but may not be safe for other things.  All of those specifics are documented in the commands list.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #190 on: May 04, 2010, 11:47:11 pm »
Yeah I know about those. I try to be careful to which one I choose before storing stuff. If I don't need the buffer, I might go use L6 sometimes, for example. I just need to clear the buffer afterward.

I love how Axe lets you manipulate some memory stuff like you would do in ASM but without having to learn about the whole ASM syntax and register stuff. In other words, you can do some stuff as easily as TI-BASIC, and for the more advanced stuff, it's still easier than ASM, and you end up with speed as fast (or close) as ASM for a lot of stuff.

Btw:

[23:50:08] <+calc84> Asm(ED56) should fix that
[23:50:14] <@DJ_Omni> aaah ok
[23:50:15] <+calc84> at the beginning of your program

[23:50:35] <@DJ_Omni> calc84 do we need to do something special when exiting?
[23:50:39] <+calc84> it disable's Mirage's interrupt and just uses the TI-OS one
[23:50:42] <+calc84> I don't think so

Quoted from IRC.
« Last Edit: May 04, 2010, 11:51:25 pm by DJ Omnimaga »

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 #191 on: May 10, 2010, 03:02:34 am »
This is not an Axe internal bug, but it is impossible to send the app from a calculator to the computer using TI-Connect. What I think is that the five spaces in the app name causes issues. You might want to name your app so it's
Code: [Select]
"Axe" instead of
Code: [Select]
"Axe     "

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #192 on: May 10, 2010, 03:09:50 am »
That's impossible becasue the name has to be exactly 8 characters.  I could replace those spaces with null characters instead, maybe that will fix it.  Tell me if it works in the next version.
___Axe_Parser___
Today the calculator, tomorrow the world!

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 #193 on: May 10, 2010, 03:12:56 am »
I thought it was possible? Weird x.x

But it's the first time this happens to me with an app

Offline Stephan

  • LV2 Member (Next: 40)
  • **
  • Posts: 23
  • Rating: +4/-4
    • View Profile
Re: Bug Reports
« Reply #194 on: May 10, 2010, 12:14:11 pm »
I agree with DJ Omnimaga, I have begun to insert notes and comments on everything I do. It helps for troubleshooting. It seems like you error seems like a code-side thing, maybe a typo????