2 ; Christian Groessler, June 2000
4 ; this file provides a setcolor() function similar to BASIC SETCOLOR
6 ; void __fastcall__ setcolor (unsigned char color_reg, unsigned char hue, unsigned char luminace);
7 ; void __fastcall__ setcolor_low (unsigned char color_reg, unsigned char color_value);
8 ; unsigned char __fastcall__ getcolor (unsigned char color_reg);
12 .export _setcolor, _setcolor_low, _getcolor
19 lda COLOR0,x ; get current value
27 ; asl a ; not -> BASIC compatible
28 sta lum ; remember luminance