A83: Re: Re: Assembly-83 Digest V1 #466


[Prev][Next][Index][Thread]

A83: Re: Re: Assembly-83 Digest V1 #466




>I'm not 100% sure, but I think if you exchange all the registers then push
>them all, you can run an entire program. After the program is finished,
>simply pop all the registers. The program should do an im 1 at the beginning
>though to prevent it from starting more than once which would cause all the
>stack space to be used up. You'd also have to preserve any values the
>program you run uses (currow, op1, etc) in case the calculator was using
>those at the time. Probably more work that it would be worth...

imho joe, like i said before, it is not possible. you have to understand
that since there is 32k memory on the calculator (system and user ram)
that can be altered by a running program, there is no was you can store
it all. in other words, ANY area of memory could be altered by a
program. and that means that in order to preserve the memory, you would
have to back it all up (which is impossible). now don't anyone get all
self righteous, but i am 100% sure that it is impossible. flat out,
impossible. the only possibility would be if you ran a small assembly
program that didn't alter any areas of memory. and that program, of
course, could not be run using _exec_assembly. you would have to use
relocation similar to what you use in sos.


References: