how to set the border colour in screen 7?

Page 1/3
| 2 | 3

By flyguille

Prophet (3028)

flyguille's picture

29-06-2004, 19:12

when i set the border colour (using the normal procedure of the screens 0 up to 6) in the screen 7, i only can obtain blue, red, and magenta colours, i can't get the white because the green signal not work, or maybe work in a diferent way.

How to do that in screen 7?

Login or register to post comments

By [D-Tail]

Ascended (8259)

[D-Tail]'s picture

29-06-2004, 19:17

AFAIK the color settings in screen 7 are the same compared to other screens... Maybe some hardware is malfunctioning? Did you try to make it work on another MSX (or emu, perhaps)?

By BiFi

Enlighted (4348)

BiFi's picture

29-06-2004, 19:59

ld a,colorcode
out ($99),a
ld a,128+16
out ($99),a
ld a,%0rrr0bbb ; red and blue palette values
out ($9a),a
ld a,%00000ggg ; green value
out ($9a),a

By Grauw

Ascended (10604)

Grauw's picture

29-06-2004, 20:08

I don't understand either, screen 7 should indeed be exactly like screen 5, etc. The only different screen mode is screen 8, which has a pre-set palette iirc.

~Grauw

By [D-Tail]

Ascended (8259)

[D-Tail]'s picture

29-06-2004, 20:12

Yeah, if you meant 'Graphics mode 7', I'd understand Wink. Try to do something with the color/backdrop register.

By flyguille

Prophet (3028)

flyguille's picture

29-06-2004, 20:12

oh! shit, i mean how to do in the screen 8!!, simply i confuse the numbers.

By flyguille

Prophet (3028)

flyguille's picture

29-06-2004, 20:14

ld a,colorcode
out ($99),a
ld a,128+16
out ($99),a
ld a,%0rrr0bbb ; red and blue palette values
out ($9a),a
ld a,%00000ggg ; green value
out ($9a),a

oh, but this if for set a palette...

i want to set the border colour than is not a pointer to a pallette.

By BiFi

Enlighted (4348)

BiFi's picture

29-06-2004, 20:55

You can change the back drop color by changing R#7 to the desired color code.

ld a,backdropcolor
out ($99),a
ld a,128+7
out ($99),a

By flyguille

Prophet (3028)

flyguille's picture

29-06-2004, 21:46

You can change the back drop color by changing R#7 to the desired color code.

ld a,backdropcolor
out ($99),a
ld a,128+7
out ($99),a

and that is just that i already do!!.

check the demo of the MNBIOS

in screen 0 (screen 5) (in MNBIOS is screen -m0)
in screen 2 (screen 7) (in MNBIOS is screen -m2)

The border colour work just as you comment here.

But, in (screen 8) (in MNBIOS is screen -m3)

the same routine to set the border colour fail, just one as you wrote here.

test using

COLOR -b&HFF , in MNBIOS

that is white in all other screens mode. and in screen 8 only can set the RED and BLUE value, not the GREEN. why? what's changed?

By flyguille

Prophet (3028)

flyguille's picture

29-06-2004, 22:40

Well, i see TFM and indeed under (graphics mode 7) on the book page 50, say:

THE register is #7 and the low 4 bits set the colour (i think as a pointer to a palette).

Then, on the book page 52, on the point 3, under the same tittle, say:

IS JUST RGB. +

BUt ins't RGB, because when i do the following

COLOR 0,0,0:SCREEN 8: VDP (7)= &HFF

i got a "magenta" (100% blue + 100% red + 0% green).

and graduating the register number, i obtain all the blues and red graduations like

bits 2-0 = blue setting
bits 6-5 = red setting

bit 3 nothing

bit 7 nothing

and as the openMSX reproduce the same effect, so , how is it?

By Sonic_aka_T

Enlighted (4130)

Sonic_aka_T's picture

30-06-2004, 01:27

I dunno, but if I check on openMSX it does use RGB. I only tested it in BASIC, but VDP reg #07 seems to change accordingly. If I COLOR ,,255 in BASIC the border turns white and VDP reg #07 contains the value FF. If I COLOR ,,3 in BASIC the border turns light blue and VDP reg #07 contains the value 03. The rest of the color pallette seems to be there too... It seems to use GGGRRRBB instead though...

Page 1/3
| 2 | 3