Hi!
Let me remind that NASM have CPU directive, which limits the available
instruction set. So, instead:
!if $(XCPU) == 386
NASMFLAGS=$(NASMFLAGS) -DI386
!endif
in generic.mak you may add:
NASMFLAGS=$(NASMFLAGS) -DXCPU=$(XCPU)
and then in .asm files:
%if XCPU >= 386
CPU 386
%elif XCPU >= 286
CPU 286
%elif XCPU >= 186
CPU 286
%else
CPU 8086
%endif
If you may pass macro as argument of CPU directive, you may use:
CPU XCPU
Of course, generic.mak should now define:
!if $(XCPU) == 86
NASMFLAGS=$(NASMFLAGS) -DXCPU=8086
!else
NASMFLAGS=$(NASMFLAGS) -DXCPU=$(XCPU)
!endif
-------------------------------------------------------
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=1470&alloc_id=3638&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel