VOGONS


Hercules orange color

Topic actions

First post, by colguetti

User metadata
Rank Newbie
Rank
Newbie

Hi, sorry to bother you all but I can´t find the way to select the hercules color 😁 , I know I know, it´s monochrome but I used to play some games on an orange monochrome monitor and I just wanted to play them as I´m used to, also I remember having a WANG with a 9" green monochrome display....

Please feel free to move this post if you feel it goes into another forum

Thanks in advance !!!

Sorry for my english, I speak spanish and my english is self-taught 😖

Reply 1 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Because you created this thread in the development section, here is a way to have what you want by changing the source code in int10_modes.cpp:

    case MCH_HERC:
IO_WriteB(0x3b8,0x28); // TEXT mode and blinking characters

+ VGA_DAC_SetEntry( 0,0x02,0x01,0);
+ VGA_DAC_SetEntry( 7,0x37,0x28,0);
+ VGA_DAC_SetEntry(15,0x3f,0x34,0);
VGA_DAC_CombineColor(0,0);
VGA_DAC_CombineColor(1,7);

real_writeb(BIOSMEM_SEG,BIOSMEM_CURRENT_MSR,0x29); // attribute controls blinking
break;

It's a hard-coded color scheme; making it configurable is more involved. Note that the hercules emulation only uses palette entries 0, 7, and 15; and the RGB values range from 0 to 0x3f. You can create just about any color scheme you like, but I guess amber or green would be the most nostalgic variants. I used a close-up image of an amber monochrome monitor from Google images to come up with the colors in the example; and I set the background color to have a hint of amber just to add to the simulation.

Text with different attributes:

ambtxt.png

Game graphics:

ambgfx.png

Reply 2 of 25, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Wow. Seeing an amber Hercules display again for the first time in 20 years is just nostalgia ecstacy.

Someone. Commit. This.

apsosig.png
long live PCem

Reply 3 of 25, by lightmaster

User metadata
Rank Oldbie
Rank
Oldbie

nostalgia xtc indeed! :oo

25071588525_735097840e_b.jpg

Reply 5 of 25, by robertmo

User metadata
Rank l33t++
Rank
l33t++

# Possible values: hercules, hercules_amber, hercules_green, cga, ... 😉

Reply 6 of 25, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

or just the default changed 😉

Water flows down the stream
How to ask questions the smart way!

Reply 7 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Here is a patch against current source that has a somewhat better chance of being committed than the hack I first wrote about. Similar to how the CGA machine type allows composite color hue to be changed with F11, I've used the same key to allow cycling among white, amber, and green monochrome colors on-the-fly. It starts out in white for backward compatibility.

Welcome screen showing added message about F11 in green color:

grntxt.png

Reply 8 of 25, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Indeed this has a chance to be accepted.
Let me review it.

Water flows down the stream
How to ask questions the smart way!

Reply 9 of 25, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

It seems like a nice patch.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 11 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

It retains the palette when changing from text to graphics, but not when switching to a text mode. New patch for that "little" issue.

Reply 12 of 25, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Nice idea. One thing to point out: The difference of intensity seems a bit more visible on real hardware (at least on my weird green multiscan monitor)

1+1=10

Reply 13 of 25, by lightmaster

User metadata
Rank Oldbie
Rank
Oldbie
Qbix wrote:

Indeed this has a chance to be accepted.
Let me review it.

Thank you !!!

25071588525_735097840e_b.jpg

Reply 14 of 25, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author
h-a-l-9000 wrote:

Nice idea. One thing to point out: The difference of intensity seems a bit more visible on real hardware (at least on my weird green multiscan monitor)

suggestions for better values ?

Water flows down the stream
How to ask questions the smart way!

Reply 15 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I made the green values by simply stripping the red and blue from white. 😅

As I understand it, human perception of brightness/intensity is most sensitive for green, less for red, and much less for blue. There are several functions for computing equivalent perceived brightness as colors are changed. In this case it may just come down to preference.

Reply 16 of 25, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

Nice, I had to use an amber Hercules setup for a couple years around 1990 when the EGA monitor in my 8MHz 286 blew out from overheating due to someone putting a printer on top of its vents 😳 Does SIMCGA work in DOSBox while running in Hercules mode?

Reply 17 of 25, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hal could you try some values out ? It is only value that needs possibly to be changed.
You got the real thing afterall.

Water flows down the stream
How to ask questions the smart way!

Reply 18 of 25, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author
	case 2:	// Green
VGA_DAC_SetEntry(0x7,0x00,0x26,0x00);
VGA_DAC_SetEntry(0xf,0x00,0x3f,0x00);

But yes it's highly subjective.
For some reason Eclipse didn't want to apply the patch.

1+1=10

Reply 19 of 25, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

0x26 instead of 0x2a ?
Fine by me.

the patch applies fine at my place. I'll look after it.

Water flows down the stream
How to ask questions the smart way!