Daewoo CPC-400S hanja display bug.

Page 3/4
1 | 2 | | 4

By Manuel

Ascended (15529)

Manuel's picture

31-05-2019, 23:56

masquane wrote:

SCREEN 9:WIDTH 64

PRINT CHR$(&HD0);CHR$(&H65)
한 (Hangul "han") correct.

[SHIFT]+[SELECT] then type D065
ゐ (Hiragana "wi") perhaps wrong.

why??

That is a very good question. I can't answer it... can someone try on a real CPC-400S?

By RetroTechie

Paragon (1563)

RetroTechie's picture

01-06-2019, 05:47

Manuel wrote:

OK, I changed the openMSX Kanji code to take 7 bits into account instead of 6 at 0xD9 (thanks Wouter for the explanation)...

So on the CPC-400S, I/O port D9h takes an extra bit into account for addressing a 2 Mbit font ROM? (as opposed to using I/O ports DA/DBh to access the 2nd half of a 2 Mbit font ROM, as is done for JIS ROMs). Indeed it would be very interesting to verify that on CPC-400S hardware.

By Manuel

Ascended (15529)

Manuel's picture

01-06-2019, 09:42

That is what is written in the manual and after implementation in openMSX it gives the expected result of the test program.

By Manuel

Ascended (15529)

Manuel's picture

01-06-2019, 10:35

By gdx

Prophet (2858)

gdx's picture

01-06-2019, 10:41

From what I understood:

The code of the character to read the data on port D9h is on 16 bits. It must be written to port D8h (LSB) and D9h (MSB).

Bit 15 indicates that it is a Hangul character (1) or a Kanji (0).

A Hangul character is coded in 3 parts:

bits 10~14 for the part 1
bits 5~9 for the part 2
bits 0~4 for the part 3

maybe the bit 15 switch the something of the Font ROM. (?)

By Manuel

Ascended (15529)

Manuel's picture

01-06-2019, 10:43

Check the manual at the port description...

0xD8 W: b0-b5: lower address set
0xD9 W: b0-b6: upper address set
0xD9 R: read

By gdx

Prophet (2858)

gdx's picture

01-06-2019, 10:48

That's what I did but that does not answer my question.

By Manuel

Ascended (15529)

Manuel's picture

01-06-2019, 10:48

All I know is that when I implemented that, it worked. I don't understand the part in the manual that you mention...

By gdx

Prophet (2858)

gdx's picture

01-06-2019, 10:49

[SHIFT]+[SELECT] works too?

By Manuel

Ascended (15529)

Manuel's picture

01-06-2019, 10:53

See my first post on this page. The same happens there still. Not sure how that can be.

Page 3/4
1 | 2 | | 4