source: buchla-68k/include/ascii.h@ a95b757

Last change on this file since a95b757 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Started to rework include files.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 ==========================================================================
3 ascii.h -- Standard ASCII character definitions
4 Version 5 -- 1987-06-03 -- D.N. Lynx Crowe
5 ==========================================================================
6*/
7
8#pragma once
9
10#define A_NUL 0x00 /* ^@ */
11#define A_SOH 0x01 /* ^A */
12#define A_STX 0x02 /* ^B */
13#define A_ETX 0x03 /* ^C */
14#define A_EOT 0x04 /* ^D */
15#define A_ENQ 0x05 /* ^E */
16#define A_ACK 0x06 /* ^F */
17#define A_BEL 0x07 /* ^G */
18#define A_BS 0x08 /* ^H */
19#define A_HT 0x09 /* ^I */
20#define A_LF 0x0A /* ^J */
21#define A_VT 0x0B /* ^K */
22#define A_FF 0x0C /* ^L */
23#define A_CR 0x0D /* ^M */
24#define A_SO 0x0E /* ^N */
25#define A_SI 0x0F /* ^O */
26
27#define A_DLE 0x10 /* ^P */
28#define A_DC1 0x11 /* ^Q */
29#define A_DC2 0x12 /* ^R */
30#define A_DC3 0x13 /* ^S */
31#define A_DC4 0x14 /* ^T */
32#define A_NAK 0x15 /* ^U */
33#define A_SYN 0x16 /* ^V */
34#define A_ETB 0x17 /* ^W */
35#define A_CAN 0x18 /* ^X */
36#define A_EM 0x19 /* ^Y */
37#define A_SUB 0x1A /* ^Z */
38#define A_ESC 0x1B /* ^[ */
39#define A_FS 0x1C /* ^\ */
40#define A_GS 0x1D /* ^] */
41#define A_RS 0x1E /* ^^ */
42#define A_US 0x1F /* ^_ */
43
44#define A_DEL 0x7F /* DEL */
45
46#define A_XON 0x11 /* DC1 = old ASCII XON */
47#define A_XOFF 0x13 /* DC3 = old ASCII XOFF */
48
49#define CTL(x) (x - '@')
Note: See TracBrowser for help on using the repository browser.