Cover of Cryptmorrow, MSX Assembly: the name in big white pixel letters dripping green moss on dark slate, Build a full game in mint green, the MSX logo, red, orange, yellow, blue and white stripes, and a picture of a stone hall under a great arch with torches, a red door, three purple seals, a skeleton and the explorer, in a green frame.
MSXComing soon

MSX Game Manual Series · Volume 1

Cryptmorrow MSX

Z80 Assembly: Build a Complete Dungeon Explorer for the MSX

Build a full game

by Eric A. Norton and Jorah Sallow

On Amazon

The Amazon link for this book is coming soon.

Build a complete MSX game in Z80 assembly, one playable step at a time

Under the hill of Morrow lies a crypt of sixteen rooms. Torches burn in halls green with moss, skeletons still guard the corridors, bats wait in the dark, and three seals open the portal of the Moss Gate. Cryptmorrow MSX is the dungeon explorer of the Commodore 64 and ZX Spectrum books, made again for the MSX1: its Z80, the Screen 2 of its VDP, its hardware sprites and its PSG. This book shows you how to build it yourself, from the first room on the screen to a playable 32 KB cartridge with its title, its music and its endings.

The complete game is yours. The companion repository holds the full source code under the MIT licence: the finished game, the eight steps of the book, 22 ready-made experiments, the tests and the tools, with a script that rebuilds every cartridge byte for byte. The game is also there ready to play, as a cartridge image.

All you need is three free programs: the sjasmplus assembler, the openMSX emulator, which comes with the free C-BIOS, and Python. No MSX ROM is needed.

Cryptmorrow MSX is the first volume of the MSX Game Manual Series, where every book stands alone and brings an original game to life. Switch the machine on, take the blade and find the three seals.

Inside the book

  • Sixteen rooms beneath the hill of Morrow, seen from above: an atrium of seven rooms and three zones of three, drawn from tiles in Screen 2
  • An explorer drawn with the hardware sprites of the VDP, who walks, stops at walls and fights with a blade
  • Keys and locked doors, treasures and potions, and three seals that open the portal of the Moss Gate
  • Skeletons that patrol and bats that give chase, with blows, damage and the end screens
  • Music and sound effects on the PSG, with a MUSIC, SOUND FX or SILENT menu
  • A title in big letters, the arrow keys and the space bar or a joystick
  • A 32 KB cartridge that starts by itself when the MSX is switched on

What makes this book different

  • From the Z80 up

    Before the game grows on the screen, the book opens the machine, the Z80, the slots and the VDP.

  • Eight playable steps

    From the first room to the finished cartridge. Each step is a complete cartridge, and its SHA-256 fingerprint tells you that you built exactly the program in the book.

  • Make it yours, then break it

    14 guided experiments change colours, speeds, damage, music and the name in the logo; 8 “Where it breaks” versions make classic mistakes on purpose and explain them.

  • Tested frame by frame

    The tests play the cartridge in a simulated MSX1 and in openMSX, at 50 and at 60 Hz, against models of the game, comparing the screen, the sprites, the PSG’s registers and the memory.

The game in this book

The game you build

MSX

Cryptmorrow MSX

The dungeon explorer of Cryptmorrow for the MSX1, on a 32 KB cartridge. Sixteen rooms beneath the hill of Morrow, keys and locked doors, skeletons and bats, three seals and the portal of the Moss Gate, with music on the PSG.

From Cryptmorrow MSX

Contents

17 chapters

Code for every chapter →

Seventeen chapters, eight steps

  1. 01Your workshop
  2. 02The Z80, the slots and the VDP
  3. 03The tile engine
  4. 04Text, torches and the frame
  5. 05Hardware sprites
  6. 06The explorer
  7. 07The dungeon and the HUD
  8. 08Objects, doors and the portal
  9. 09The enemies
  10. 10The blade and the damage
  11. 11The PSG and the music
  12. 12The effects and the sound modes
  13. 13The title and its big letters
  14. 14States, menu and end screens
  15. 15The cartridge
  16. 16Reading and checking the game
  17. 17Glossary and index

Errata

Corrections

No errors have been reported for this edition yet.

Found a mistake? Open an issue on GitHub or write to [email protected], with the page number and what it should say.