Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to use a standard character set
#2
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 ...

Code:
# FILE: print.asm

#IFDEF USE_PRINT_SPANISH
#include <print_spanish_codes.asm>
#ELSE
#include <print_standard.asm>
#END
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)