Post Reply 
(42S) Hex-to-ASCII
11-24-2020, 03:01 PM
Post: #1
(42S) Hex-to-ASCII
This program will convert a sequence of hexadecimal values into the corresponding ASCII text (or the 42S version of ASCII, at least). Last night I started playing The Talos Principle, which has some hex-encoded messages sprinkled around the game, and needed something quick and dirty to convert them to readable text.

Usage:

XEQ "H2ASC" to start.

Type as many two-digit hexadecimal values as you wish, using the digits 0-9, and the top row of keys as A-F (going left to right, so XEQ is F). Every 2nd key entered will append an ASCII character to the display. Press backspace if you wish to clear the alpha register. Press EXIT or R/S to stop the program.

Example:

XEQ "H2ASC"
Enter: 48 50 20 34 32 53 20 52 4F 4F 4C 5A 21

Try it for yourself, you'll be able to tell if you got it right. Wink

Code:
00 { 177-Byte Prgm }
01▸LBL "H2ASC"
02 CF 01
03 CLA
04▸LBL A
05 AVIEW
06 GETKEY
07 R↓
08 SF 25
09 GTO IND ST T
10 GTO A
11▸LBL 17
12 CF 25
13 CLA
14 GTO A
15▸LBL 01
16 10
17 GTO B
18▸LBL 02
19 11
20 GTO B
21▸LBL 03
22 12
23 GTO B
24▸LBL 04
25 13
26 GTO B
27▸LBL 05
28 14
29 GTO B
30▸LBL 06
31 15
32 GTO B
33▸LBL 34
34 0
35 GTO B
36▸LBL 29
37 1
38 GTO B
39▸LBL 30
40 2
41 GTO B
42▸LBL 31
43 3
44 GTO B
45▸LBL 24
46 4
47 GTO B
48▸LBL 25
49 5
50 GTO B
51▸LBL 26
52 6
53 GTO B
54▸LBL 19
55 7
56 GTO B
57▸LBL 20
58 8
59 GTO B
60▸LBL 21
61 9
62▸LBL B
63 CF 25
64 FC?C 01
65 GTO C
66 +
67 ALENG
68 44
69 X≤Y?
70 ASHF
71 R↓
72 R↓
73 XTOA
74 GTO A
75▸LBL C
76 SF 01
77 16
78 ×
79 GTO A
80 END
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: