Skip to content

ASCII codes

lionkmp edited this page Apr 10, 2021 · 3 revisions

ASCII codes in ai64

This page documents the handling of the filename characters in different conversion modes.

  • Letters and Numbers are always kept as is.
  • Characters always removed are marked with -- (replaced to ".")
  • Characters removed in Windows are marked with -WIN (replaced to ".")
  • Characters kept in Unicode mode only are marked with UNICODE (replaced to "." otherwise)
  • Characters replaced are marked with ->X

Multiple dots and spaces are converted to single, and both of these are trimmed from filename start and end.

DEC	HEX	Symbol
32	20	SPACE 
33	21	!
34	22	"	-WIN
35	23	#
36	24	$
37	25	%
38	26	&
39	27	'
40	28	(
41	29	)
42	2A	*	-- (-WIN) (C64/IDE64 filename match)
43	2B	+
44	2C	,	-- (C64/IDE64 extension separator)
45	2D	-
46	2E	.
47	2F	/	-- (-WIN) (C64/IDE64 path separator)
48	30	0
49	31	1
50	32	2
51	33	3
52	34	4
53	35	5
54	36	6
55	37	7
56	38	8
57	39	9
58	3A	:	-- (-WIN) (C64/IDE64 path control char)
59	3B	;
60	3C	<	-WIN
61	3D	=	-- (C64/IDE64 control char)
62	3E	>	-WIN
63	3F	?	-- (-WIN) (C64/IDE64 filename match char)
64	40	@
65	41	A
66	42	B
67	43	C
68	44	D
69	45	E
70	46	F
71	47	G
72	48	H
73	49	I
74	4A	J
75	4B	K
76	4C	L
77	4D	M
78	4E	N
79	4F	O
80	50	P
81	51	Q
82	52	R
83	53	S
84	54	T
85	55	U
86	56	V
87	57	W
88	58	X
89	59	Y
90	5A	Z
91	5B	[
92	5C	\	-- (-WIN)
93	5D	]
94	5E	^	UNICODE
95	5F	_
96	60	`	-> '  (Not available on C64)
97	61	a
98	62	b
99	63	c
100	64	d
101	65	e
102	66	f
103	67	g
104	68	h
105	69	i
106	6A	j
107	6B	k
108	6C	l
109	6D	m
110	6E	n
111	6F	o
112	70	p
113	71	q
114	72	r
115	73	s
116	74	t
117	75	u
118	76	v
119	77	w
120	78	x
121	79	y
122	7A	z
123	7B	{	-> [  (Not available on C64)
124	7C	|	UNICODE -WIN
125	7D	}	-> ]  (Not available on C64)
126	7E	~	-> -  (Not available on C64)
127	7F		-- (Reserved char in most systems)

== Filename Reserved chars

Source: Wikipedia Filename

  • FAT16/FAT32 (8.3): 0x00-0x1F 0x7F " * / : < > ? \ | + , . ; = [ ] (in some environments also: ! @)
  • VFAT: 0x00-0x1F 0x7F " * / : < > ? \ |
  • NTFS: 0x00-0x1F 0x7F " * / : < > ? \ |
  • ISO 9660 allows only these: A–Z 0–9 _ .
  • Most Unix systems: / null

And IDE64 CFS: * : = / ?

Clone this wiki locally