Author Topic: edit8X+  (Read 6906 times)

0 Members and 1 Guest are viewing this topic.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #15 on: April 20, 2013, 02:32:14 pm »
I think that's very smart and probably necessary. If this is user oriented, then ease of use is appreciated. MSD8x has a similar feature for autorun
Keep trying.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #16 on: April 20, 2013, 09:01:22 pm »
Thx for feedback Dapiano.
Much appreciated =]

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #17 on: April 23, 2013, 03:53:59 am »
the_mad_joob as far as I know, you can't. I've tried it with many programs and utilities, the maximum, even if sending directly to archive, is however much USER RAM you have left.
Since i wasn't sure, i decided to give it a try.
The good news is that it works =]
I mean, the OS can totally handle very large variables properly, as soon as they don't cross a sector boundary.
For what i've tested, the ultimate size (actual data) of an archived appvar|group|program is exactly 65522 (name length = 1 in that case).
Of course, such variables cannot be unarchived.
I used wabbitemu for now so i'm not sure yet if ti connect lets you send such files.

Anyway, i prefer to use appvars more than apps, mainly to avoid space loss (and dealing with app signature stuff i must confess =P).
« Last Edit: April 23, 2013, 04:01:44 am by the_mad_joob »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #18 on: April 23, 2013, 04:45:06 pm »
Well good luck, then.
I was concerned because the huge size of those files makes them unarchivable, and thus uneditable, unless you edit the flash directly, which is dangerous and hard as F***.
Really, you can handle sector boundaries, but not signatures?
I understand lol
Keep trying.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #19 on: April 24, 2013, 10:03:50 am »
Well, since i intend to use all the available ram for edition (including extra ram), it'll be possible to handle such large variables.
Once edition is complete, the variables will be moved back to rom if too big to fit in user ram, so yeah, i'll have to deal with flash writing.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #20 on: April 24, 2013, 04:04:49 pm »
Well that'll cause some wear on the archive, but since EVERYBODY focuses on writing to flash as little as possible, even after years of use with this program, it may not ever be a noticed effect. Nobody has ever worn their chip to the bone.
You do realize that will require AT LEAST 1 page of free user archive space, no matter what?
Keep trying.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #21 on: April 24, 2013, 05:42:36 pm »
Thx again Dapianokid, for the interest you have for this project =]

Are you refering to the swap sector ?
If yes, i'm aware of that (but it's four pages actually).
If no, i've already tried to allocate all the available rom pages and haven't noticed any secondary effects (Maybe you have ?).

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: edit8X+
« Reply #22 on: April 24, 2013, 06:04:28 pm »
the_mad_joob as far as I know, you can't. I've tried it with many programs and utilities, the maximum, even if sending directly to archive, is however much USER RAM you have left.
Since i wasn't sure, i decided to give it a try.
The good news is that it works =]
I mean, the OS can totally handle very large variables properly, as soon as they don't cross a sector boundary.
For what i've tested, the ultimate size (actual data) of an archived appvar|group|program is exactly 65522 (name length = 1 in that case).
Of course, such variables cannot be unarchived.
I used wabbitemu for now so i'm not sure yet if ti connect lets you send such files.

Anyway, i prefer to use appvars more than apps, mainly to avoid space loss (and dealing with app signature stuff i must confess =P).
Don't quote me on it, but I'm pretty sure that files can be larger than that. I seem to remember DJ Omnimaga saying he's sent apps (songs made with realsound) that took up most of the archive to his calc before. I just takes a very long time, and the calculator did fail sometimes with larger files. You might do good to set a limit regardless, as things will get slow sending larger apps(from what I've heard). Also, I know all Ti-84s have at least 64k of extra RAM, but what about the 83+? If it is less, will it be a issue?


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: edit8X+
« Reply #23 on: April 24, 2013, 09:18:56 pm »
Apps work, but regular variables cannot exceed 65535 bytes of data in archive (take out 9 bytes +name length plus a few more bytes for the header, and 1 byte from the 64KB sector). The reason is because the OS stores the size bytes as a 2-byte word and a 2-byte word can only hold a value from 0 to 65535. Apps, though, use a different technique in that they have a byte telling how many pages they are, so they can be much larger.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #24 on: April 25, 2013, 07:31:06 am »
Don't quote me on it, but I'm pretty sure that files can be larger than that. I seem to remember DJ Omnimaga saying he's sent apps (songs made with realsound) that took up most of the archive to his calc before. I just takes a very long time, and the calculator did fail sometimes with larger files. You might do good to set a limit regardless, as things will get slow sending larger apps(from what I've heard). Also, I know all Ti-84s have at least 64k of extra RAM, but what about the 83+? If it is less, will it be a issue?
I've already decided not to use apps for file storage.
About the total ram, it can go from 48k to 128k, as far as i know.
It won't be an issue, since the usable amount will be auto-detected.
Of course, trying to edit, let's say, a 64k file, will only be possible on models having 128k of ram, tho it will be possible to view that file on other models.

****

A problem i'm currently facing :
When i want to manually add an appvar to the archive, it fails (doesn't appear in mem mgmt).
Here is what i currently do :
- write the appvar in archive
- write the corresponding entry in vat
- adjust (ptemp)
Something else must be done but i dunno what.
Probably another pointer to adjust...

****

EDIT :
Dumb me...
Also got to adjust (ops) & (opbase), maybe (freeram) too.
« Last Edit: April 25, 2013, 07:37:25 am by the_mad_joob »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #25 on: April 25, 2013, 03:36:06 pm »
Okay EDITING can be done like this:
Just archive the file, and create a copy in archive/RAM to edit. No need for extra RAM.
Might be slow, though.
By the way, theoretical App size could be as big as 1.07 gigabytes (1 073 725 440) but the largest I"ve ever sent to my calc was 15XX kilobytes (maximum size)... Tilp crashes on that stuff lol
Keep trying.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: edit8X+
« Reply #26 on: April 25, 2013, 03:47:50 pm »
Okay EDITING can be done like this:
Just archive the file, and create a copy in archive/RAM to edit. No need for extra RAM.
Might be slow, though.
By the way, theoretical App size could be as big as 1.07 gigabytes (1 073 725 440) but the largest I"ve ever sent to my calc was 15XX kilobytes (maximum size)... Tilp crashes on that stuff lol
Archive works like this:
You can turn a bit OFF, but you cannot turn a bit ON unless you erase the whole 64KB sector. That is the challenge.

I would also like to point out that 1.07 gigabytes is about 1000 times as much archive space as any of these calculators have :P Also, I think you are assuming that it uses a two-byte page size when it actually uses 1 byte. Apps are stored in a completely different format than other variables :/

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #27 on: April 25, 2013, 04:45:44 pm »
Then only like... 4177920 bytes, nuuu!
lol that's okay though
I know about flash writing. I didn't think I'd have to make that clear to him.
Keep trying.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: edit8X+
« Reply #28 on: April 25, 2013, 04:48:49 pm »
I was just pointing out that the_mad_joob has a fairly decent method that he is employing as it currently is :P Note that the flash chip is limited in how often it can be written to, so it would be best to do all of the editing in RAM and save to flash once everything is done.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #29 on: April 25, 2013, 04:49:56 pm »
Yes, however it has over 12000 writes per byte, right? :P
Keep trying.