steffest / DPaint-js

Webbased image editor, modeled after the legendary Deluxe Paint with a focus on retro Amiga file formats: read and write Amiga icon files and IFF ILBM images
https://www.stef.be/dpaint/
MIT License
481 stars 28 forks source link

Option to export Amiga palette as 68K ASM #29

Open neildavis opened 1 month ago

neildavis commented 1 month ago

Another small 'nice to have' feature request :)

Currently when saving using the Amiga 'Planes' option the palette is exported as a text file. This is really useful but the output format is for 'C' like languages. e.g.:

{0X000,0X95f,0X599,0Xf93}

It would be nice for us ASM coders to have the option to output in 68K ASM format. e.g.:

dc.w $000,$95f,$599,$f93

This is similar to what some traditional Amiga OS tools like IFFTrasher or IFF Converter do. IFF Converter can be seen in use on this video to produce the 'copper list' asm code for the palette.

Note the 'three nibble' format (same as the 'C' example) that allows the excellent 'Amiga Assembly' VSCode plugin to render inline colour swatches.