| 1 | // ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code. |
| 2 | // Copyright (C) 1998-2024 Marco Baye |
| 3 | // Have a look at "acme.c" for further info |
| 4 | // |
| 5 | // Character encoding stuff |
| 6 | #ifndef encoding_H |
| 7 | #define encoding_H |
| 8 | |
| 9 | |
| 10 | extern const struct encoder *encoder_current; // gets set before each pass TODO - set for each part |
| 11 | extern const struct encoder encoder_raw; |
| 12 | extern const struct encoder encoder_pet; |
| 13 | extern const struct encoder encoder_scr; |
| 14 | extern const struct encoder encoder_file; |
| 15 | extern unsigned char *encoding_loaded_table; // ...loaded from file |
| 16 | |
| 17 | |
| 18 | // prototypes |
| 19 | |
| 20 | // convert character using current encoding |
| 21 | extern unsigned char encoding_encode_char(unsigned char byte); |
| 22 | |
| 23 | // set "raw" as default encoding |
| 24 | extern void encoding_passinit(void); |
| 25 | |
| 26 | |
| 27 | #endif |