Skip to content

CPCSyntaxError v0.13.0

Choose a tag to compare

@WacKEDmaN WacKEDmaN released this 06 Nov 12:11
· 11 commits to main since this release

CPCSyntaxError v0.13.0

This release adds the Albireo board, CPCtelera_next 1.04a support in the C window, and the original RASM from its GitHub. It also has CRTC and Plus fixes that the SHAKER test screens and a Plus demo showed.

Albireo (CH376: SD card and USB)

Expansions > Albireo fits one or two Albireo boards. Each board has a CH376 chip with an SD card and a USB port.

  • Board 1 is at &FE80. Board 2 is at &FE40 (the board with JP2/JP3 cut).
  • The SD card is a folder on your PC. The CPC sees it as one FAT16 disc. What the CPC writes goes back into the folder.
  • The USB port has no device, a USB stick (a folder, as one FAT16 disc) or a USB mouse (your PC's mouse, for SymbOS and FutureOS).
  • UniDOS with its Albireo node finds the board at boot. SAVE and LOAD work on the card.
  • On the command line: --albireo <folder>, --albireo-usb <folder|mouse|none>, --albireo2 <folder> and --albireo2-usb <folder|mouse|none>. Use - for a board with no SD card.

Not emulated: the UART and the interrupt line of other board versions. The software must poll the chip, as on the Albireo 2.0.

C programs (CPCtelera)

CPCtelera_next 1.04a (github.com/Arnaud6128/cpctelera, branch cpctelera_next) now builds all its 60 examples without Cygwin. The new asset steps are:

  • AKS2DATA uses the Arkos Tracker 3 converters for your system (Windows, Linux or macOS). The old converters are the fallback.
  • PACKRLEWB packs data with the RLE-WB method.
  • IMG2SP CONVERT_PALETTE_PLUS writes a Plus palette (12-bit RGB values).
  • IMG2SP SET_PALETTE_PLUS gives the palette as RGB colours. The image converter matches each pixel to these colours.
  • IMG2SP SET_IMG_FORMAT spritehardware makes Plus hardware sprites: 16 x 16 pixels, one pen in each byte, no masks.

Other changes:

  • AKS2C works for the older CPCtelera 1.4 projects.
  • When SDCC 4.6 stops with its internal error in constant propagation, the build compiles that file again with --nogenconstprop.
  • The library cache and the temporary files of the build are now in the cache folder beside the program (or under CPCSE_HOME). They are not in the system's temporary folder.
  • The C window is now a window of its own, next to the assembler window.

Assembler: RASM from its GitHub

RASM is now the original RASM (EdouardBerge/rasm, commit 0e25710), with none of our own changes.

  • The WinAPE choice now gives RASM's own options: & is a hex prefix and expressions work as in Maxam. RASM knows these WinAPE directives itself: BRK, LIST, NOLIST, LET, CHARSET, RELOCATE_START, RELOCATE_END and RELOCATE_TABLE.
  • Our WinAPE additions are gone: BYTE, TEXT, WORD, RMEM, DEFL, END, WRITE, SAVE, CHECKSUM, memory() and RUN address,breakpoint.
  • A BRK label sets a debugger breakpoint.

CRTC fixes

  • VSYNC protection (all CRTCs): the block on a new VSYNC is lifted only when a step of C4 in the VSYNC changes the C4=R7 equality, against the R7 of that moment (ACCC §16.3).
  • CRTC 0, R0=0: while the counters are frozen, the first-line R6 conflict and the display restore at C4=C9=0 do not apply (ACCC §13.2.4).
  • CRTC 0, interlace: the parity of C9 changes at each row end when R9 is odd, with R8 at any value.
  • CRTC 2: an R7 write starts a "ghost" VSYNC only in the HSYNC pulse itself.
  • CRTC 3 and 4: they now share one VSYNC start rule.
  • Late end of HSYNC (ACCC §27.7.2): the number of idle T-states that let the interrupt through is now set for each CRTC (CRTC 0 and 2: 2, CRTC 1: 0, CRTC 3 and 4: never).

Plus (ASIC) fixes

  • PRI (programmable raster interrupt): the ASIC now raises it 1 microsecond after the end of the Gate Array's HSYNC, as ACCC §27.6.1 and §27.6.5 give. The plasma of the demo RE-WIRED now goes to the right edge of the screen.

SYMBiFACE III

  • The ROM table on the SD card (CPC\ROMTABLE\BANKnnn) works with TMTLOGIC's ROM manager SF3-RM.BAS: the ROMs fitted now, read and save a ROM, ROM names, the banks and the start bank.
  • |SROM of the SF3-RSX ROM puts a ROM into a slot at once.

MIDI out

  • macOS: MIDI goes to Apple's software synthesizer.
  • Linux: MIDI goes to an ALSA sequencer port "CPCSyntaxError", connected to the first synthesizer found (for example FluidSynth or TiMidity). The program runs without libasound.