SET ADJUST
This page was last modified 00:31, 8 December 2016 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 (<x>,<y>)

Parameters

<x> is abscissa coordinate of the top left point of the screen. The value is between -7 and 8.

<y> is ordinate coordinate of 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). 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.

The data saved with SET SCREEN are stored as following:

  • #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