Short: Convert IFF/CMAP chunk to asm source/bin Author: kenny@bgnett.no (Kenneth "Kenny" Nilsen) Uploader: kenny bgnett no (Kenneth "Kenny" Nilsen) Type: gfx/conv Version: 1.0 Requires: kickstart 2.0+ Architecture: m68k-amigaos mailto:kenny@bgnett.no $VER: CMAP2Asm 1.0 (27.6.97) - Freeware Copyright (C) 1997 by Digital Surface/Kenneth "Kenny" Nilsen. All rights reserved. A little utility that can convert a FORM ILBM's CMAP chunk to assembler source. It can convert the CMAP chunk for usage with both LoadRGB4() and LoadRGB32() function calls. Defaults to LoadRGB32(). Purpose is to convert picture CMAP chunk so you can set colors accordingly for your screen to suit picture. If you need C source output (or any other source formats) please let me know (send an email with needed format layout). USAGE ----- CMAP2Asm [options] - path and name on a FORM/ILBM picture file. Note that 24-bits picture doesn't have CMAP chunks so the program will return error on those as well as none FORM/ILBM picture files. - path and filename on the output source file. Ready to be included in your assembler source. Options: -4 = format asm source for LoadRGB4(). Default format of asm table is for use with LoadRGB32() -b = output in binary format instead of source (still compatible with the LoadRGBx() functions, but you need to 'incbin' them instead of 'include' or paste in source). Example usage: -------------- LibBase graphics move.l Viewport(pc),a0 lea CMap(pc),a1 Call LoadRGB32 [...] CMap: .... [the table we got from CMAP2Asm] FUTURE (depends on respons) --------------------------- - Output switch for C/Basic/+++ source Don't hasitate to send comments, suggestions and so forth to the email address above.