SET ADJUST
This page was last modified 13:21, 5 February 2022 by Mars2000you. Based on work by Gdx.

Contents

Effect

Sets the top left point of the MSX screen (without the borders) and stores the coordinates in the SRAM of the Real Time Clock (RTC).

This instruction is useful on some monitors or televisions to reframe the picture on the screen. It can also create special effects in some demos.

Syntax

SET ADJUST (<OffsetX>,<OffsetY>)

Parameters

<OffsetX> is the offset on the abscisse from the top left point of the screen. The value is between -7 and 8.

<OffsetY> is the offset on the ordinate from the top left point of the screen. The value is between -7 and 8.

Example

SET ADJUST (4,-2)

Storage in the RTC

The Real Time Clock (RTC) is a small storage of 53 bytes in blueMSX (52 bytes in openMSX). It is a little different in blueMSX because this emulator stores an extra setting in #1A, that probably checks if the computer is normally working.

The data saved with SET SCREEN are stored as follows (hexadecimal locations in the files):

  • #1C and #1D in blueMSX (#1B and #1C in openMSX)

The first byte stores the <x> coordinate, the second byte stores the <y> coordinate.

Value x or y Value x or y Value x or y Value x or y
00 0 04 -4 08 8 0C 4
01 -1 05 -5 09 7 0D 3
02 -2 06 -6 0A 6 0E 2
03 -3 07 -7 0B 5 0F 1

Compatibility

MSX-BASIC 2.0 or higher

Related to

SET SCROLL