[Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41
Hi! 13--2004 11:54 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +++ task.c13 Apr 2004 11:54:09 - 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_id70alloc_id638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41
On Tue, 13 Apr 2004, Arkady V.Belousov wrote: 13-áÐÒ-2004 11:54 [EMAIL PROTECTED] (Bart Oldeman) wrote to [EMAIL PROTECTED]: +++ task.c13 Apr 2004 11:54:09 - 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)); this won't work. We need the strlen of Shell after the fstrcpy. This is really an fstrcat except that's not in asmsupt.asm. endp = Shell + strlen(Shell) + strlen(Config-cfgInitTail); fstrcpy(Shell + strlen(Shell), MK_FP(FP_SEG(Config), Config-cfgInitTail)); would work but I don't see the point. 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. ??? I don't understand what you mean here. + 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 NASM doesn't support offset. Bart --- 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_id70alloc_id638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41
Hello Arkady, AVB Why? To make code more portable between assemblers. ROTFL tom --- 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_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41
Hi! 13--2004 19:58 [EMAIL PROTECTED] (tom ehlert) wrote to Arkady V.Belousov [EMAIL PROTECTED]: AVB Why? To make code more portable between assemblers. te ROTFL ? --- 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_id70alloc_id638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41
Hello Arkady, AVB Why? To make code more portable between assemblers. te ROTFL AVB ? Rolling On The Floor Laughing you really can't keep things untouched? I would really HATE the kernels assembly sources converted into GMOUSE cryptographic sources. tom --- 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_id=1470alloc_id=3638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Re: [Freedos-kernel] Re: [Freedos-cvs] kernel/kernel config.c,1.75,1.76 config.h,1.3,1.4 kernel.asm,1.50,1.51 main.c,1.70,1.71 segs.inc,1.17,1.18 task.c,1.40,1.41
Hi! 13--2004 20:30 [EMAIL PROTECTED] (tom ehlert) wrote to Arkady V.Belousov [EMAIL PROTECTED]: AVB Why? To make code more portable between assemblers. te ROTFL te Rolling On The Floor Laughing te you really can't keep things untouched? See the difference: keep untouched or do so or so. Currently Bart actively _adds_ `wrt', so I ask if this is possible to use `:' instead `wrt'. te I would really HATE the kernels assembly sources converted into te GMOUSE cryptographic sources. :) --- 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_id70alloc_id638op=click ___ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel