Discussion:
C128 Character Sets and Graphic Modes - help please!
(too old to reply)
PaulM
2020-03-02 00:57:35 UTC
Permalink
If I run the following in immediate mode in GRAPHIC 0 mode, I see exactly what I expect to see based on the chart of page 358 of the Commodore 128 System Guide

CHAR ,0,0,CHR$(111)

(a right-angle corner character, as in the top-left of a box)

But if I am in GRAPHIC 1 mode and run the same line of code, I get a different character (a diagonal line). In fact it's CHR$(143) in GRAPHIC 1 mode that yields the same character.

How can I understand this difference?

Thanks!
George
2020-03-02 17:54:43 UTC
Permalink
On Sun, 1 Mar 2020 16:57:35 -0800 (PST), PaulM
Post by PaulM
If I run the following in immediate mode in GRAPHIC 0 mode, I see exactly what I expect to see based on the chart of page 358 of the Commodore 128 System Guide
CHAR ,0,0,CHR$(111)
(a right-angle corner character, as in the top-left of a box)
But if I am in GRAPHIC 1 mode and run the same line of code, I get a different character (a diagonal line). In fact it's CHR$(143) in GRAPHIC 1 mode that yields the same character.
How can I understand this difference?
Thanks!
Get the C128 Programming guide.
--
Democracy: Three wolves and a lamb vote for dinner.
Republic: Three wolves and a lamb vote for dinner,
but the lamb is armed & has the right
to an appeal in a court of law.
Socialism: Three Wolves have eaten the lamb
and are fighting amongst themselves
for scraps.
PaulM
2020-03-02 19:25:54 UTC
Permalink
Post by George
On Sun, 1 Mar 2020 16:57:35 -0800 (PST), PaulM
Post by PaulM
If I run the following in immediate mode in GRAPHIC 0 mode, I see exactly what I expect to see based on the chart of page 358 of the Commodore 128 System Guide
CHAR ,0,0,CHR$(111)
(a right-angle corner character, as in the top-left of a box)
But if I am in GRAPHIC 1 mode and run the same line of code, I get a different character (a diagonal line). In fact it's CHR$(143) in GRAPHIC 1 mode that yields the same character.
How can I understand this difference?
Thanks!
Get the C128 Programming guide.
--
Democracy: Three wolves and a lamb vote for dinner.
Republic: Three wolves and a lamb vote for dinner,
but the lamb is armed & has the right
to an appeal in a court of law.
Socialism: Three Wolves have eaten the lamb
and are fighting amongst themselves
for scraps.
No that's awesome, I have it right in front of me... what section were you thinking of? I did a test and the same character set is active whether I have GRAPHIC 0 or GRAPHIC 1, so still not clear how a string (CHR$(111)) would render differently on the two screens.
Loading...