aboutsummaryrefslogtreecommitdiff
path: root/src/codepage.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-03-21 15:35:43 +0000
committerIan C <ianc@noddybox.co.uk>2016-03-21 15:35:43 +0000
commit7c361248bba7799400dee7b7b1dc33f5dadcf3a4 (patch)
tree88437733db07e1c919d3a8385d17304610e80147 /src/codepage.h
parent765c8e3f85b172a155a9172ec3bc8a6fb965f671 (diff)
Added initial version of T64 output driver.
Diffstat (limited to 'src/codepage.h')
-rw-r--r--src/codepage.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/codepage.h b/src/codepage.h
index 64f5868..5da55cb 100644
--- a/src/codepage.h
+++ b/src/codepage.h
@@ -31,6 +31,14 @@
/* ---------------------------------------- INTERFACES
*/
+typedef enum
+{
+ CP_ASCII,
+ CP_ZX81,
+ CP_SPECTRUM,
+ CP_CBM
+} Codepage;
+
/* Codepage options
*/
@@ -45,7 +53,13 @@ CommandStatus CodepageSetOption(int opt, int argc, char *argv[],
/* Converts the passed character into the appropriate codepage value.
Returns zero for unknown/unconvertable characters.
*/
-int CodepageConvert(int code);
+int CodepageConvert(int code);
+
+
+/* Converts from the execution character set into a code from the specified
+ codepage.
+*/
+int CodeFromNative(Codepage page, int code);
#endif