nurpax / petmate

PETSCII editor with Electron/React/Redux
MIT License
181 stars 14 forks source link

Add support for C16, C116, Plus/4 computers #79

Open Esshahn opened 6 years ago

Esshahn commented 6 years ago

Support for those computers should be straight forward:

Good starting point could be to analyze Marq's handling of the plus/4 format in terms of colors. I would happily provide the BASIC exporter.

screenshot 2018-08-12 um 13 09 40

nurpax commented 6 years ago

Makes sense for orthogonality but probably will not go intonthe next releasr line. :)

Esshahn commented 6 years ago

Some quick observations: Colors are incremental from top left to bottom right:

screenshot 2018-08-12 um 20 19 02

Gives values for colram in .c file

screenshot 2018-08-12 um 20 19 23

So with changed values for col and screen ram in the BASIC code

20 poke 65305,6
30 poke 65301,0
100 for i = 3072 to 3072 + 999
110 read a: poke i,a: next i
120 for i = 2048 to 2048 + 999
130 read a: poke i,a: next i

the current BASIC exporter does already work on C16/ Plus/4 (color values are wrong of course)

screenshot 2018-08-12 um 20 38 15 screenshot 2018-08-12 um 20 37 20 screenshot 2018-08-12 um 20 37 29