Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: SirCmpwn on March 24, 2010, 12:21:18 pm

Title: Large programs
Post by: SirCmpwn on March 24, 2010, 12:21:18 pm
What happens if you make a program with more than 65,535 bytes?  I ask because the program definition in user memory has two bytes for size, which leads me to the concusion that FFFF is the maximum size.
Title: Re: Large programs
Post by: Raylin on March 24, 2010, 02:13:44 pm
...Reality breaks? >:D
Title: Re: Large programs
Post by: DJ Omnimaga on March 24, 2010, 03:17:30 pm
Wouldn't the next data past 65536 overflows elsewhere in the memory, causing potential issues?
Title: Re: Large programs
Post by: SirCmpwn on March 24, 2010, 03:52:34 pm
Thanks for the help, Prophets and jsj!
It would probably overflow to 0000 again, DJ, but that wouldn't be accurate, either.
Title: Re: Large programs
Post by: calc84maniac on March 24, 2010, 04:05:25 pm
It would probably have to be slightly smaller, so the VAT entry and such could fit in archive.
Title: Re: Large programs
Post by: SirCmpwn on March 24, 2010, 04:06:38 pm
I don't follow you, could you elaborate?
Title: Re: Large programs
Post by: calc84maniac on March 24, 2010, 09:42:16 pm
Each sector of archive is 64KB, and programs cannot overflow from one sector to another. So, a couple of bytes are used at the beginning of the sector for OS purposes, then a number of bytes would be stored for the backup program name and such, then the rest would be available for program data.
Title: Re: Large programs
Post by: DJ Omnimaga on March 24, 2010, 10:55:42 pm
I thought they were 16? I guess I confused sectors with pages x.x
Title: Re: Large programs
Post by: Juju on March 25, 2010, 12:56:22 am
I tried editing the filesize once w/ a hex editor to FFFF and my calc acted randomly when I checked the memory, like the filesize is missing and/or the RAM clears...
Title: Re: Large programs
Post by: DJ Omnimaga on March 25, 2010, 01:01:50 am
Another thing: When you go in MEM menu, if a program/file is larger than 65535, doesn't it cause ERR:MEMORY then the size missing you're talking about?
Title: Re: Large programs
Post by: Juju on March 25, 2010, 01:09:49 am
I don't remember exactly... I have to reproduce some of my favorite glitches I discovered while hacking my calculator, then post it on the forums.
Title: Re: Large programs
Post by: DJ Omnimaga on March 25, 2010, 01:15:19 am
Ok. Make sure to not post the ones involving ASM in the alerady existing thread, though, (the OS glitches thread i mean)
Title: Re: Large programs
Post by: calc84maniac on March 25, 2010, 01:26:19 pm
I actually got a Bad Address error today, when trying to unarchive Sam Heald's Mario, of all things. It gave a large memory leak, too. I had to manually create a new program, copy the data to it, and delete the old one. Calcsys is awesome that way :P
Title: Re: Large programs
Post by: SirCmpwn on March 25, 2010, 01:27:16 pm
Calcsys rules for that kind of stuff.  Its like sudo for your calculator.
Title: Re: Large programs
Post by: DJ Omnimaga on March 25, 2010, 05:42:46 pm
Calc84 I had this happen on some of my games before without even running ASM. It's annoying when you doNt know how to use Calcsys well or don't have it handy x.x, cuz you can lose lot of progress
Title: Re: Large programs
Post by: SirCmpwn on March 25, 2010, 05:47:13 pm
It's worth getting to know CalcSys intimately, because it is one of the best tools out there for your calculator.
You can disassemble your whole calculator with it, you can rename programs, you can swap the edit-lock, or change a program to an appvar, or manually edit hex in your RAM, or...
Title: Re: Large programs
Post by: Juju on March 25, 2010, 06:39:19 pm
Yeah. CalcSys. This thing is WAY too awesome. I even figured out how to hack Sam Heald's Super Mario to get 200 lives with that app.
Title: Re: Large programs
Post by: DJ Omnimaga on March 25, 2010, 06:42:16 pm
lol cheater  jk

but yeah nice app.
Title: Re: Large programs
Post by: Builderboy on March 25, 2010, 08:15:06 pm
Heh, i never got to know how to use CalcSys :P maybe i should take a look at it, it seems usefull o.O
Title: Re: Large programs
Post by: DJ Omnimaga on March 25, 2010, 09:06:38 pm
just backup first, lol, in case you totally mess up :P
Title: Re: Large programs
Post by: Juju on March 25, 2010, 09:09:05 pm
Yeah, it's easy to RAM clear your calc with that, or even BLOD it...