CodeWalrus

Featured Member Projects => Completed and Inactive Projects => [Inactive] Hero Core (TI-83+/84+) => Topic started by: Keoni29 on November 27, 2014, 10:01:02 PM

Title: Hero Core - Issue tracker
Post by: Keoni29 on November 27, 2014, 10:01:02 PM
List of known bugs:
Player dies when stuck in a wall or facing a wall and fireing a bullet.[SOLVED]
Cut ability spawns a bullet in the left top part of the screen.[SOLVED]
Savepoint in first room does not work. Only after re-entering the room it works. [SOLVED]
Interrupts cause a memory leak.[SOLVED] booya!


Post any bugs you find here.
Title: Re: Hero Core - Issue tracker
Post by: Dream of Omnimaga on November 27, 2014, 10:44:42 PM
To report bugs, it would help if we had a copy of the latest version available somewhere :trollface:
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 27, 2014, 10:59:39 PM
There is this memory leak that has not been fixed yet. It corrupts the TblSet variable. I want to fix that before I release the next build.
Title: Re: Hero Core - Issue tracker
Post by: Dream of Omnimaga on November 27, 2014, 11:33:29 PM
Ah ok. I was wondering since you told us to report bugs that we find, but we can't report them if we can't play. :P
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 28, 2014, 11:18:14 PM
I can probably solve this memory leak today. I will most likely release a new build tonight.
Title: Re: Hero Core - Issue tracker
Post by: Dream of Omnimaga on November 29, 2014, 03:27:06 AM
Ok good luck! (although I assume it will be tomorrow for you? :P

Do you have any clue what might cause the leak yet?
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 29, 2014, 08:24:35 AM
It is something that happens before, during or after the titlescreen. Not the main game.
Title: Re: Hero Core - Issue tracker
Post by: Dream of Omnimaga on November 29, 2014, 07:09:35 PM
Ah ok. Is it a continuous drop or just one single memory decrease?
Title: Re: Hero Core - Issue tracker
Post by: novenary on November 30, 2014, 09:24:42 AM
So it's the interrupt ? What does the interrupt do ?
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 30, 2014, 11:34:19 AM
It is used for playing back TIMID music, but even with no code in the isr ( immediately returning) this leak occurs. I suspect that something else is leaking into L2 which in turn causes the interrupts to behave strangely.
Title: Re: Hero Core - Issue tracker
Post by: pimathbrainiac on November 30, 2014, 02:46:39 PM
Have you tried using LnRegr? According to Runer that should fix it.
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 30, 2014, 02:48:29 PM
Yes I use that.
Title: Re: Hero Core - Issue tracker
Post by: pimathbrainiac on November 30, 2014, 02:50:25 PM
Hmmmm... Perhaps compile with an older version of Axe that uses L2 instead of the new RAM area for interrupt storage?
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 30, 2014, 02:52:06 PM
Which ram area is used with the latest version? More importantly: how come something else overwrites this reserved ram area? I am using all of L1 and GDB's for the rest.
Title: Re: Hero Core - Issue tracker
Post by: novenary on November 30, 2014, 03:11:16 PM
Well L2 happens to be aligned to 256 bytes and to be of the right size for the im2 vector table so that's why most stuff stores it there. I have no idea what the issue could be.

You should try to run your program through Wabbit's debugger if you know some ASM (you can also monitor RAM from there so you can see what it overrides I guess).
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on November 30, 2014, 04:33:13 PM
I will try that and see exactly which memory locations it overwrites.
Title: Re: Hero Core - Issue tracker
Post by: Keoni29 on December 01, 2014, 07:41:45 PM
Solved the interrupts corrupting ram :D. Runer told me that interrupt data is stored in a ram area for "some sort of data about tables." The side-effect is that tableSet corrupts.
LnRegr solved the problem!
Title: Re: Hero Core - Issue tracker
Post by: pimathbrainiac on December 01, 2014, 10:11:41 PM
Cool beans!