Author Topic: Axe Interrupt Bug  (Read 2942 times)

0 Members and 1 Guest are viewing this topic.

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Axe Interrupt Bug
« on: March 09, 2011, 10:29:38 am »
I wanted to report a bug in the fnInt command. In Eitrix, I use an interrupt to automatically manage key timing and linking. Sometimes the interrupt functions perfectly, but at other times the calculator freezes as soon as it hits the fnInt command, requiring a battery pull. And the problem only happens in one shell at a time - sometimes it only happens in MirageOS, and at other times it only happens in DoorsCS. But when it fails, it is always a freeze that requires a battery pull. Do you know what is going on?

Here's a generalized code sample:

Code: [Select]
fnInt(CLK, 2
... game code ...
LnReg
Return

Lbl CLK
T+1->T
Return
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 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: Axe Interrupt Bug
« Reply #1 on: March 09, 2011, 04:00:12 pm »
The area used by interrupts (L2) might also be used by shells.  I don't think the fnInt() function itself can even cause a freeze but I'll look more closely there.  Maybe its a compile bug?  Try recompiling after unarchiving and rearchiving your source and see if that changes anything.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Axe Interrupt Bug
« Reply #2 on: March 09, 2011, 07:26:49 pm »
It's not a compile bug. I have to pull my source out of backup every time the interrupt function crashes, so I don't believe that's the problem. I would like to see what is going wrong. For now, however, I am calling the interrupt function several times in my main game loop as a workaround, and it seems to be working.
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