[TI-APP, BCALLS] chkfindsym and others return improper data

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Okay so why are you making appvars?


Just use insertmem and delmem.

Decide the maximum size of your routines(possible total of all of them). Check if that ram is availble with _EnoughMem. If so, _Insertmem at $9d95. From that point on mem at $9d95 is allocated to you and is safe to use. Before exiting release the memory with _Delmem.


Creating an appvar to save the contents of $9d95 is a bad idea. For one you appvar might be located in that spot, so when you over write with you Routines, you just corrupted your appvar.
Image
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

Ah, ok, I'll give it a try, seems simple enough

EDIT: OK, thanks, it works! (no suprise tough ;))
And I have no idea why I didn't tried this earlier...
Post Reply