trunk/src/mess/drivers/atari400.c
| r26435 | r26436 | |
| 33 | 33 | values 24.7 thru 27.7 degrees in 0.5 degree increments. Enabled |
| 34 | 34 | Phase Shift 26.2 degrees as default. |
| 35 | 35 | |
| 36 | | NOTE: Atari system's (2600, 5200, 8bit, 7800) palette appear different |
| 37 | | on modern flat panel displays than their original target display |
| 38 | | device, CRT. Most noticeable is Hue 1x which is Gold on a CRT, |
| 39 | | but appears Green-Yellow on flat panels. Other hues may be distorted |
| 40 | | as well on flat panel displays. |
| 36 | 2013-11-23 Robert Tuccitto: |
| 37 | Added palette notes |
| 41 | 38 | |
| 42 | 39 | ******************************************************************************/ |
| 43 | 40 | |
| r26435 | r26436 | |
| 756 | 753 | PORT_BIT(0xff, 0x72, IPT_AD_STICK_Y) PORT_SENSITIVITY(JOYSTICK_SENSITIVITY) PORT_KEYDELTA(JOYSTICK_DELTA) PORT_MINMAX(0x00,0xe4) PORT_PLAYER(4) |
| 757 | 754 | |
| 758 | 755 | INPUT_PORTS_END |
| 756 | /*************************************************************** |
| 757 | Atari 5200 Palette Notes: |
| 759 | 758 | |
| 759 | Palette on a modern flat panel display (LCD, LED, Plasma, etc.) |
| 760 | appears different from a traditional CRT. The most outstanding |
| 761 | difference is Hue 1x, the hue begin point. Hue 1x looks very |
| 762 | 'green' (~-60 to -45 degrees - depending on how poor or well it |
| 763 | handles the signal conversion and its calibration) on a modern |
| 764 | flat panel display, as opposed to 'gold' (~-33 degrees) on a |
| 765 | CRT. The official technical document, "GTIA C014805 NTSC" |
| 766 | stipulates Hue 1x as gold. |
| 760 | 767 | |
| 768 | The "Atari 5200 Field Service Manual" provides two different |
| 769 | sets of instructions in harmony with utilizing the "PAM |
| 770 | Diagnostic SALT Cartridge v1.1". In one account it states the |
| 771 | color just below and above the reference bar to be within one |
| 772 | shade of each other. |
| 773 | |
| 774 | Under the same reference document, directions are given for it |
| 775 | to be the same color. Phase Shift 25.7 degrees matches Hue 1x, |
| 776 | 15x and the color below the reference bar. |
| 777 | |
| 778 | However, if the system is adjusted within the first several |
| 779 | minutes of running, the warm up, consistent system run time, |
| 780 | causes Hue 15x (F$) to become stronger/darker gold (More brown |
| 781 | then ultimately red-brown); as well as leans Hue 14x (E$) more |
| 782 | brown than green. Once achieving a phase shift of 27.7, |
| 783 | Hue 14x (E$) and Hue 15x (F$) near-exact match Hue 1x and 2x |
| 784 | respectively. |
| 785 | |
| 786 | Accounting for system 'warm-up', phase shifting, as well as the |
| 787 | instructions for it to be within one shade of each other, would |
| 788 | make Phase Shift 26.2 degrees or 26.7 degrees a realistic |
| 789 | logical choice. |
| 790 | |
| 791 | It also collaborates with the official "GTIA C014805 NTSC" |
| 792 | document for color order: Hue 1x = Gold, Hue 2x = Orange, |
| 793 | Hue 15x (F$) = Light-Orange; Phase Shift 26.2 places |
| 794 | Hue 15x (F$) between Hue 1x, Gold and Hue 2x, Orange; |
| 795 | a Light Orange in color. Color descriptions are best measured |
| 796 | in the middle of the brightness scale. |
| 797 | |
| 798 | It should be mentioned that Green-Yellow is referenced at |
| 799 | Hue 13x (D$), nowhere near Hue 1x. A Green-Yellow Hue 1x is |
| 800 | how the palette is manipulated and modified (in part) under |
| 801 | a modern flat panel display. |
| 802 | |
| 803 | Note though, even a properly calibrated console, at power on, |
| 804 | the phase shift appears as low as ~23 degrees and after a |
| 805 | considerable consistent runtime, can be as high as ~28 degrees. |
| 806 | In general, the low end of ~23 degrees lasts for maybe several |
| 807 | seconds, whereas higher values such as ~25-27 degrees is the |
| 808 | most dominant during system run time. |
| 809 | |
| 810 | Additionally, the blue to red (And consequently blue to green) |
| 811 | ratio proportions may appear different on a modern flat panel |
| 812 | display than a CRT in some instances for the Atari 5200 system. |
| 813 | Furthermore, you may have some variation of proportions even |
| 814 | within the same display type. |
| 815 | |
| 816 | One side effect of this on the console's palette is that some |
| 817 | values of red may appear too pinkish - Too much blue to red. |
| 818 | This is not the same as a traditional tint-hue control |
| 819 | adjustment; rather, can be demonstrated by changing the blue |
| 820 | ratio values via MESS HLSL settings. |
| 821 | |
| 822 | Lastly, the Atari 2600 & 7800 NTSC color palettes hold the same |
| 823 | hue structure order and have similar appearance differences |
| 824 | dependent upon display type. |
| 825 | ***************************************************************/ |
| 761 | 826 | /************************************************************** |
| 762 | 827 | * |
| 763 | 828 | * Palette - Phase Shift 26.2 |
trunk/src/mess/drivers/a7800.c
| r26435 | r26436 | |
| 68 | 68 | |
| 69 | 69 | 2013/10/27 Robert Tuccitto Modernized screen parameters for NTSC & PAL. |
| 70 | 70 | |
| 71 | | 2013/11/03 Fixed correctly typo under 26.7 7$. |
| 71 | 2013/11/03 Robert Tuccitto Fixed correctly typo under 26.7 7$. |
| 72 | |
| 73 | 2014/11/23 Robert Tuccitto Added NTSC Palette Notes |
| 72 | 74 | ***************************************************************************/ |
| 73 | 75 | |
| 74 | 76 | #include "emu.h" |
| r26435 | r26436 | |
| 98 | 100 | AM_RANGE(0x0460, 0x046f) /* XBOARD POKEY2 */ |
| 99 | 101 | AM_RANGE(0x0470, 0x047f) /* XBOARD CTRL */ |
| 100 | 102 | AM_RANGE(0x0480, 0x04ff) AM_MIRROR(0x100) AM_RAM /* RIOT RAM */ |
| 101 | | AM_RANGE(0x1000, 0x17ff) AM_RAM /* hs SRAM */ |
| 103 | AM_RANGE(0x1000, 0x17ff) AM_RAM /* hs SRAM */ |
| 102 | 104 | AM_RANGE(0x1800, 0x27ff) AM_RAM |
| 103 | 105 | AM_RANGE(0x2800, 0x2fff) AM_RAMBANK("bank7") /* MAINRAM */ |
| 104 | 106 | AM_RANGE(0x3000, 0x37ff) AM_RAMBANK("bank7") /* MAINRAM */ |
| 105 | 107 | AM_RANGE(0x3800, 0x3fff) AM_RAMBANK("bank7") /* MAINRAM */ |
| 106 | | AM_RANGE(0x3000, 0x3fff) AM_ROM /* hs ROM space */ |
| 108 | AM_RANGE(0x3000, 0x3fff) AM_ROM /* hs ROM space */ |
| 107 | 109 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK("bank1") /* f18 hornet */ |
| 108 | 110 | AM_RANGE(0x4000, 0xffff) AM_WRITE(a7800_cart_w) /* XBOARD SRAM */ |
| 109 | | AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("bank2") /* sc */ |
| 111 | AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("bank2") /* sc */ |
| 110 | 112 | AM_RANGE(0xa000, 0xbfff) AM_ROMBANK("bank3") /* sc + ac */ |
| 111 | 113 | AM_RANGE(0xc000, 0xdfff) AM_ROMBANK("bank4") /* ac */ |
| 112 | 114 | AM_RANGE(0xe000, 0xffff) AM_ROM |
| r26435 | r26436 | |
| 154 | 156 | PORT_DIPSETTING(0x00, "B" ) |
| 155 | 157 | INPUT_PORTS_END |
| 156 | 158 | |
| 159 | /*************************************************************************** |
| 160 | Atari 7800 NTSC Palette Notes: |
| 157 | 161 | |
| 162 | Palette on a modern flat panel display (LCD, LED, Plasma, etc.) appears |
| 163 | different from a traditional CRT. The most outstanding difference is Hue 1x, |
| 164 | the hue begin point. Hue 1x looks very 'green' (~-60 to -45 degrees - |
| 165 | depending on how poor or well it handles the signal conversion and its |
| 166 | calibration) on a modern flat panel display, as opposed to 'gold' (~-33 |
| 167 | degrees) on a CRT. |
| 168 | |
| 169 | The system's pot adjustment manually manipulates the ratio of blue to |
| 170 | green/blue to red, while the system 'warming-up' causes the palette phase |
| 171 | shift to go higher in degrees. |
| 172 | |
| 173 | At power on, the system's phase shift appears as low as ~23 degrees and |
| 174 | after a considerable consistent runtime, can be as high as ~28 degrees. |
| 175 | |
| 176 | In general, the low end of ~23 degrees lasts for maybe several seconds, |
| 177 | whereas higher values such as ~25-27 degrees is the most dominant during |
| 178 | system run time. 180 degrees colorburst takes place at ~25.7 degrees (A |
| 179 | near exact match of Hue 1x and 15x - To the naked eye they appear to be |
| 180 | the same). |
| 181 | |
| 182 | However, if the system is adjusted within the first several minutes of |
| 183 | running, the warm up, consistent system run time, causes Hue 15x (F$) to |
| 184 | become stronger/darker gold (More brown then ultimately red-brown); as well |
| 185 | as leans Hue 14x (E$) more brown than green. Once achieving a phase shift |
| 186 | of 27.7, Hue 14x (E$) and Hue 15x (F$) near-exact match Hue 1x and 2x |
| 187 | respectively. |
| 188 | |
| 189 | Therefore, an ideal phase shift while accounting for the reality of |
| 190 | shifting while warming up, as well as maintaining differences between 1x, |
| 191 | 2x and 14x, 15x, would likely fall between a 25.7 and 27.7. Phase shifts |
| 192 | 26.2 degrees and 26.7 degrees places Hue 15x (F$) between Hue 1x and |
| 193 | Hue 2x, having 26.2 degrees leaning closer to Hue 1x and 26.7 degrees |
| 194 | leaning closer to Hue 2x. |
| 195 | |
| 196 | The above notion would also harmonize with what has been documented for |
| 197 | the colors of 1x, 2x, 14x, 15x on the 7800. 1x = Gold, 2x = Orange, |
| 198 | 14x (E$) = Orange-Green. 15x (F$) = Light Orange. Color descriptions are |
| 199 | best measured in the middle of the brightness scale. It should be |
| 200 | mentioned that Green-Yellow is referenced at Hue 13x (D$), nowhere near |
| 201 | Hue 1x. A Green-Yellow Hue 1x is how the palette is manipulated and |
| 202 | modified (in part) under a modern flat panel display. |
| 203 | |
| 204 | Additionally, the blue to red (And consequently blue to green) ratio |
| 205 | proportions may appear different on a modern flat panel display than a CRT |
| 206 | in some instances for the Atari 7800 system. Furthermore, you may have |
| 207 | some variation of proportions even within the same display type. |
| 208 | |
| 209 | One side effect of this on the console's palette is that some values of |
| 210 | red may appear too pinkish - Too much blue to red. This is not the same |
| 211 | as a traditional tint-hue control adjustment; rather, can be demonstrated |
| 212 | by changing the blue ratio values via MESS HLSL settings. |
| 213 | |
| 214 | Lastly, the Atari 2600 & 5200 NTSC color palettes hold the same hue |
| 215 | structure order and have similar appearance differences that are dependent |
| 216 | upon display type. |
| 217 | ***************************************************************************/ |
| 158 | 218 | /*************************************************************************** |
| 159 | 219 | PALETTE - 26.2 PHASE SHIFT |
| 160 | 220 | ***************************************************************************/ |
trunk/src/mame/video/tia.c
| r26435 | r26436 | |
| 48 | 48 | PALETTE_INIT_MEMBER(tia_ntsc_video_device, tia_ntsc) |
| 49 | 49 | { |
| 50 | 50 | int i, j; |
| 51 | | /******************************** |
| 51 | /******************************************************************** |
| 52 | Atari 2600 NTSC Palette Notes: |
| 53 | |
| 54 | Palette on a modern flat panel display (LCD, LED, Plasma, etc.) |
| 55 | appears different from a traditional CRT. The most outstanding |
| 56 | difference is Hue 1x, the hue begin point. Hue 1x looks very |
| 57 | 'green' (~-60 to -45 degrees - depending on how poor or well it |
| 58 | handles the signal conversion and its calibration) on a modern |
| 59 | flat panel display, as opposed to 'gold' (~-33 degrees) on a CRT. |
| 60 | |
| 61 | The official technical documents: "Television Interface Adaptor |
| 62 | [TIA] (Model 1A)", "Atari VCS POP Field Service Manual", and |
| 63 | "Stella Programmer's Guide" stipulate Hue 1x to be gold. |
| 64 | |
| 65 | The system's pot adjustment manually manipulates the degree of |
| 66 | phase shift, while the system 'warming-up' will automatically |
| 67 | push whatever degrees has been manually set, higher. According |
| 68 | to the Atari VCS POP Field Service Manual and system diagnostic |
| 69 | and test (color) cart, instructions are provide to set the pot |
| 70 | adjustment having Hue 1x and Hue 15x (F$) match or within one |
| 71 | shade of each other, both a 'goldenrod'. |
| 72 | |
| 73 | At power on, the system's phase shift appears as low as ~23 |
| 74 | degrees and after a considerable consistent runtime, can be as |
| 75 | high as ~28 degrees. |
| 76 | |
| 77 | In general, the low end of ~23 degrees lasts for several seconds, |
| 78 | whereas higher values such as ~25-27 degrees are the most |
| 79 | dominant during system run time. 180 degrees colorburst takes |
| 80 | place at ~25.7 degrees (A near exact match of Hue 1x and 15x - |
| 81 | To the naked eye they appear to be the same). |
| 82 | |
| 83 | However, if the system is adjusted within the first several |
| 84 | minutes of running, the warm up, consistent system run time, |
| 85 | causes Hue 15x (F$) to become stronger/darker gold (More brown |
| 86 | then ultimately red-brown); as well as leans Hue 14x (E$) more |
| 87 | brown than green. Once achieving a phase shift of 27.7 degrees, |
| 88 | Hue 14x (E$) and Hue 15x (F$) near-exact match Hue 1x and 2x |
| 89 | respectively. |
| 90 | |
| 91 | Therefore, an ideal phase shift while accounting for properly |
| 92 | calibrating a system's color palette within the first several |
| 93 | minutes of it running via the pot adjustment, the reality of |
| 94 | shifting while warming up, as well as maintaining differences |
| 95 | between Hues 1x, 2x and 14x, 15x, would likely fall between 25.7 |
| 96 | and 27.7 degrees. Phase shifts 26.2 and 26.7 places Hue 15x/F$ |
| 97 | between Hue 1x and Hue 2x, having 26.2 degrees leaning closer to |
| 98 | Hue 1x and 26.7 degrees leaning closer to Hue 2x. |
| 99 | |
| 100 | The above notion would also harmonize with what has been |
| 101 | documented within "Stella Programmer's Guide" for the colors of |
| 102 | 1x, 2x, 14x, 15x on the 2600 and 7800. 1x = Gold, 2x = Orange, |
| 103 | 14x (E$) = Orange-Green. 15x (F$) = Light Orange. Color |
| 104 | descriptions are best measured in the middle of the brightness |
| 105 | scale. It should be mentioned that Green-Yellow is referenced |
| 106 | at Hue 13x (D$), nowhere near Hue 1x. A Green-Yellow Hue 1x is |
| 107 | how the palette is manipulated and modified (in part) under a |
| 108 | modern flat panel display. |
| 109 | |
| 110 | Additionally, the blue to red (And consequently blue to green) |
| 111 | ratio proportions may appear different on a modern flat panel |
| 112 | display than a CRT in some instances for the Atari 2600 system. |
| 113 | Furthermore, you may have some variation of proportions even |
| 114 | within the same display type. |
| 115 | |
| 116 | One side effect of this on the console's palette is that some |
| 117 | values of red may appear too pinkish - Too much blue to red. |
| 118 | This is not the same as a traditional tint-hue control adjustment; |
| 119 | rather, can be demonstrated by changing the blue ratio values |
| 120 | via MESS HLSL settings. |
| 121 | |
| 122 | Lastly, the Atari 5200 & 7800 NTSC color palettes hold the same |
| 123 | hue structure order and have similar appearance differences that |
| 124 | are dependent upon display type. |
| 125 | ********************************************************************/ |
| 126 | /********************************* |
| 52 | 127 | Phase Shift 24.7 |
| 53 | 128 | { 0.000, 0.000 }, |
| 54 | 129 | { 0.192, -0.127 }, |
| r26435 | r26436 | |
| 156 | 231 | { 0.099, -0.182 }, |
| 157 | 232 | { 0.194, -0.126 }, |
| 158 | 233 | { 0.244, -0.042 } |
| 159 | | **********************************/ |
| 234 | *********************************/ |
| 160 | 235 | |
| 161 | 236 | static const double color[16][2] = |
| 162 | 237 | /********************************* |