Blog

Relearning MSX #16: Roadmap

Posted by in MSX, Retro, Technology | March 10, 2015

It’s been a while since the last post. This one isn’t technical at all. I’m just going to explain where we’re going from this point. Also, starting this week I’m setting a fixed schedule: one new post every Friday. This should keep you (and me) busy.

In the next posts we’re going to follow the Introduction to MSX-C (MSX-C入門) books published by ASCII. Both have been out of print for a long time, but they can still be found from time to time in Japanese second hand book stores and auctions. We’ll see everything in these books until we complete them, and then we’ll go to more technical stuff.

PDF versions of these were distributed with the MSX Magazine Revival issue #3 (MSXマガジン永久保存版3) in 2005. Both PDFs have been available online on the Internet Archive for some time (see links below).

msx-c_books

Introduction to MSX-C (Yellow: first part, Green: second part)

Introduction to MSX-C (first part)

Author: Koji Sakurada
ISBN: 4-7561-0006-6
Publisher: ASCII Publications
Publication date: July 1989

The first of these books (the one with the yellow cover) describes the MSX-C environment and teaches the C programming language taking into account the limitations of the compiler and the differences with the C standard of the time (K&R C, see later in this post). It doesn’t require any previous knowledge of C, so this is an ideal book for beginners, assuming you can read Japanese.

The first three chapters of this book explain how to use the compiler and the tools that come with it. We’ve already touched these subjects in our previous posts here, so we won’t see them again.

Introduction to MSX-C (second part)

Authors: Koji Sakurada, Tetsuto Someya
ISBN: 4-7561-0057-0
Publisher: ASCII Publications
Publication date: December 1990

This second book (green cover) applies the matter explained in the first book to the development of games for MSX2 computers. The authors develop a simple C library to handle several aspects of the MSX hardware, and provide several simple example games.

msx_magazine_1991-08_msx-c_books

Introduction to MSX-C books ad (MSX Magazine, August 1991)

Neither of these books talks about the MSX-C Library package that we already have installed. We will talk about and start using it along the way.

One thing to note if you’re thinking about buying a book on the C progamming language is that the MSX-C compiler was developed before the ANSI C standard was established. The reference book nowadays is The C Programming Language (2nd edition), published in 1988, which covers ANSI C and won’t be of much help if you’re going to code using MSX-C.

The MSX-C compiler follows the rules set in the first edition of the same book: The C Programming Language, published in 1978. This is the original book on the C language by Brian Kernighan and Dennis Ritchie, and it describes the version of the C programming language known as K&R C. It has been out of print for a very long time, but you can easily find used copies on Amazon and other retailers.

c_books

My copies of The C Programming Language, first edition (left) and Spanish second edition (right, has been with me for over 15 years).

Download links

Provided by the Internet Archive:

That’s all for today. See you on Friday!


This series of articles is supported by your donations. If you’re willing and able to donate, please visit the link below to register a small pledge. Every little amount helps.

Javi Lavandeira’s Patreon page

21 comments on “Relearning MSX #16: Roadmap

  1. Hi, is the second book complete at archive.org? it starts with page 21 and ends with page 96. Looks an interesting book with all those examples!

    • The second book explains on page 20 that the MSX-C package doesn’t include a library suitable to handle graphics, joysticks/mouse, etc, so pages 21-96 of the book are all about creating such libraries and explaining how they work. MSXALIB is the part of the library written in assembler, and MSXCLIB is the part written in C.

      • Ah ok, but where are those files that are described on page-21? the .bat files and msxclib.c and msxalib.mac. Are they printed in the book as appendix or so?

        I thought there was also a disk, because the advertisement in the article shows something like “Diskalbum 42”.

  2. Pingback: Relearning MSX #16: Roadmap | Vintage is the New Old

    • I have a first edition K&R too.

      MSX-C is almost exactly the same thing as K&R C. The biggest difference is that the short, long and double data types don’t exist, though there are functions to handle them.

Leave a Reply

Your email address will not be published. Required fields are marked *