Valhalla Legends Forums Archive | General Programming | Hex or character replacements

AuthorMessageTime
oldskooldrew
Was wondering if anyone knew of any documentation of which ascii or hex values come out as a (.) on hex editors, if anyone has this, or knows where i can find out please.
August 30, 2004, 10:04 PM
K
Pretty sure it depends on what the hex editor decides is "printable." all characters less than 0x21 are pretty much non printable.
August 30, 2004, 10:16 PM
Yoni
Rather less than 0x20, since 0x20 is the space.

The printable range is: 0x20 - 0x7e.

0x00 (0x01) - 0x1f are low ASCII. (Not sure whether 0 is included, that's probably a semantics issue.) These are "control" characters, such as 0x09 tab (\t), 0x0d carriage return (\r), 0x0a line feed (\n), 0x07 beep (\a), etc.

0x7f - 0xff are high ASCII. Mostly undefined, but can be used for a 2nd language (with an appropriate codepage loaded).
August 30, 2004, 10:23 PM
Myndfyr
[quote author=Yoni link=board=17;threadid=8475;start=0#msg78229 date=1093904629]
0x7f - 0xff are high ASCII. Mostly undefined, but can be used for a 2nd language (with an appropriate codepage loaded).
[/quote]

Back in the days of DOS, we also used 0x7f to 0xff as the "DOS Extended Character Set," which consisted largely of text-style drawing characters used in menuing and "graphics" systems.
August 30, 2004, 10:54 PM
Yoni
[quote author=MyndFyre link=board=17;threadid=8475;start=0#msg78235 date=1093906498]
Back in the days of DOS, we also used 0x7f to 0xff as the "DOS Extended Character Set," which consisted largely of text-style drawing characters used in menuing and "graphics" systems.
[/quote]

And of course...

C:\>mode con cp prepare=972
C:\>mode con cp select=972

==> Hebrew chars in high ASCII. :)
August 30, 2004, 11:59 PM
drivehappy
I would like to point out that http://asciitable.com/ is a good resource if you need to lookup values.
August 31, 2004, 5:32 PM
oldskooldrew
ok, thanks that website helped a lot, now how would i create a function that replaced all the values that i want to be (.) without making a long function searching for each character or characters hex? is this possible?
August 31, 2004, 10:06 PM
Myndfyr
[quote author=oldskooldrew link=board=5;threadid=8475;start=0#msg78447 date=1093989999]
ok, thanks that website helped a lot, now how would i create a function that replaced all the values that i want to be (.) without making a long function searching for each character or characters hex? is this possible?
[/quote]

Oh I don't know. Maybe we can try this novel little idea called programming:
[quote author=Yoni link=board=5;threadid=8475;start=0#msg78229 date=1093904629]
The printable range is: 0x20 - 0x7e.
[/quote]

[code]
If val > &H1F And Val < &H7E Then
' Print ASCII value
Else
' Print "."
End If
[/code]

Whoo. I don't want to work my mind too much.

(If you need help translating that to another language or with other identifiers, let us know).
September 1, 2004, 12:47 AM
Adron
[quote author=MyndFyre link=board=5;threadid=8475;start=0#msg78489 date=1093999669]
Oh I don't know. Maybe we can try this novel little idea called programming:
[quote author=Yoni link=board=5;threadid=8475;start=0#msg78229 date=1093904629]
The printable range is: 0x20 - 0x7e.
[/quote]

[code]
If val > &H1F And Val < &H7E Then
' Print ASCII value
Else
' Print "."
End If
[/code]

Whoo. I don't want to work my mind too much.
[/quote]

Yeah, be careful working your mind too much, and avoid these difficult problems. They require a lot of thinking to get them right. It's very easy to mess up. We all love tildes, right?
September 1, 2004, 5:14 PM
St0rm.iD
hi i typd dat into da vb thing and it said an error HELP WAHTS RONG@!#!?
September 2, 2004, 2:20 AM

Search