04-20-2010, 06:15 PM
Having "page codes" is a nice idea. I implemented UDG just for compatibility, but there is a simple way to specify a different PRINT routine, by using #ifdef directives, and invoking them at the command line. It could be something like this:
zxb.py --DUSE_PRINT_SPANISH ...
This could be done for many page codes. On the other side, you could easily make your own strcode conversion which changes spanish chars to UDG, for example. In fact, this is how most of the print routines work, as far as I know, or changing the default charset address with POKE.
zxb.py --DUSE_PRINT_SPANISH ...
Code:
# FILE: print.asm
#IFDEF USE_PRINT_SPANISH
#include <print_spanish_codes.asm>
#ELSE
#include <print_standard.asm>
#END