I'm writing a little useful program, but at the end of its execution, I want it to draw a string on the status line (ST_helpMsg), but since my program is in kernel mode, the screen is automatically restored after its execution, so the ST_helpMsg is erased. How could I correct this problem ? Is there a directive to ask the kernel to not restore the screen ?
« Quand le dernier arbre sera abattu, la dernière rivière empoisonnée, le dernier poisson capturé, alors vous découvrirez que l'argent ne se mange pas.
I had a question about this byte quite a while ago and just forgot about it. Well, here it is:
=> What does bit #3 do exactly?
The point is, it is not the kernel but the TIOS that creates a copy of the program before running it, and it will not follow what's written in this byte, will it?
Or did I miss something when I investigated this?
Of course, I had a look at this because I was trying to use this feature. I think it should be possible if my program has no static variable and does not use dynamic libraries. Then came the how: up to date, my only idea is to have a small launcher program start the real one.
This bit (#3) is intended for libraries.
As I said before, Preos 0.70 is buggy for this flag (I thought I had reinstalled it).
>The point is, it is not the kernel but the TIOS that creates a copy of the program before running it,
> and it will not follow what's written in this byte, will it?
Well, Preos >= 0.70 undoes what AMS does, and does it in its own way, which means if the bit 3 of your program is set, then your program is really run from the archive memory! But since it doesn't disable the exec from memory protection, it crashes immediately.