Mercurial > public > hwos_code
diff src/text_multilang.asm @ 0:11d4fc797f74
init
author | heinrichsweikamp |
---|---|
date | Wed, 24 Apr 2013 19:22:45 +0200 |
parents | |
children | aadfe9f2edaf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/text_multilang.asm Wed Apr 24 19:22:45 2013 +0200 @@ -0,0 +1,88 @@ +;============================================================================= +; +; File text_multilang.asm +; +; Implementation text in various selectable languages. +; +; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. +;============================================================================= +; HISTORY +; 2011-06-12 : [jDG] Creation... + +#include "text_multilang.inc" + +; Because text are indexed by 12bits value in FSR register, they can't +; just be anywhere. It is safe to make them start in address 0xHHH000. +texts code 0x009000 + +;============================================================================= + global text_english_base +text_english_base: + +;---- PASS 1 : generate description block ------------------------------------ +tcode_idx set 0 +LANG set 0 +#define TCODE TCODE_1 +#include "text_english.inc" +#undefine TCODE + +;---- PASS 2 : generate text contens ----------------------------------------- +tcode_idx set 0 +#define TCODE TCODE_2 +#include "text_english.inc" +#undefine TCODE + +;============================================================================= + global text_german_base +text_german_base: + +;---- PASS 1 : generate description block ------------------------------------ +tcode_idx set 0 +LANG set 1 +#define TCODE TCODE_1 +#include "text_german.inc" +#undefine TCODE + +;---- PASS 2 : generate text contens ----------------------------------------- +tcode_idx set 0 +#define TCODE TCODE_2 +#include "text_german.inc" +#undefine TCODE + +;============================================================================= + global text_french_base +text_french_base + +;---- PASS 1 : generate description block ------------------------------------ +tcode_idx set 0 +LANG set 2 +#define TCODE TCODE_1 +#include "text_french.inc" +#undefine TCODE + +;---- PASS 2 : generate text contens ----------------------------------------- +tcode_idx set 0 +#define TCODE TCODE_2 +#include "text_french.inc" +#undefine TCODE + +;============================================================================= + global text_italian_base +text_italian_base + +;---- PASS 1 : generate description block ------------------------------------ +tcode_idx set 0 +LANG set 3 +#define TCODE TCODE_1 +#include "text_italian.inc" +#undefine TCODE + +;---- PASS 2 : generate text contens ----------------------------------------- +tcode_idx set 0 +#define TCODE TCODE_2 +#include "text_italian.inc" +#undefine TCODE + +;============================================================================= + + END