SET HAN
This page was last modified 09:03, 4 February 2022 by Mars2000you. Based on work by Gdx.

Contents

Effect

Defines how the Hangul characters, used in Korea, available after pressing on the HANGUL key, are displayed in the following screen modes : SCREEN 0 to 8 (it is not limited to the bitmap screens, according Plaire website).

Version 4 of Hangul BASIC developed in ROM format by Korean MSX fan Plaire extends this instruction to

  • characters from non-Korean machines, that are available after pressing of KANA/CYRILLIC key to switch to Japanese or Russian characters or when pressing simultaneously the CODE key on all other machines if the Korean characters are not selected
  • non-Korean MSX, MSX2, MSX2+ and MSX Turbo R machines
  • the MSX2+ screen modes : SCREEN 10 to 12

Note: By default, the Daewoo CPC-400/400S boots in the '8 x 16 pixels - Characters grouped into blocks' mode to display characters, except if you press ESC + SELECT when booting until you can year a beep, what will launch the '8 x 8 pixels - Characters not grouped into blocks' mode.

Syntax

SET HAN <CharactersSize>,<ScreenDisplay>,<PrinterDisplay>

Specify at least one parameter. Parameters can not end with a comma alone.

Parameters

<CharactersSize>
0: 8 x 8 pixels
1: 8 x 16 pixels

<ScreenDisplay>
0: Characters not grouped into blocks
1: Characters grouped into blocks (initial state when booting without pressing ESC + SELECT or not previously changed with SET SYSTEM on CPC-400/400S - default state on other machines)

Remarks:
- the only reasonable combinations of the 2 first parameters are SET HAN 0,0 (same effect as CALL HANOFF) and SET HAN 1,1 (same effect as CALL HANON)
- in programs, always use SET HAN instead of CALL HANON or CALL HANOFF
- SET HAN can't be used in SCREEN 9, that is optimized for display of Korean characters.

<PrinterDisplay>
0: Characters not grouped into blocks
1: Characters grouped into blocks (initial state when booting without pressing ESC + SELECT or not previously changed with SET SYSTEM on CPC-400/400S - default state on other machines)

Related to

SET SYSTEM

Compatibility

Hangul BASIC version 2 or higher