Skip to content

CPCSyntaxError v0.13.1

Choose a tag to compare

@WacKEDmaN WacKEDmaN released this 06 Nov 13:27
· 9 commits to main since this release

CPCSyntaxError v0.13.1

This release adds the serial link of the Albireo 1.1 board. It also adds the last CH376 command that was not emulated.

Albireo 1.1: the serial link

The Albireo 1.0 and 1.1 boards have a UART (an SC16C650B) with a USB serial link to another computer. The Albireo 2.0 has no UART.

To fit it, tick Serial link (Albireo 1.1) under Albireo 1 in Expansions.

  • The UART is at &FEB0-&FEB7. It has 32-byte FIFOs, automatic RTS/CTS and Xon/Xoff flow control, and a loopback mode. Its clock is 24 MHz, so the line can run at 1.5 Mbaud.

  • The far end can be:

    • nothing
    • a port on your PC that another program connects to
    • a connection to host:port
    • a serial port of your PC
    • a loopback plug

    For a PC program that opens a COM port, use a virtual serial port pair (for example com0com).

  • Interrupts: the UART sends its interrupt to the CPC's INT when MCR bit 2 is 0, and to NMI when MCR bit 3 is 0. These sources can also cause an interrupt:

    • the CRTC CURSOR signal
    • the CH376
    • the DTR line of the far end
  • DIP switches:

    • S1 lets the CH376 interrupt through.
    • S2 resets the CH376 with the CPC.
    • S3 lets the far end reset the CPC.
    • S4 makes the DTR line of the far end an interrupt.
  • On the command line: --albireo-serial <line> (tcp:host:port, listen:port, com:COM3, loopback or -) and --albireo-switches 1100 (S1 to S4).

The test program of the Albireo manual (16c650.bas) runs. With a loopback plug, it gets back all the bytes it sends.

CH376: DISK_BOC_CMD

The CH376 now does command 50H. This command sends a SCSI command to a USB stick: INQUIRY, READ CAPACITY, TEST UNIT READY, REQUEST SENSE, MODE SENSE, START STOP and READ/WRITE (10) with no blocks. As on the real chip, it gives an error on the SD card.

Build

  • The macOS package is built again when a version is tagged. GitHub stopped the macos-14 build machine, and the automatic build of v0.13.0 failed. The v0.13.0 packages came from a later build of the same source.