NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: akasei on April 01, 2016, 07:10:36 AM
-
%define VARIABLE_KERNEL_LOCALE "pl_PL"
%include "locale/", VARIABLE_KERNEL_LOCALE, ".asm"
How to do that?
-
use %defstr and %strcat.
%push
%defstr %$VAR_KERN_LOCALE pl_PL
%strcat %$myinc, "locale/", %$VAR_KERN_LOCALE, ".asm"
%include %$myinc
%pop
-
Thank You very much!
config.asm
%define VARIABLE_KERNEL_LOCALE en_US.ASCII
kernel.asm
%include "config.asm"
%push
%defstr %$kernel_locale VARIABLE_KERNEL_LOCALE
%strcat %$include_kernel_locale, "locale/", %$kernel_locale, ".asm"
%$include %$include_kernel_locale
%pop