0 Members and 1 Guest are viewing this topic.
i have a question about Sir's program writeback routine. what exactly does that do? does it take a program in the vat, allow you to edit it, and then you can re-save it into the vat?
Quote from: nemo on November 12, 2010, 11:57:43 ami have a question about Sir's program writeback routine. what exactly does that do? does it take a program in the vat, allow you to edit it, and then you can re-save it into the vat?Unfortunately, Deep Thought's not entirely correct. Program write-back is used for Self Modifying Code (often used for Saving Highscores without an external AppVar).Basically, Program Write-back allows you to make changes to the program from where it is copied and Sir's code will copy the resulting changes back in the program file.for example:.TEST_delta_list(0r)->Str0Disp {Str0}r+1->{Str0}r>DecThis will display 1 every time unless Sir's program write-back is enabled. I believe shells write-back automatically too, but that may be only if the program's archived. I know in Mirage you can turn Write-back in Archive on and off.
Btw, how was I wrong (just wondering, don't want to give false info...)?
Actually, even if it's run from RAM, most shells move the program straight to $9D95 (instead of copying) so that no matter what, it writes back since the program has to be moved back eventually. For running from archive, writeback has to copy it back and forth (and that's why the choice is there).
Quote from: Deep Thought on November 12, 2010, 07:24:54 pmBtw, how was I wrong (just wondering, don't want to give false info...)?I was wrong, as I didn't realize this:Quote from: Deep Thought on November 12, 2010, 07:24:54 pmActually, even if it's run from RAM, most shells move the program straight to $9D95 (instead of copying) so that no matter what, it writes back since the program has to be moved back eventually. For running from archive, writeback has to copy it back and forth (and that's why the choice is there).Sorry. * ZTrumpet feeds himself to the lobsterThanks for the info! I didn't realize they did that.
HoMM: [==--------] Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :PtiDE: [----------] Explored and understood the main part of the code: just started writing a Tokenizer.