Changes

Gate Array

1,006 bytes removed, 20:51, 20 February 2009
Rollback as undo swallowed all Prettytables & fixed table "Select pen" bit 4=0
Gate Array
== Introduction ==
The gate array is a specially designed chip exclusively for use in the Amstrad CPC and was designed by Amstrad plc.
In the CPC+ system, the functions of the Gate-Array are integrated into a single [[ASIC|ASIC]]. When the ASIC is "locked", the extra features are not available and the ASIC operates the same as the Gate-Array in the CPC allowing programs written for the CPC to work on the Plus without modification. The ASIC must be "un-locked" to access the new features.
In the [[KC Compact Computer|KC compact]] system, the functions of the Gate-Array are "emulated" in [[TTL logic|TTL logic]] and by the [[Zilog Z8536 CIO|Zilog Z8536 CIO]].
In the "cost-down" version of the CPC6128, the functions of the Gate-Array are integrated into a ASIC.
The Gate Array is described here, as it is in a standard CPC.
''What does it do?''
The Gate Array is responsible for the display (colour palette, resolution, horizontal and vertical sync), interrupt generation and memory arrangement.
== Controlling the Gate Array ==
The gate array is controlled by I/O. The gate array is selected when bit 15 of the I/O port address is set to "0" and bit 14 of the I/O port address is set to "1". The values of the other bits are ignored. However, to avoid conflict with other devices in the system, these bits should be set to "1".
The recommended I/O port address is &7Fxx.
The function to be performed is selected by writing data to the Gate-Array, bit 7 and 6 of the data define the function selected (see table below). It is not possible to read from the Gate-Array.
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Bit 7''||''Bit 6''||''Function''
|-
| ''Bit 7''0| ''Bit 6''| ''Function''0||Select pen
|-
| 0| 0|1|| Select colour for selected pen
|-
|1|| 0| 1| Select colour for selected penscreen mode, rom configuration and interrupt control
|-
| 1| 0| Select screen mode, rom configuration and interrupt control1||Ram Memory Management (note 1)
|-
| 1
| 1
| Ram Memory Management (note 1)
|}
===== Note =====
This function is not available in the Gate-Array, but is performed by a device at the same I/O port address location. In the CPC464,CPC664 and KC compact, this function is performed in a memory-expansion (e.g. Dk'Tronics 64K Ram Expansion), if this expansion is not present then the function is not available. In the CPC6128, this function is performed by a PAL located on the main PCB, or a memory-expansion. In the 464+ and 6128+ this function is performed by the ASIC or a memory expansion. Please read the document on Ram Management for more information.
==== Pen selection ====
When bit 7 and bit 6 are set to "0", the remaining bits determine which pen is to have its colour changed. When bit 4 is set to "0", bits 3 to 0 define which pen is to be selected. When bit 4 is set to "1", the value contained in bits 3-0 is ignored and the border is selected.
The pen remains selected until another is chosen.
Each mode has a fixed number of pens. Mode 0 has 16 pens, mode 1 has 4 pens and mode 2 has 2 pens.
===== Summary =====
 {|{{Prettytable|width: 700px; font-size: 2em;}}|''Bit''||''Value''||''Function''
|-
| ''Bit''7| ''Value''| ''Function''0||rowspan=2|Gate Array function "Pen Selection"
|-
| 76|| 0| rowspan="2" | Gate Array function "Pen Selection"
|-
| 65| 0|-||not used
|-
| 54| -| not used1||Select border
|-
| 43| 1| Select borderx||rowspan=4|Ignored
|-
| 32|| x| rowspan="4" | Ignored
|-
| 21|| x
|-
| 10|| x
|-
| 0
| x
|}
<br>
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Bit''||''Value''||''Function''
|-
| ''Bit''7| ''Value''| ''Function''0||rowspan=2|Gate Array function "Pen Selection"
|-
| 76|| 0| rowspan="2" | Gate Array function "Pen Selection"
|-
| 65| 0|-||not used
|-
| 54| -| not used0||Select pen
|-
| 43| 1| Select penx||rowspan=4|Pen number
|-
| 32|| x| rowspan="4" | Pen number
|-
| 21|| x
|-
| 10|| x
|-
| 0
| x
|}
==== Colour selection ====
Once the pen has been selected the colour can then be changed. Bits 4 to 0 specify the hardware colour number from the hardware colour palette.
Even though there is provision for 32 colours, only 27 are possible. The remaining colours are duplicates of those already in the colour palette.
===== Summary =====
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Bit''||''Value''||''Function''
|-
| ''Bit''7| ''Value''| ''Function''0||rowspan=2|Gate Array function "Colour selection"
|-
| 76| 0| rowspan="2" | Gate Array function "Colour selection"1
|-
| 65| 1|-||not used
|-
| 54| -| not usedx||rowspan=5|Colour number x
|-
| 43| x| rowspan="5" | Colour number x
|-
| 32|| x
|-
| 21|| x
|-
| 10|| x
|-
| 0
| x
|}
==== Hardware colour palette ====
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Colour Number''||''Colour Name''||''Color''
|-
| ''Colour Number''0| ''Colour Name''| ''Color''White||bgcolor="#808080"|
|-
| 01|| White(note 1)|| bgcolor="#808080" |
|-
| 12||Sea Green| White (note 1)| bgcolor="#80808000FF80" |
|-
| 23||Pastel Yellow| Sea Green| bgcolor="#00ff80FFFF50" |
|-
| 34||Blue| Pastel Yellow| bgcolor="#ffff50000080" |
|-
| 45||Purple| Blue| bgcolor="#000080FF0080" |
|-
| 56||Cyan| Purple| bgcolor="#ff0080008080" |
|-
| 67||Pink| Cyan| bgcolor="#008080FF8080" |
|-
| 78||Purple (note 1)| Pink| bgcolor="#ff8080FF0080" |
|-
| 89| Purple |Pastel Yellow (note 1)|| bgcolor="#ff0080FFFF50" |
|-
| 910| Pastel |Bright Yellow (note 1)|| bgcolor="#ffff50FFFF80" |
|-
| 1011|| Bright YellowWhite|| bgcolor="#ffff80FFFFFF" |
|-
| 1112|| Bright WhiteRed|| bgcolor="#ffffffFF0000" |
|-
| 1213|| Bright RedMagenta|| bgcolor="#ff0000FF00FF" |
|-
| 1314||Orange| Bright Magenta| bgcolor="#ff00ffFF8000" |
|-
| 1415||Pastel Magenta| Orange| bgcolor="#ff8000FF80FF" |
|-
| 1516||Blue (note 1)| Pastel Magenta| bgcolor="#ff80ff000080" |
|-
| 1617| Blue |Sea Green (note 1)|| bgcolor="#00008000FF80" |
|-
| 1718| Sea |Bright Green (note 1)|| bgcolor="#00ff8000FF00" |
|-
| 1819|| Bright GreenCyan|| bgcolor="#00ff0000FFFF" |
|-
| 1920||Black| Bright Cyan| bgcolor="#00ffff000000" |
|-
| 2021||Bright Blue| Black| bgcolor="#0000000000FF" |
|-
| 2122||Green| Bright Blue| bgcolor="#0000ff008000" |
|-
| 2223||Sky Blue| Green| bgcolor="#0080000080FF" |
|-
| 2324||Magenta| Sky Blue| bgcolor="#0080ff800080" |
|-
| 2425||Pastel Green| Magenta| bgcolor="#80008080FF80" |
|-
| 2526||Lime| Pastel Green| bgcolor="#80ff8080FF00" |
|-
| 2627||Pastel Cyan| Lime| bgcolor="#80ff0080FFFF" |
|-
| 2728||Red| Pastel Cyan| bgcolor="#80ffff800000" |
|-
| 2829||Mauve| Red| bgcolor="#8000008000FF" |
|-
| 2930||Yellow| Mauve| bgcolor="#8000ff808000" |
|-
| 3031||Pastel Blue| Yellow| bgcolor="#8080008080FF" |
|-
| 31
| Pastel Blue
| bgcolor="#8080ff" |
|}
===== Notes =====
This is not an official colour
Select screen mode and rom configuration
This is a general purpose register responsible for the screen mode and the rom configuration.
==== Screen mode selection ====
The function of bits 1 and 0 is to define the screen mode. The settings for bits 1 and 0 and the corresponding screen mode are given in the table below.
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Bit 1''||''Bit 0''||''Screen mode''
|-
| ''Bit 1''0|| ''Bit 0''| ''Screen mode''|Mode 0, 160x200 resolution, 16 colours
|-
| 0| 0|1|| Mode 01, 160x200 320x200 resolution, 16 4 colours
|-
|1|| 0| 1| Mode 12, 320x200 640x200 resolution, 4 2 colours
|-
| 1| 0|1|| Mode 23, 640x200 160x200 resolution, 2 4 colours(note 1)
|-
| 1
| 1
| Mode 3, 160x200 resolution, 4 colours (note 1)
|}
This mode is not official. From the combinations possible, we can see that 4 modes can be defined, although the Amstrad only has 3. Mode 3 is similar to mode 0, because it has the same resolution, but it is limited to only 4 colours.
Mode changing is synchronised with HSYNC. If the mode is changed, it will take effect from the next HSYNC.
==== Rom configuration selection ====
Bit 2 is used to enable or disable the lower rom area. The lower rom area occupies memory addressess &amp;0000-&amp;3fff and is used to access the operating system rom. When the lower rom area is is enabled, reading from &amp;0000-&amp;3FFF will return data in the rom. When a value is written to &amp;0000-&amp;3FFF, it will be written to the ram underneath the rom. When it is disabled, data read from &amp;0000-&amp;3FFF will return the data in the ram.
Similarly, bit 3 controls enabling or disabling of the upper rom area. The upper rom area occupies memory addressess &amp;C000-&amp;FFFF and is BASIC or any expansion roms which may be plugged into a rom board/box. See the document on upper rom selection for more details. When the upper rom area enabled, reading from &amp;c000-&amp;ffff, will return data in the rom. When data is written to &amp;c000-&amp;FFFF, it will be written to the ram at the same address as the rom. When the upper rom area is disabled, and data is read from &amp;c000-&amp;ffff the data returned will be the data in the ram.
Bit 4 controls the interrupt generation. It can be used to delay interrupts. See the document on interrupt generation for more information.
===== Summary =====
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Bit''||''Value''||''Function''
|-
| ''Bit''7| ''Value''| ''Function''0||rowspan=2|Gate Array function
|-
| 76| 0| rowspan="2" | Gate Array function1
|-
| 65| 1|-||not used
|-
| 54| -| not usedx||Interrupt generation control
|-
| 43|| x| Interrupt generation control|-| 3| x| *1 Upper rom area disable
*0 Upper rom area enable
 
|-
| 2|| x|| *1 Lower rom area disable
*0 Lower rom area enable
 
|-
| 1|| x|| rowspan="2" | Mode slection|-|0||x
|-
| 0
| x
|}
== Programming the Gate Array - Examples ==
Defining the colours, <br>Setting pen 0 to Bright White.  <pre>LD BC,7F00&nbsp;;Gate Array portLD A,%00000000+0&nbsp;;Pen number (and Gate Array function)OUT (C),A&nbsp;;Send pen numberLD A,%01000000+11&nbsp;;Pen colour (and Gate Array function)OUT (C),A&nbsp;;Send it
RET
Mode 2, upper and lower rom disabled.
LD BC,7F00&nbsp;;Gate array portLD A,%10000000+%00001110&nbsp;;Mode and rom selection (and Gate Array function)OUT (C),A&nbsp;;Send it
RET
</pre>  ==== Conversion chart ====
The hardware colour number is different to the colour range used by the firmware, so a conversion chart is provided for the corresponding firmware/hardware colour values and the corresponding colour name.
===== Note =====
The firmware keeps track of the colours it is using. Every VSYNC (assuming interrupts are enabled) the firmware sets the colours. This enables the user to have flashing colours. If the user selects a new colour using the gate array, the new colour will flash temporarily and then return to it's original colour. This is due to the firmware re- setting the colour. When using the firmware, use it's routines to select the colour, and the colour will remain.
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Firmware Colour Number''||''Colour Name''||''Hardware Number''||''Quick reference colour value''||''Color''
|-
| ''Firmware Colour Number''0| ''Colour Name''| ''Hardware Number''Black| ''Quick reference colour value''| ''Color''20||&54||bgcolor="#000000"|
|-
| 01| Black| 20Blue||4|| &amp;5444|| bgcolor="#000000000080" |
|-
| 12| |Bright Blue| 4|21|| &amp;4455|| bgcolor="#0000800000FF" |
|-
| 23| Bright Blue| 21Red||28|| &amp;555C|| bgcolor="#0000ff800000" |
|-
| 34| Red| 28Magenta||24|| &amp;5C58|| bgcolor="#800000800080" |
|-
| 45| Magenta| 24Mauve|| 29|| &amp;585D|| bgcolor="#8000808000FF" |
|-
| 56| Mauve| 29Bright Red||12|| &amp;5D4C|| bgcolor="#8000ffFF0000" |
|-
| 67| Bright Red| 12Purple|| 5|| &amp;4C45|| bgcolor="#ff0000FF0080" |
|-
| 78| Purple| 5Bright Magenta||13|| &amp;454D|| bgcolor="#ff0080FF00FF" |
|-
| 89| Bright Magenta| 13Green||22|| &amp;4D56|| bgcolor="#ff00ff008000" |
|-
| 910| Green| 22Cyan||6|| &amp;5646|| bgcolor="#008000008080" |
|-
| 1011| Cyan| 6Sky Blue||23|| &amp;4657|| bgcolor="#0080800080FF" |
|-
| 1112| Sky Blue| 23Yellow||30|| &amp;575E|| bgcolor="#0080ff808000" |
|-
| 1213| Yellow| 30White||0|| &amp;5E40|| bgcolor="#808000808080" |
|-
| 1314| White| 0Pastel Blue||31|| &amp;405F|| bgcolor="#8080808080FF" |
|-
| 1415| Pastel Blue| 31Orange||14|| &amp;5F4E|| bgcolor="#8080ffFF8000" |
|-
| 1516| Orange| 14Pink||7|| &amp;4E47|| bgcolor="#ff8000FF8080" |
|-
| 1617| Pink| 7Pastel Magenta||15|| &amp;474F|| bgcolor="#ff8080FF80FF" |
|-
| 1718| Pastel Magenta| 15Bright Green||18|| &amp;4F52|| bgcolor="#ff80ff00FF00" |
|-
| 1819| Bright |Sea Green| 18| &amp;522| bgcolor|&42bgcolor="#00ff0000FF80" |
|-
|20||Bright Cyan|| 19| Sea Green| 2&53||bgcolor="#00FFFF"|
|-
| 2021| Bright Cyan| 19Lime||26|| &amp;535A|| bgcolor="#00ffff80FF00" |
|-
| 2122| Lime| 26Pastel Green||25|| &amp;5A59|| bgcolor="#80ff0080FF80" |
|-
| 2223|| Pastel GreenCyan||27| 25| &amp;595B|| bgcolor="#80ff8080FFFF" |
|-
| 2324| Pastel Cyan| 27Bright Yellow||10|| &amp;5B4A|| bgcolor="#80ffffFFFF80" |
|-
| 2425| Bright |Pastel Yellow| 10|3|| &amp;4A43|| bgcolor="#ffff80FFFF80" |
|-
| 2526| Pastel Yellow| 3Bright White||11|| &amp;434B|| bgcolor="#ffff80FFFFFF" |
|-
| 26
| Bright White
| 11
| &amp;4B
| bgcolor="#ffffff" |
|}
This chart also gives a quick reference guide for programming the colours. The number is the colour number which can be sent directly, once the pen has been selected, to get the colour wanted.
Example:  <pre>ld bc,7f00+1&nbsp;;Gate array function (set pen)
;and pen number
out (c),c
ld bc,7f00&nbsp;;41
;Gate array function (set colour)
;and colour number
out (c),c
ret
</pre>  ==== Pallette R,G,B definitions ====
There are 27 colours which are generated from red, green and blue mixed in different quantities. There are 3 levels of red, 3 levels of green and 3 levels of blue, and these can be thought of as off/no colour, half-on/half-colour, and on/full-colour.
To display a CPC image you will need to use a analogue monitor with a composite sync.
This table shows the relationship between hardware colour number, colour name and RGB mixing.
<br>
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Hardware Colour Index''||''Colour Name''||''R %''||''G %''||''B %''||''Color''
|-
| ''Hardware Colour Index''0| ''Colour Name''| ''R&nbsp;%''White| ''G&nbsp;%''| ''B&nbsp;%''align="right"|50||align="right"|50||align="right"|50||bgcolor="#808080"| ''Color''
|-
| 01|| White|| align="right" | 50|| align="right" | 50|| align="right" | 50|| bgcolor="#808080" |
|-
| 12||Sea Green| White| align="right" | 500|| align="right" | 50100|| align="right" | 50|| bgcolor="#80808000FF80" |
|-
| 23||Pastel Yellow| Sea Green| align="right" | 0100|| align="right" | 100|| align="right" | 50|| bgcolor="#00ff80FFFF80" |
|-
| 34||Blue| Pastel Yellow| align="right" | 1000|| align="right" | 1000|| align="right" | 50|| bgcolor="#ffff80000080" |
|-
| 45||Purple| Blue| align="right" | 0100|| align="right" | 0|| align="right" | 50|| bgcolor="#000080FF0080" |
|-
| 56||Cyan| Purple| align="right" | 1000|| align="right" | 050|| align="right" | 50|| bgcolor="#ff0080008080" |
|-
| 67||Pink| Cyan| align="right" | 0100|| align="right" | 50|| align="right" | 50|| bgcolor="#008080FF8080" |
|-
| 78||Purple| Pink| align="right" | 100|| align="right" | 500|| align="right" | 50|| bgcolor="#ff8080FF0080" |
|-
| 89||Pastel Yellow| Purple| align="right" | 100|| align="right" | 0100|| align="right" | 50|| bgcolor="#ff0080FFFF80" |
|-
| 910| Pastel |Bright Yellow|| align="right" | 100|| align="right" | 100|| align="right" | 500|| bgcolor="#ffff80FFFF00" |
|-
| 1011|| Bright YellowWhite|| align="right" | 100|| align="right" | 100|| align="right" | 0100|| bgcolor="#ffff00FFFFFF" |
|-
| 1112|| Bright WhiteRed|| align="right" | 100|| align="right" | 1000|| align="right" | 1000|| bgcolor="#ffffffFF0000" |
|-
| 1213|| Bright RedMagenta|| align="right" | 100|| align="right" | 0|| align="right" | 0100|| bgcolor="#ff0000FF00FF" |
|-
| 1314||Orange| Bright Magenta| align="right" | 100|| align="right" | 050|| align="right" | 1000|| bgcolor="#ff00ffFF8000" |
|-
| 1415||Pastel Magenta| Orange| align="right" | 100|| align="right" | 50|| align="right" | 0100|| bgcolor="#ff8000FF80FF" |
|-
| 1516||Blue| Pastel Magenta| align="right" | 1000|| align="right" | 500|| align="right" | 10050|| bgcolor="#ff80ff000080" |
|-
| 1617||Sea Green| Blue| align="right" | 0|| align="right" | 0100|| align="right" | 50|| bgcolor="#00008000FF80" |
|-
| 1718| Sea |Bright Green|| align="right" | 0|| align="right" | 100|| align="right" | 500|| bgcolor="#00ff8000FF00" |
|-
| 1819|| Bright GreenCyan|| align="right" | 0|| align="right" | 100|| align="right" | 0100|| bgcolor="#00ff0000FFFF" |
|-
| 1920||Black| Bright Cyan| align="right" | 0|| align="right" | 1000|| align="right" | 1000|| bgcolor="#00ffff000000" |
|-
| 2021||Bright Blue| Black| align="right" | 0|| align="right" | 0|| align="right" | 0100|| bgcolor="#0000000000FF" |
|-
| 2122||Green| Bright Blue| align="right" | 0|| align="right" | 050|| align="right" | 1000|| bgcolor="#0000ff008000" |
|-
| 2223||Sky Blue| Green| align="right" | 0|| align="right" | 50|| align="right" | 0100|| bgcolor="#0080000080FF" |
|-
| 2324||Magenta| Sky Blue| align="right" | 050|| align="right" | 500|| align="right" | 10050|| bgcolor="#0080ff800080" |
|-
| 2425||Pastel Green| Magenta| align="right" | 50|| align="right" | 0100|| align="right" | 50|| bgcolor="#80008080FF80" |
|-
| 2526||Lime| Pastel Green| align="right" | 50|| align="right" | 100|| align="right" | 500|| bgcolor="#80ff8080FF00" |
|-
| 2627||Pastel Cyan| Lime| align="right" | 50|| align="right" | 100|| align="right" | 0100|| bgcolor="#80ff0080FFFF" |
|-
| 2728||Red| Pastel Cyan| align="right" | 50|| align="right" | 1000|| align="right" | 1000|| bgcolor="#80ffff800000" |
|-
| 2829||Mauve| Red| align="right" | 50|| align="right" | 0|| align="right" | 0100|| bgcolor="#8000008000FF" |
|-
| 2930||Yellow| Mauve| align="right" | 50|| align="right" | 050|| align="right" | 1000|| bgcolor="#8000ff808000" |
|-
| 3031||Pastel Blue| Yellow| align="right" | 50|| align="right" | 50|| align="right" | 0100|| bgcolor="#8080008080FF" |
|-
| 31
| Pastel Blue
| align="right" | 50
| align="right" | 50
| align="right" | 100
| bgcolor="#8080ff" |
|}
==== RGB assignments for the software colours ====
This is simply a sidenote to illustrate a pattern in the RGB assignments of the software colours and to show how their value is calculated.
{|{{Prettytable|width: 700px; font-size: 2em;}}|''Firmware Colour Number''||''Colour Name''||''R %''||''G %''||''B %''||''Color''
|-
| ''Firmware Colour Number''0| ''Colour Name''| ''R&nbsp;%''Black| ''G&nbsp;%''| ''B&nbsp;%''0||0||0||bgcolor="#000000"| ''Color''
|-
| 01| Black| 0Blue|| 0|| 0||50|| bgcolor="#000000000080" |
|-
| 12| |Bright Blue|| 0|| 0| 50|100|| bgcolor="#0000800000FF" |
|-
| 23||Red||50| Bright Blue| 0|| 0| 100| bgcolor="#0000ff800000" |
|-
| 34||Magenta| Red| 50| 0| 0||50|| bgcolor="#800000800080" |
|-
| 45||Mauve| Magenta| 50|| 0| 50|100|| bgcolor="#8000808000FF" |
|-
| 56| Mauve| 50Bright Red| 0| 100||0||0|| bgcolor="#8000ffFF0000" |
|-
| 67||Purple| Bright Red| 100| 0| 0||50|| bgcolor="#ff0000FF0080" |
|-
| 78||Bright Magenta| Purple| 100|| 0| 50|100|| bgcolor="#ff0080FF00FF" |
|-
| 89| Bright Magenta| 100Green||0||50|| 0| 100| bgcolor="#ff00ff008000" |
|-
| 910||Cyan| Green| 0||50|| 50| 0| bgcolor="#008000008080" |
|-
| 1011||Sky Blue| Cyan| 0| 50| 50||100|| bgcolor="#0080800080FF" |
|-
| 1112| Sky Blue| 0Yellow|| 50| 100|50||0|| bgcolor="#0080ff808000" |
|-
| 1213||White| Yellow| 50||50|| 50| 0| bgcolor="#808000808080" |
|-
| 1314| White| 50Pastel Blue|| 50|| 50||100|| bgcolor="#8080808080FF" |
|-
| 1415| Pastel Blue| 50Orange| 50| 100||50||0|| bgcolor="#8080ffFF8000" |
|-
| 1516||Pink| Orange| 100||50|| 50| 0| bgcolor="#ff8000FF8080" |
|-
| 1617||Pastel Magenta| Pink| 100| 50| 50||100|| bgcolor="#ff8080FF80FF" |
|-
| 1718| Pastel Magenta| 100Bright Green||0| 50| 100||0|| bgcolor="#ff80ff00FF00" |
|-
| 1819| Bright |Sea Green|| 0|| 100| 0|50|| bgcolor="#00ff0000FF80" |
|-
| 1920||Bright Cyan| Sea Green| 0||100|| 100| 50| bgcolor="#00ff8000FFFF" |
|-
| 2021| Bright Cyan| 0Lime||50| 100| 100||0|| bgcolor="#00ffff80FF00" |
|-
| 2122||Pastel Green| Lime| 50|| 100| 0|50|| bgcolor="#80ff0080FF80" |
|-
| 2223|| Pastel GreenCyan|| 50||100|| 100| 50| bgcolor="#80ff8080FFFF" |
|-
| 2324| Pastel Cyan| 50Bright Yellow|| 100|| 100||0|| bgcolor="#80ffffFFFF00" |
|-
| 2425| Bright |Pastel Yellow|| 100|| 100| 0|50|| bgcolor="#ffff00FFFF80" |
|-
| 2526||Bright White| Pastel Yellow| 100||100|| 100| 50| bgcolor="#ffff80FFFFFF" |
|-
| 26
| Bright White
| 100
| 100
| 100
| bgcolor="#ffffff" |
|}
===== To calculate the colour value =====
'''Red'''
0% =&gt; do not add anything
50% =&gt; add 3
100% =&gt; add 6
'''Green'''
0% =&gt; do not add anything
50% =&gt; add 9
100% =&gt; add 18
'''Blue'''
0% =&gt; do not add anything
50% =&gt; add 1
100% =&gt; add 2
Green Screen Colours
On a green screen (where all colours are shades of green), the colours (in the software/firmware colours), are in order of increasing intensity. So that black is very dark, and white is bright green, and colour 13 is a medium green. (Thanks to [[Mark Rison|Mark Rison]] for this information)
[[Category:Hardware]]
7
edits