Hi!
13-Апр-2004 11:54 [EMAIL PROTECTED] (Bart Oldeman) wrote to
[EMAIL PROTECTED]:
> +++ task.c 13 Apr 2004 11:54:09 -0000 1.41
> + fstrcpy(Shell + strlen(Shell), MK_FP(FP_SEG(Config), Config->cfgInitTail));
> endp = Shell + strlen(Shell);
fstrcpy(endp = Shell + strlen(Shell),
MK_FP(FP_SEG(Config), Config->cfgInitTail));
> STATIC VOID InitPgm(BYTE * pLine)
> {
> + static char init[NAMEMAX];
> + static char inittail[NAMEMAX];
> +
> + Config.cfgInit = init;
> + Config.cfgInitTail = inittail;
As I understand, these assignments may be performed statically.
Especially, if cfgInit and cfgInitTail fields will be moved out from Config
structure.
> + mov cx,-2 + init_end wrt INIT_TEXT ; word aligned
BTW, does (or not) NASM supports TASM/MASM compatible syntax:
mov cx,offset INIT_TEXT:init_end - 2 ; word aligned
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel