It uses NK encoding for Japanese. (My own encoding, described in a Excel spreadsheet in the parent directory) The functions with "basicfn_" are functions that are called from Forth or BASIC, that is why they deal with the stack. The types in the datatypes.h file are BASIC types, not C types.