Skip to content

Screen2

Jorge Janaite Neto edited this page Jul 11, 2021 · 1 revision

MSX Screen 2

There are some words to deal with Screen2 (TODO write about this)

Example T-SC2.BLK

Running this example:

OPEN T-SC2.BLK

OK -- this will load/compile everything. It could take some time to finish and you get a ready prompt...

test -- will run the graphic test: a simple tiled image in Screen2


sc2tile anyname followedBy8bytesWithC,

This word will create a new word capable of setting a tile into tileset with its own graphics. It should be used followed by bytes separated with C,. Example:

HEX sc2tile tile1 00 c, c0 c, e0 c, 00 c, 00 c, b6 c, fe c, fe c, This will define a new word called tile1, after, you can use it:

5 tile1 This will define sixth tile (tile number 5) with graphics contained into the word


sc2palette anyname followedBy8bytesWithC,

This word will create a new word capable of setting a palette entry with its own data. It should be used with C,. Example:

HEX sc2palette pal0 62 c, 62 c, 62 c, 62 c, 62 c, 62 c, 62 c, 62 c,

This will define a new word called pal0, after, you can use it:

3 pal0, this will define fourth palette entry with data defined into the word


PUTTILE ( tile row col -- )

Puts a tile previously loaded with a word created by sc2tile into row and col specified.

Clone this wiki locally