|
Post by oziphantom on Nov 16, 2018 16:11:41 GMT
So I'm trying to make a 32x24 screen. I'm doing this by going to 40 cols using the double wide feature, as showing in Mapping the 128 book, and it mostly works... however only for some colours... color 6,1 fine color 6,3 garbled mess color 6,2 scrolling thin lines the Mapping book tells me this register only contains the colours... yet it causes the display to go completely wonky. Any body got an ideas on how, why etc? to get to 40 cols I'm doing reg val 0 63 1 40 2 55 22 $89 25 bit 5 set 27 40
|
|
|
Post by oziphantom on Nov 17, 2018 7:01:57 GMT
ok reg 3 is the magic sauce you need to tweak it a bit and that will get your image stable..
However the colours will be wrong. As in White on Blue will be Yellow on Black wrong. It gets worse. The "background colour" aka the lower 4bits of $1a, will now be the "foreground colour" even in attribute mode. And the background will be black, always black, no matter what you write to the upper 4bits, black.
So I turned on inverted mode, the black stays black, and only where you have chars with data in them invert...
|
|
|
Post by oziphantom on Nov 17, 2018 7:06:16 GMT
|
|
|
Post by oziphantom on Nov 17, 2018 7:23:15 GMT
If others could please run this on their setups and report back if they see black/yellow or blue/white that would be handy.
|
|
|
Post by willymanilly on Nov 17, 2018 8:50:41 GMT
I'm currently away from my real c128 setup but will definitely be trying this when I have access to it again next week.
|
|
|
Post by tokra on Nov 17, 2018 10:19:26 GMT
You need to adjust registers 34 and 35 as well in 40 column-mode. Register 3 (bit 0-3) needs to be "number of characters + 1", so in 40 column mode you need to put in 5 (4+1) instead of 9 (8+1). Try the following register settings: reg val 0 63 1 40 2 55 3 69 22 137 25 87 27 40 34 63 35 52
|
|
|
Post by oziphantom on Nov 18, 2018 4:17:27 GMT
And lo colour was restored Thanks Tokra..
|
|
|
Post by bjonte on Nov 18, 2018 17:54:14 GMT
Did you get it to work properly?
I failed to get 40 column mode working last time I tried and I didn’t figure out why. I have to make another attempt.
|
|
|
Post by oziphantom on Nov 19, 2018 11:45:45 GMT
Yes seems to work fine. I have a 32 wide screen not a 40 wide screen but here are the "magic numbers" I have
VDCData .block reg .byte $00,$01,$02,$03,$06,$0a,$0c,$0d,$0e,$0f,$14,$15,$16,$19,$1a,$1b,$1c,34,35 value .byte 63, 32, 53, 68, 24,$20,$10,$00,$29,$00,$28,$00,$89,$57,$03,$e0,$00,63,52 .bend
|
|
|
Post by bjonte on Nov 20, 2018 10:41:11 GMT
Thanks! I’ll use them as reference to figure out what I’m doing wrong.
|
|