Getting the second half of ASCII characters in Turbo Pascal

Getting old software/games running on older hardware.

Getting the second half of ASCII characters in Turbo Pascal

Postby markot » 2019-12-03 @ 12:22

I'm trying to get the ASCII characters in Turbo Pascal for the second half of the character set.

The characters 0-127 are located at address F000:FA6E but how exactly should I access the characters 128-255?

Is there any working Turbo Pascal source code with example how to do it?

I need to get the characters working in a program I'm making in Turbo Pascal.
markot
Member
 
Posts: 234
Joined: 2015-2-07 @ 07:58
Location: Finland

Re: Getting the second half of ASCII characters in Turbo Pascal

Postby Davros » 2019-12-03 @ 14:07

do you mean
write(chr(201));

go here for extended ascii codes
http://www.asciitable.com
Guardian of the Sacred Five Terabyte's of Gaming Goodness
User avatar
Davros
l33t
 
Posts: 2654
Joined: 2004-3-01 @ 03:08

Re: Getting the second half of ASCII characters in Turbo Pascal

Postby markot » 2019-12-03 @ 14:14

No, to be more exact, I want to get the address of the second table.

http://www.ctyme.com/intr/rb-0158.htm

For example if using interrupt 10h with AX=1130h and BH=04h, I'm excepting to get a table with characters 128-255, but it is just some garbage that I get on the screen.

But with BH=03h I am able to get the characters 0-127 correctly.

I will be using these fonts in own graphics modes without Borland BGI.
markot
Member
 
Posts: 234
Joined: 2015-2-07 @ 07:58
Location: Finland

Re: Getting the second half of ASCII characters in Turbo Pascal

Postby Tiido » 2019-12-03 @ 14:51

You're better off reading the charset out of the video BIOS directly or from the memory in video card where the charset gets stored.
https://wiki.osdev.org/VGA_Fonts
User avatar
Tiido
Oldbie
 
Posts: 1183
Joined: 2018-1-14 @ 04:40
Location: Estonia


Return to Software

Who is online

Users browsing this forum: No registered users and 2 guests