Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Hot_Dog on November 12, 2010, 09:40:39 am

Title: The copying of ASM programs
Post by: Hot_Dog on November 12, 2010, 09:40:39 am
I read that in ASM 28 days, smc isn't saved in an ASM program because the program is copied to $9D95.  This, of course, means that there's 2 copied of the same ASM program in the calculator's memory.  What happens if a person tries to run an 8 KB ASM program when then calculator's memory is almost full?
Title: Re: The copying of ASM programs
Post by: Xeda112358 on November 12, 2010, 09:44:24 am
It gives me a memory error.
Title: Re: The copying of ASM programs
Post by: Munchor on November 12, 2010, 10:37:51 am
It gives me a memory error.

Obviously, not enough space. Can the program be archived?
Title: Re: The copying of ASM programs
Post by: Hot_Dog on November 12, 2010, 01:46:02 pm
It gives me a memory error.

Obviously, not enough space. Can the program be archived?

I have no idea.  But what I was hoping for was that two copies of the program would still exist if the program could be run.  I plan to run an ASM program without using asm()
Title: Re: The copying of ASM programs
Post by: thepenguin77 on November 12, 2010, 03:05:08 pm
I'm not exactly sure what your are saying, but here is how it works. When you run a program, either a BASIC with prgm, and ASM with asm(, or even an asm with bcall(_executePrgm), it gets copied from where ever it is to $9D95. The program can be in flash, or it can be in ram, either way, space is allocated at $9D95 and the program is copied there. When it is done executing, the OS just deletes that memory and it is is gone, which is why smc doesn't change the program. Also, since memory must be allocated for the program to be run, if you don't have enough ram left, you will get an ERR:Memory.
Title: Re: The copying of ASM programs
Post by: calc84maniac on November 12, 2010, 03:06:31 pm
If the program is in flash, it is only copied to RAM if you are using something like Calcutil, otherwise you get an ERR: ARCHIVED (because TI-OS sucks)
Title: Re: The copying of ASM programs
Post by: Xeda112358 on November 12, 2010, 03:11:54 pm
Sometimes I wonder if TI is actually just letting us have fun by purposefully leaving things up to us to come up with... I mean, seriously, they have it in the OS to be able to do this yet it isn't implemented... sheesh.
Title: Re: The copying of ASM programs
Post by: calc84maniac on November 12, 2010, 03:16:45 pm
Well, they did it right on the TI-89, at least. They allowed using archived variables as read-only instead of erroring upon access.
Title: Re: The copying of ASM programs
Post by: Xeda112358 on November 12, 2010, 03:18:33 pm
And that is why I love my 89 <3
Title: Re: The copying of ASM programs
Post by: DJ Omnimaga on November 13, 2010, 01:47:44 am
A while ago, BrandonW was planning to write an OS patch that let 83+ users run programs directly from archive, but I forgot what happened to it...