MSX Tier 1: Welcome to MSX BASIC Hello, 198x

MSX BASIC is based on Microsoft BASIC but tailored to the standardised MSX hardware spec — think of it as a clean, slightly enhanced flavour. Let’s use it to write a colour-cycling welcome.

Code

10 COLOR 15,4,4
20 PRINT "HELLO, 198X!"
30 FOR I=0 TO 255 STEP 16: COLOR I MOD 16,4,4: NEXT I

Type this into your emulator and run it.

Each iteration updates the text colour; the screen flashes as “HELLO, 198X!” gets printed again and again.

Line-by-line

Did You Know?

Because MSX was a hardware standard, you could write code on a Sony MSX and run it unchanged on a Yamaha or Panasonic. That was a big deal in the early ‘80s.

Extra Credit