[A83] Selfmodifying code


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

[A83] Selfmodifying code




Hi again! :)

Lately I have written some self-modifying code, and it got me thinking
a bit about how ASM-programs actually works on the TI83, and I also
came to the conclusion that I didn't know squat about it!

Say I have a 'normal' ASM-program, it seems to be stored in some ASCII
hex format, it looks like this when I do prg/edit:
0A000BC000...etc
Now, this can't be run in the current state, so I guess that when you
do a send(9prgName it 'unpacks' it to some other memory area, right?
But if you have a program that is 20k (in the text format), then you
would need approximately 10k additional RAM to unpack it to. Is this
the way it works? Then the 'real' program can't be more than about
8k, since this in text-format would occupy approx 16k and then you need
another 8k free to unpack it too? Am I totally wrong here, enlighten me!

Then we have 'squished' programs, that seem to be in binary format from
the beginning. Does the calc run them directly, and in that case, if I
write self-modifying code, will these mods be permanent, so that the
next time you start the prg it will be in the state I left it after
the last run?

/Andreas



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





Follow-Ups: