gslib
gslib copied to clipboard
Possible bug In shrhello
There may be a bug in the shrhello program, for lines 15 to 20. After some tests, I noticed that you can change the colors of the palette, i.e. change the values assigned in lines 15 and 18, but this does not change the displayed colors. The solution I found is : either to put "jsr GraphicsOn" BEFORE line 15 or to linearize the memory before; example : sep $30 ldal $00C029 ora #%01000000 ; if bit 6 of $00C029 is on : linearize memory stal $00C029 rep $30
I prefer solution 2, which allows to switch to SRH once the palettes have been set. Thank you very much for your contribution, and the clarity of your programs.