Software › Colour Block (SG-1000 demo)

Colour Block (SG-1000 demo)

demo Open · freely redistributable

A tiny hand-written Z80 program for the Sega SG-1000, authored for emulators.org and released into the public domain. It programs the TMS9918A into Graphics II, fills the colour table, draws a solid white block into the name table, then loops reading controller port 0xDC and rewrites VDP register 7 (the backdrop colour) from the D-pad: Up paints the background red, Down green, Left light blue, Right yellow and Button 1 grey. The white block stays put while the backdrop changes, so every press is visible — an ideal debugger target that also demonstrates live input injection. Boots directly from the cartridge; the SG-1000 needs no BIOS.

Download ↓

Format: Sega SG-1000 cartridge (.sg)  ·  By: emulators.org  ·  Licence: Public domain

Preview

Full file (143 bytes) — offset, bytes, ASCII.

00000000  F3 ED 56 31 F0 DF 21 87 00 0E 00 06 08 7E D3 BF  ..V1..!......~..
00000010  23 79 F6 80 D3 BF 0C 10 F4 AF D3 BF 3E 60 D3 BF  #y..........>`..
00000020  01 00 18 3E F0 D3 BE 0B 78 B1 20 F7 3E 08 D3 BF  ...>....x. .>...
00000030  3E 48 D3 BF 06 08 3E FF D3 BE 10 FC 21 4C 19 06  >H....>.....!L..
00000040  04 C5 7D D3 BF 7C F6 40 D3 BF 0E 08 3E 01 D3 BE  ..}..|.@....>...
00000050  0D 20 FB 11 20 00 19 C1 10 E7 DB DC 2F 0E 04 CB  . .. ......./...
00000060  47 28 02 0E 08 CB 4F 28 02 0E 02 CB 57 28 02 0E  G(....O(....W(..
00000070  05 CB 5F 28 02 0E 0A CB 67 28 02 0E 0E 79 D3 BF  .._(....g(...y..
00000080  3E 87 D3 BF C3 5A 00 02 C0 06 FF 03 36 07 01     >....Z......6..