Platform Primo - z88dk/z88dk GitHub Wiki

Hardware summary

  • U880 @ 2.5Mhz
  • 16k RAM (A/B-32), 32k RAM (A/B-48), 48k RAM (A/B/64)
  • 256x192 B&W graphics
  • Microsoft BASIC in ROM

Classic library support (+primo)

  • Native console output
  • Native console input
  • ANSI vt100 engine
  • Generic console
    • Redefinable font
    • UDG support
    • Paper colour
    • Ink colour
    • Inverse attribute
    • Bold attribute
    • Underline attribute
  • Lores graphics
  • Hires graphics
  • PSG sound
  • One bit sound
  • Inkey driver
  • Hardware joystick
  • File I/O
  • Interrupts
  • RS232

For co-existence with the firmware, this an IXIY swapped machine so take care when linking extra libraries.

Compilation

zcc +primo program.c -create-app

A .ptp file is generated which can be autoloader by the Ultimo emulator pressing ALT-F

For use with mame, a snapshot file can be generated using

zcc +primo program.c -create-app -subtype=mamepp

Console driver

This target defaults to using the ROM terminal driver with 6x12 font giving a 42x21 resolution, to switch to using the generic console with a 8x8 font giving 32x24 resolution add the option --generic-console to the compile line.

Keyboard and input

An inkey keyboard handler is supplied supporting concurrent keypresses. At present the keyboard mappings may not be correct.

Links