CALL RTCINI
This page was last modified 13:31, 13 May 2020 by Mars2000you.

Contents

Effect

Resets in the SRAM of the Real Time Clock (RTC) the parameters corresponding to the COLOR, KEY, SCREEN and WIDTH instructions that will be used each time that you boot the computer.

The values of these parameters will be the same as with the Daewoo CPC-400 and CPC-400S computers.

Syntax

CALL RTCINI

Saved parameters

  • SCREEN mode: 0
  • Interlace mode: 2
  • WIDTH: 39
  • Foreground color: 15
  • Background color: 4
  • Border color: 4
  • Keylist display: ON
  • Keyclick: ON
  • Printertype: MSX
  • Cassette writing speed: 1200 baud

Storage in the RTC

The Real Time Clock (RTC) is a small storage of 53 bytes in blueMSX (52 bytes in openMSX). However, the Russian Yamaha computers with network have an additionnal byte that comes after #26 in blueMSX, so, for these machines, #27 to #34 are replaced by #28 to #35 in blueMSX. Using CALL RTCINI has as effect to 'remove' this additionnal byte. Check SET SCREEN for more infos.

The data saved with CALL RTCINI are stored as following:

  • #1E in blueMSX (#1D in openMSX)

04: Screen 0 Normal, alternating even/uneven

  • #1F and #20 in blueMSX (#1E and #1F in openMSX)

These bytes stores the WIDTH value with the formula (16 x value in #20) + value in #1F
Width 39 - value 07 in #1F and value 02 in #20 - (16 x 2) + 7 = 39

  • #21 in blueMSX (#20 in openMSX)

This byte stores the foreground color (0F)

  • #22 in blueMSX (#21 in openMSX)

This byte stores the background color (04)

  • #23 in blueMSX (#22 in openMSX)

This byte stores the border color (04)

  • #24 in blueMSX (#23 in openMSX)

This byte stores all the other parameters
03: KEY ON - Keyclick - MSX printer - 1200 baud

Related to

COLOR, KEY, SCREEN, SET SCREEN, WIDTH

Compatibility

Hangul BASIC version 3 or higher