Skip to content

Platform NEC PC8801

suborb edited this page Jan 20, 2019 · 9 revisions

Quick start

zcc +pc88 -create-app -Cz--audio program.c

This will generate three files, a.bin (a pure binary block), a.t88 (a file valid on many emulators), and a.wav, never tested but meant to be loaded on the real hardware.

Generic console modes

The screen mode can be switched using the console_ioctl() function. The following modes are supported:

  • Mode 0: 80x25
  • Mode 1: 40x25

Graphics libraries

Two graphics libraries are available:

  • 160x100, use the '-lgfxpc88' library inclusion
  • 640x200, use the '-lgfxpc88hr200' library inclusion

Target specific extras are listed in the <pc88.h> header file

Emulator notes

An emulator capable of loading the T88 cassette file format is necessary, the default ORG address is $8A00, it was chosen peeping into the original software written in the eighties.

To run an appmake created program, first start N88 BASIC (on the M88 emulator the cpu clock must be set to 8mhz) or N80 BASIC, get to the prompt (answering first to the question about the "files?" number), then:

R   (or L if you are using the N80 BASIC)

(CTRL-b would return to BASIC from monitor)

M88 emulator

Please note that the M88 emulator and possibly also others require the correct CPU speed setting (usually 4 or 8 Mhz) to load correctly the program from the tape file.

Appmake extras

The audio file can be slightly accelerated with the -Cz--fast build option.

Appmake can be also run in 'dumb mode' to convert any T88 file to wav:

appmake -b program.t88 --audio --fast --dumb
Clone this wiki locally
You can’t perform that action at this time.