[TI ASM] REALLY Weird Bug

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 »

CrunchyOS Manual wrote: Writeback for archived programs is implemented by creating and loading small patch files, and archiving those instead of the complete program. This takes up more memory, but the calc will perform garbage collects far less often.
If you read it carefully it does not run from the archive, it simply uses patch files, differential backups. Since we know the majority of the file will remain the same its possible to only save the difference from the original. Either by creating a file with offset, run, and data for every change or by performing a difference on all bytes then compressing the outcome (In a worse case scenario either of these could result in the patch being larger than the original, but that's not likely.)

This does not mean running from the archive. Which, excluding the programs that get attached to crunchyOS, isn't possible due to a hardware restriction. You can't execute an archived program. It must be copied to the ram.
Image
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

Actually you could execute code directly from archive, if your code is designed to use no absolute addresses. The big problem with that is that there is no guarantee that the program won't cross flashrom pages, so your program might suddenly be split up over two rom pages.
You know your hexadecimal output routine is broken when it displays the character 'G'.
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 »

By hardware restriction I meant excution protection, only app pages and OS pages can execute code. Unless you want to go the hack way.
Port 5
Port 23
Image
Post Reply