0 Members and 4 Guests are viewing this topic.
Yeah, but from what it looks like there is no point where the data to be kept in the program is specified, so it seems to keep *all* the data
mhmm I hope not , cuz what if I have like 200 sprites in my data?
Can I see the assembly for that write-back hex code? And does it work when the program is archived? And if so does it re-archive the program when it copies back?
yeah I asked him more info about that but he never awnsered my question. I guess it was poorly worded
Quote from: Quigibo on March 19, 2010, 07:47:33 pmCan I see the assembly for that write-back hex code? And does it work when the program is archived? And if so does it re-archive the program when it copies back?The code is back a ways in terms of posts. I'm going to modify it a little later on so that it works with archived programs.
Quote from: SirCmpwn on March 19, 2010, 08:03:53 pmQuote from: Quigibo on March 19, 2010, 07:47:33 pmCan I see the assembly for that write-back hex code? And does it work when the program is archived? And if so does it re-archive the program when it copies back?The code is back a ways in terms of posts. I'm going to modify it a little later on so that it works with archived programs.Hold up, you can't even run no-stub ASM programs when they are archived, so this shouldn't be necessary.
Quote from: calc84maniac on March 19, 2010, 10:05:16 pmQuote from: SirCmpwn on March 19, 2010, 08:03:53 pmQuote from: Quigibo on March 19, 2010, 07:47:33 pmCan I see the assembly for that write-back hex code? And does it work when the program is archived? And if so does it re-archive the program when it copies back?The code is back a ways in terms of posts. I'm going to modify it a little later on so that it works with archived programs.Hold up, you can't even run no-stub ASM programs when they are archived, so this shouldn't be necessary.You can run Archived no-stub Asm programs with DoorsCS and CalcUtil. I also would like to see this implemented into Axe itself.
Well, my main worry about huge writeback is that is there a memory limit in how much stuff can be written back? Let's say, for example, I create a RPG with 9 KB of map data.
You are thinking in a TI-Basic frame of mind. Get out of it.
I'm sorry SirCmpwn, but this:Quote from: SirCmpwn on March 20, 2010, 04:09:36 pmYou are thinking in a TI-Basic frame of mind. Get out of it.caused me to rate your post down. You can write in Ti Basic and think about Axe like Ti Basic and still have amazing programs. There is a Basic frame of mind, but no reason that you need to "get out of it".Remember, fighting does not solve any problems.
Quote from: DJ Omnimaga on March 19, 2010, 08:39:27 pmWell, my main worry about huge writeback is that is there a memory limit in how much stuff can be written back? Let's say, for example, I create a RPG with 9 KB of map data.You are thinking in a TI-Basic frame of mind. Get out of it. With pure assembly, there is direct access to the proccessor, and no interpreter in between. A rough estimate to copy 9 KB is maybe about 6 seconds. And, you can have a "saving..." screen, too. I'll probably write some code later that will allow you to just store what you need into an AppVar or something.
Let me see if i understand the concept behind the global data concept. When the program is run, it is copied to RAM somewhere safe where the TiOS can run it. After it is finished executing, it is NOT copied back, making the program effectively write protected . So all we need to do is write a little bit of code to find out where the program acualy located (the first hex code) and store it in a safe place (L4) until the end of the program where we use it. Once we get to the end, we merely copy the program right back to where it started again, so that any changes we made are permanent. We are not using any of the L1-L6 variables for anything more than a 4 byte address storage during the program execution, so there is no possibility that we could run out of memory due to large programs.(did i get that correctly?)