/****************************************************************************


OnAirTly.rc

produced by Borland Resource Workshop


*****************************************************************************/

#define Tally_Status	1
#define Revertive_Process	1000
#define Init_Revert	28000
#define Buttons	100
#define View_Tables	2
#define PanelAuthor	32703
#define PanelDate	32702
#define PanelVersion	32701
#define PanelName	32700
#define DatabaseUpdate	32000
#define Sleep	31500
#define Closedown	31000
#define Wakeup	30500
#define Startup	30000
#define Load_Driver_IDs 29000


STRINGTABLE 
{
 Startup, "EI AppleCore Panel Initialisation"
 30001, "EC 2"
 30002, "EB 1 680 535"
 30003, "PI 1 :PI 2 :PS 1"
 30004, "EI"
 30005, "EI Read global driver data values from file into memory"
 30006, "JS 29000"
 30007, "EI Load common colour strings into variables"
 30008, "TL '/0F0F' u$ :TL '/9090' v$ :TL '/DFDF' w$ :TL '/4B4B' x$ :TL '/EBEB' y$ :TL '/7070' z$"
 30009, "EI Show CCU allocation colour indications"
 30010, "TP z$ 1 71 :TP x$ 1 72 :TP w$ 1 73 :TP y$ 1 74"
 30011, "EI Load registers with commonly used driver IDs"
 30012, "MG 176 t% :EI UMD driver ID"
 30013, "MG 170 u% :EI Studio C SDI driver"
 30014, "MG 30 v% :EI CTA SDI driver"
 30015, "MG 175 w% :EI Studio C GPI driver"
 30016, "MG 177 x% :EI Studio C Kahuna On-Air driver"
 30017, "MG 50 y% :EI CTA GPI driver 1 - camera on-air main tallies"
 30018, "MG 160 z% :EI CTA Tally Infodriver"
 30019, "EI"
 30020, "EI Create Fixed lookup table B (LUT B) CTA to StC circuit mapping in memories 501 to 628"
 30021, "MS 0 501 628 :MP 128 500"
 30022, "MP 111 501 :MP 112 502 :MP 113 503 :MP 114 504 :MP 109 505 :MP 110 506"
 30023, "MP 115 531 :MP 116 532 :MP 117 533 :MP 118 534"
 30024, "MP 119 535 :MP 120 536 :MP 121 537 :MP 122 538"
 30025, "EI"
 30026, "EI Build the destination category table for router change processing"
 30027, "MS 0 2200 2328 :EI Set all entries to Not Us"
 30028, "MS 2 2201 2224 :EI Mixer Input"
 30029, "MS 1 2227 2274 :EI Multiviewer inputs"
 30030, "MS 4 2311 2316 :EI JF Spare Outputs"
 30031, "MP 3 2319 :MP 3 2320 :MP 3 2322 :MP 3 2323  :EI Chain 1 and 2 bgnd and fill destinations"
 30032, "EI"
 30033, "EI Create Fixed lookup table CTA source to CCU (LUT D) in memories 901 to 1028"
 30034, "MS 0 901 1028 :MP 128 900"
 30035, "MP 1 913 :MP 2 914 :MP 3 915 :MP 4 916 :EI CCU 1 to 4"
 30036, "MP 5 962 :MP 6 963 :MP 7 964 :MP 8 965 :MP 9 966 :MP 10 967 :EI CCU 5 to 10"
 30037, "EI"
 30038, "EI Before this panel can output tally data, it needs lots of data from matricies and drivers."
 30039, "EI The startup revertive processing and the running revertive processing differ. "
 30040, "EI counters and accumulators are used to check all revertive data is received before tally processing starts"
 30041, "EI"
 30042, "RR u% 1 128 28002 0 a% :MP 128 1400 :EI Studio C Router  128 revertives expected"
 30043, "RR v% 109 122 28011 0 b% :MP 14 1600 :EI CTA router - Studio C destinations only 14 revertives expected"
 30044, "IR x% 1 40 28031 0 d% :MP 40 1810 :EI Kahuna on-air state"
 30045, "GR y% 17 26 28041 0 e% :MP 10 1860 :EI Camera -on-air state lights"
 30046, "IR z% 11 20 28051 0 f% :IR z% 181 192 28051 0 f% 'ADD' :MP 22 1900 :EI Tally Infodriver"
 30047, "EI"
 30048, "EI Poll initial values"
 30049, "RP u% 1 128 :EI Poll Studio C SDI state"
 30050, "RP v% 109 122 :EI Poll CTA SDI routes to Studio C"
 30051, "IP x% 1 40 :EI Poll Kahuna on-air states"
 30052, "GP y% 17 26 :EI Poll CTA CCU on-air"
 30053, "IP z% 11 20 :IP z% 181 192 :EI poll tally infodriver"
 30054, "EI"
 30055, "EI Start Timer that checks for all revertives found, initilalise flashing indicator"
 30056, "TP '/9090' 1 90"
 30057, "NL 0 n% :ET 1 1000 28080 28081"
 30058, "--"
 30059, "--"
 30060, "--"
 30061, "--"
}

STRINGTABLE 
{
 Load_Driver_IDs, "EI Load commonly used Driver ID's into numeric memory"
 29001, "EI Read in the driver data from wnglobal.ini"
 29002, "TL 'c;/bncs/ws_ini/wnglobal.ini' F$"
 29003, "EF 'Matrix' 'CAR_package_names' A% 0 F$ :MP A% 1 :NT A% q%"
 29004, "EF 'Matrix' 'CAR_package_xpoints' A% 0 F$ :MP A% 2"
 29005, "EF 'Matrix' 'CAR_SDI_video' A% 0 F$ :MP A% 3"
 29006, "EF 'Matrix' 'CAR__Main_Audio' A% 0 F$ :MP A% 4"
 29007, "EF 'Matrix' 'B4_package_names' A% 0 F$ :MP A% 10"
 29008, "EF 'Matrix' 'B4_package_xpoints' A% 0 F$ :MP A% 11"
 29009, "EF 'Matrix' 'B4_SDI_video' A% 0 F$ :MP A% 12"
 29010, "EF 'Matrix' 'B4_Main_Audio' A% 0 F$ :MP A% 13"
 29011, "EF 'Matrix' 'AVON_package_names' A% 0 F$ :MP A% 20"
 29012, "EF 'Matrix' 'AVON_package_xpoints' A% 0 F$ :MP A% 21"
 29013, "EF 'Matrix' 'AVON_SDI_video' A% 0 F$ :MP A% 22"
 29014, "EF 'Matrix' 'AVON_Main_Audio' A% 0 F$ :MP A% 23"
 29015, "EF 'Matrix' 'CTA_SDI_video' A% 0 F$ :MP A% 30"
 29016, "EF 'Matrix' 'CTA_Main_Audio' A% 0 F$ :MP A% 31"
 29017, "EF 'Matrix' 'CTA_CamStatus' A% 0 F$ :MP A% 32"
 29018, "EF 'Matrix' 'CTA_Timecode' A% 0 F$ :MP A% 33"
 29019, "EF 'Matrix' 'CTA_audio_rtr2' A% 0 F$ :MP A% 34"
 29020, "EF 'Drivers' 'CTA_BNCS_Combiner' A% 0 F$ :MP A% 35"
 29021, "EF 'Drivers' 'CTA_Source_Infodriver' A% 0 F$ :MP A% 36"
 29022, "EF 'Drivers' 'CTA_Dest_Infodriver' A% 0 F$ :MP A% 37"
 29023, "EF 'Drivers' 'CTA_Level_Infodriver' A% 0 F$ :MP A% 38"
 29024, "EF 'Matrix' 'StA_PAL' A% 0 F$ :MP A% 40"
 29025, "EF 'Drivers' 'CTA_GPI_Driver01' A% 0 F$ :MP A% 50"
 29026, "EF 'Drivers' 'CTA_GPI_Driver02' A% 0 F$ :MP A% 51"
 29027, "EF 'Drivers' 'CTA_GPI_Driver03' A% 0 F$ :MP A% 52"
 29028, "EF 'Drivers' 'CTA_GPI_Driver04' A% 0 F$ :MP A% 53"
 29029, "EF 'Drivers' 'SonyMixerTally' A% 0 F$ :MP A% 100"
 29030, "EF 'Drivers' 'SonyMixerAux' A% 0 F$ :MP A% 101"
 29031, "EF 'Drivers' 'SonyMixerNames' A% 0 F$ :MP A% 102"
 29032, "EF 'Drivers' 'AxonARC_01' A% 0 F$ :MP A% 105"
 29033, "EF 'Drivers' 'AxonARC_02' A% 0 F$ :MP A% 106"
 29034, "EF 'Drivers' 'CTA_VT01' A% 0 F$ :MP A% 110"
 29035, "EF 'Drivers' 'CTA_VT02' A% 0 F$ :MP A% 111"
 29036, "EF 'Drivers' 'CTA_VT03' A% 0 F$ :MP A% 112"
 29037, "EF 'Drivers' 'CTA_VT04' A% 0 F$ :MP A% 113"
 29038, "EF 'Drivers' 'CTA_VT05' A% 0 F$ :MP A% 114"
 29039, "EF 'Drivers' 'CTA_VT06' A% 0 F$ :MP A% 115"
 29040, "EF 'Drivers' 'CTA_Profile01' A% 0 F$ :MP A% 120"
 29041, "EF 'Drivers' 'CTA_Profile02' A% 0 F$ :MP A% 121"
 29042, "EF 'Drivers' 'CTA_Profile03' A% 0 F$ :MP A% 122"
 29043, "EF 'Drivers' 'CTA_Profile04' A% 0 F$ :MP A% 123"
 29044, "EF 'Drivers' 'CTA_Profile_Rec' A% 0 F$ :MP A% 124"
 29045, "EF 'Drivers' 'CTA_AirSpeed01' A% 0 F$ :MP A% 130"
 29046, "EF 'Drivers' 'CTA_AirSpeed02' A% 0 F$ :MP A% 131"
 29047, "EF 'Drivers' 'CTA_AirSpeed03' A% 0 F$ :MP A% 132"
 29048, "EF 'Drivers' 'CTA_AirSpeed04' A% 0 F$ :MP A% 133"
 29049, "EF 'Drivers' 'Edit6_Stills01' A% 0 F$ :MP A% 140"
 29050, "EF 'Drivers' 'StudioBarcoQuadSpl' A% 0 F$ :MP A% 150"
 29051, "EF 'Drivers' 'HamletDigiscope' A% 0 F$ :MP A% 151"
 29052, "EF 'Drivers' 'StA_Tally_Infodriver' A% 0 F$ :MP A% 160"
 29053, "EF 'Drivers' 'StA_System_Infodriver' A% 0 F$ :MP A% 161"
 29054, "EF 'Drivers' 'StC_SDI_Driver' A% 0 F$ :MP A% 170"
 29055, "EF 'Drivers' 'StC_An_Audio_Driver' A% 0 F$ :MP A% 172"
 29056, "EF 'Drivers' 'StC_Dig_Audio_Driver' A% 0 F$ :MP A% 173"
 29057, "EF 'Drivers' 'StC_GPI_Driver' A% 0 F$ :MP A% 175"
 29058, "EF 'Drivers' 'StC_TSL_Infodriver' A% 0 F$ :MP A% 176"
 29059, "EF 'Drivers' 'StC_Sony_OnAir_Driver' A% 0 F$ :MP A% 177"
 29060, "JR"
 29061, "--"
 29062, "--"
 29063, "--"
 29064, "--"
 29065, "--"
}



STRINGTABLE 
{
 PanelName, "WN StC Kahuna On-Air Tally Automatic"
 PanelVersion, "1.0"
 PanelDate, "31st July 2013"
 PanelAuthor, "Andy Woodhouse"
}

STRINGTABLE 
{
 Sleep, "EI"
}

STRINGTABLE 
{
 Closedown, "EI Tidy up on task exit"
 31001, "ET 1 0 0 0"
 31002, "RU u%"
 31003, "RU v%"
 31004, "EI GU w% - was used by Sony mixer, not used by Kahuna"
 31005, "IU x%"
 31006, "GU y%"
 31007, "IU z%"
}


STRINGTABLE 
{
 Wakeup, "EI Actions when obtain focus"
}



Tally_Status DIALOG 0, 0, 340, 260
STYLE DS_ABSALIGN | WS_CHILD
CLASS "BorDlg_Gray"
FONT 10, "System"
{
 CONTROL "01$Arial Bold,10$0", 01, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 28, 46, 12, 12
 CONTROL "02$Arial Bold,10$0", 2, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 46, 46, 12, 12
 CONTROL "03$Arial Bold,10$0", 3, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 64, 46, 12, 12
 CONTROL "04$Arial Bold,10$0", 4, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 82, 46, 12, 12
 CONTROL "05$Arial Bold,10$0", 5, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 100, 46, 12, 12
 CONTROL "06$Arial Bold,10$0", 6, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 118, 46, 12, 12
 CONTROL "07$Arial Bold,10$0", 7, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 136, 46, 12, 12
 CONTROL "08$Arial Bold,10$0", 8, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 154, 46, 12, 12
 CONTROL "09$Arial Bold,10$0", 9, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 172, 46, 12, 12
 CONTROL "10$Arial Bold,10$0", 10, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 190, 46, 12, 12
 CONTROL "11$Arial Bold,10$0", 11, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 208, 46, 12, 12
 CONTROL "12$Arial Bold,10$0", 12, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 226, 46, 12, 12
 CONTROL "13$Arial Bold,10$0", 13, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 244, 46, 12, 12
 CONTROL "14$Arial Bold,10$0", 14, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 262, 46, 12, 12
 CONTROL "15$Arial Bold,10$0", 15, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 280, 46, 12, 12
 CONTROL "16$Arial Bold,10$0", 16, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 298, 46, 12, 12
 CONTROL "17$Arial Bold,10$0", 17, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 28, 64, 12, 12
 CONTROL "18$Arial Bold,10$0", 18, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 46, 64, 12, 12
 CONTROL "19$Arial Bold,10$0", 19, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 64, 64, 12, 12
 CONTROL "20$Arial Bold,10$0", 20, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 82, 64, 12, 12
 CONTROL "21$Arial Bold,10$0", 21, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 100, 64, 12, 12
 CONTROL "22$Arial Bold,10$0", 22, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 118, 64, 12, 12
 CONTROL "23$Arial Bold,10$0", 23, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 136, 64, 12, 12
 CONTROL "24$Arial Bold,10$0", 24, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 154, 64, 12, 12
 CONTROL "25$Arial Bold,10$0", 25, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 172, 64, 12, 12
 CONTROL "26$Arial Bold,10$0", 26, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 190, 64, 12, 12
 CONTROL "27$Arial Bold,10$0", 27, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 208, 64, 12, 12
 CONTROL "28$Arial Bold,10$0", 28, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 226, 64, 12, 12
 CONTROL "29$Arial Bold,10$0", 29, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 244, 64, 12, 12
 CONTROL "30$Arial Bold,10$0", 30, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 262, 64, 12, 12
 CONTROL "31$Arial Bold,10$0", 31, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 280, 64, 12, 12
 CONTROL "32$Arial Bold,10$0", 32, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 298, 64, 12, 12
 CONTROL "33$Arial Bold,10$0", 33, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 28, 82, 12, 12
 CONTROL "Examine Tables$Arial Bold,12$1", 101, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 249, 233, 80, 16
 CONTROL "34$Arial Bold,10$0", 34, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 46, 82, 12, 12
 CONTROL "35$Arial Bold,10$0", 35, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 64, 82, 12, 12
 CONTROL "36$Arial Bold,10$0", 36, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 82, 82, 12, 12
 CONTROL "37$Arial Bold,10$0", 37, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 100, 82, 12, 12
 CONTROL "38$Arial Bold,10$0", 38, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 118, 82, 12, 12
 CONTROL "39$Arial Bold,10$0", 39, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 136, 82, 12, 12
 CONTROL "40$Arial Bold,10$0", 40, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 154, 82, 12, 12
 CONTROL "41$Arial Bold,10$0", 41, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 172, 82, 12, 12
 CONTROL "42$Arial Bold,10$0", 42, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 190, 82, 12, 12
 CONTROL "43$Arial Bold,10$0", 43, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 208, 82, 12, 12
 CONTROL "44$Arial Bold,10$0", 44, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 226, 82, 12, 12
 CONTROL "45$Arial Bold,10$0", 45, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 244, 82, 12, 12
 CONTROL "46$Arial Bold,10$0", 46, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 262, 82, 12, 12
 CONTROL "47$Arial Bold,10$0", 47, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 280, 82, 12, 12
 CONTROL "48$Arial Bold,10$0", 48, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 298, 82, 12, 12
 CONTROL "1$Arial Bold,12$0", 51, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 48, 132, 14, 14
 CONTROL "2$Arial Bold,12$0", 52, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 72, 132, 14, 14
 CONTROL "3$Arial Bold,12$0", 53, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 96, 132, 14, 14
 CONTROL "4$Arial Bold,12$0", 54, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 120, 132, 14, 14
 CONTROL "5$Arial Bold,12$0", 55, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 144, 132, 14, 14
 CONTROL "6$Arial Bold,12$0", 56, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 168, 132, 14, 14
 CONTROL "7$Arial Bold,12$0", 57, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 192, 132, 14, 14
 CONTROL "8$Arial Bold,12$0", 58, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 216, 132, 14, 14
 CONTROL "9$Arial Bold,12$0", 59, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 240, 132, 14, 14
 CONTROL "10$Arial Bold,12$0", 60, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 264, 132, 14, 14
 CONTROL "Studio C On-Air Tally Automatic - Kahuna Mixer$Arial Bold,14$0", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 47, 5, 246, 16
 CONTROL "UMD On-Air Tallies$Arial Bold,10$0", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 126, 32, 85, 11
 CONTROL "CCU On-Air Tallies$Arial Bold,10$0", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 121, 115, 85, 11
 CONTROL "Control Allocation$Arial Bold,10$0", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 137, 161, 65, 10
 CONTROL "Studio A Mixer 1$Arial Bold,10$4", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 75, 197, 60, 10
 CONTROL "Button flashes during initial revertive collection$Arial Bold,10$8", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 34, 236, 160, 10
 CONTROL "Studio A Mixer 2$Arial Bold,10$4", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 172, 197, 60, 10
 CONTROL "Studio C Mixer$Arial Bold,10$4", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 173, 176, 60, 10
 CONTROL "Unallocated$Arial Bold,10$4", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 75, 176, 60, 10
 CONTROL "Label$-1", 61, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 44, 128, 22, 22
 CONTROL "Label$-1", 62, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 68, 128, 22, 22
 CONTROL "Label$-1", 63, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 92, 128, 22, 22
 CONTROL "Label$-1", 64, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 116, 128, 22, 22
 CONTROL "Label$-1", 65, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 140, 128, 22, 22
 CONTROL "Label$-1", 66, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 164, 128, 22, 22
 CONTROL "Label$-1", 67, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 188, 128, 22, 22
 CONTROL "Label$-1", 68, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 212, 128, 22, 22
 CONTROL "Label$-1", 69, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 236, 128, 22, 22
 CONTROL "Label$-1", 70, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 260, 128, 22, 22
 CONTROL "Label$-1", 72, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 137, 195, 14, 14
 CONTROL "Label$-1", 73, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 235, 195, 14, 14
 CONTROL "Label$-1", 74, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 235, 174, 14, 14
 CONTROL "Label$-1", 71, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 137, 174, 14, 14
 CONTROL "Label$-1", -1, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 20, 30, 300, 72
 CONTROL "Label$-1", -1, "BBC_CC11_Button", 130 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 45, 158, 236, 56
 CONTROL "Label$-1", -1, "BBC_CC11_Button", 2 | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS, 40, 111, 246, 108
 CONTROL " $Arial Bold,10$0", 90, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 20, 235, 12, 12
}





APPLCORE ICON 
{
 '00 00 01 00 01 00 20 20 10 00 00 00 00 00 E8 02'
 '00 00 16 00 00 00 28 00 00 00 20 00 00 00 40 00'
 '00 00 01 00 04 00 00 00 00 00 80 02 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 80 00 00 80 00 00 00 80 80 00 80 00'
 '00 00 80 00 80 00 80 80 00 00 80 80 80 00 C0 C0'
 'C0 00 00 00 FF 00 00 FF 00 00 00 FF FF 00 FF 00'
 '00 00 FF 00 FF 00 FF FF 00 00 FF FF FF 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 07 77 77 77 77 77 77 00 00 00 00 00 00 00'
 '00 00 77 7F FF FF FF FF 77 70 00 00 00 00 00 00'
 '00 00 77 FF FF FF FF FF F7 70 00 00 00 00 00 00'
 '00 00 77 FF 00 00 00 0F F7 70 00 00 00 00 00 00'
 '00 00 77 FF 00 00 00 0F F7 70 00 00 00 00 00 00'
 '00 00 77 FF 00 00 00 0F F7 70 00 00 00 00 00 00'
 '00 00 77 FF 00 00 00 0F F7 70 00 00 00 00 00 00'
 '00 00 77 FF FF FF FF FF F7 70 00 00 00 00 00 00'
 '00 00 77 7F FF FF FF FF 77 70 00 00 00 00 00 00'
 '00 00 77 77 77 77 77 77 77 70 00 00 00 00 00 00'
 '00 00 07 77 99 99 99 97 77 00 00 00 00 00 00 00'
 '00 00 00 77 99 99 99 97 70 00 00 00 00 00 00 00'
 '00 00 00 00 99 99 99 90 00 00 00 00 00 00 00 00'
 '00 00 00 00 99 99 99 90 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 99'
 '99 00 00 00 00 00 00 00 00 00 00 99 99 00 00 99'
 '99 00 00 00 00 00 00 00 00 00 00 99 99 00 00 99'
 '99 00 00 AA AA A0 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 AA 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 00 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 00 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 00 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 00 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 00 00 0A A0 00 00 99 99 00 00 99'
 '99 00 0A A0 00 AA 0A AA A0 00 00 99 99 00 00 99'
 '99 00 00 AA AA A0 00 0A A0 00 00 99 99 00 00 99'
 '99 00 00 00 00 00 00 00 00 00 00 99 99 00 00 99'
 '99 00 00 00 00 00 00 00 00 00 00 99 99 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
 '00 00 00 00 00 00 00 00 00 00 00 00 00 00'
}


STRINGTABLE 
{
 DatabaseUpdate, "EI"
}


View_Tables DIALOG 0, 0, 340, 260
STYLE DS_ABSALIGN | WS_CHILD
CLASS "BorDlg_Gray"
FONT 10, "System"
{
 CONTROL "Studio C On-Air Tally Automatic - Kahuna Mixer$Arial Bold,14$0", -1, "BBC_CC09_Button", 70 | WS_CHILD | WS_VISIBLE, 47, 5, 246, 16
 CONTROL " LUT A - Studio C Matrix Crosspoints$Arial Bold,12$9", 110, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 23, 160, 16
 CONTROL " LUT B - Studio C<-CTA Mapping Lookup$Arial Bold,12$9", 111, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 43, 160, 16
 CONTROL " LUT C - CTA Matrix Crosspoints$Arial Bold,12$9", 112, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 63, 160, 16
 CONTROL " LUT D - CTA Source to CCU ID$Arial Bold,12$9", 113, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 83, 160, 16
 CONTROL " LUT E - Mixer Channel to CCU ID$Arial Bold,12$9", 114, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 103, 160, 16
 CONTROL " LUT M - Mixer Input Source IDs$Arial Bold,12$9", 115, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 123, 160, 16
 CONTROL " LUT N - Mixer On-Air Tally State$Arial Bold,12$9", 116, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 143, 160, 16
 CONTROL "CCU to Studio C Allocation flags$Arial Bold,12$9", 117, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 163, 160, 16
 CONTROL "Table ST - Source Tally$Arial Bold,12$9", 118, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 183, 160, 16
 CONTROL "UMD Addresses per source$Arial Bold,12$9", 119, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 160, 203, 160, 16
 CONTROL "View Status$Arial Bold,12$1", 102, "BBC_CC09_Button", 69 | WS_CHILD | WS_VISIBLE, 249, 233, 80, 16
 CONTROL " $Arial,12$0", 121, "BBC_CC09_Button", 6 | WS_CHILD | WS_VISIBLE, 10, 233, 140, 16
 LISTBOX 120, 10, 24, 140, 213, LBS_NOTIFY | WS_BORDER | WS_BORDER | WS_VSCROLL
}

STRINGTABLE 
{
 Buttons, "EI Button actions"
 101, "PR 1 :PS 2"
 102, "PR 2 :PS 1"
 103, "--"
 104, "--"
 105, "--"
 106, "--"
 107, "--"
 108, "--"
 109, "--"
 110, "TP 'LUT A' 2 121 :NL 301 A% :NL 128 B% :JS 125"
 111, "TP 'LUT B' 2 121 :NL 501 A% :NL 128 B% :JS 125"
 112, "TP 'LUT C' 2 121 :NL 701 A% :NL 128 B% :JS 125"
 113, "TP 'LUT D' 2 121 :NL 901 A% :NL 128 B% :JS 125"
 114, "TP 'LUT E' 2 121 :NL 1101 A% :NL 40 B% :JS 125"
 115, "TP 'LUT M' 2 121 :NL 1201 A% :NL 40 B% :JS 125"
 116, "TP 'LUT N' 2 121 :NL 1301 A% :NL 40 B% :JS 125"
 117, "TP 'CCU Allocation' 2 121 :NL 1351 A% :NL 10 B% :JS 125"
 118, "TP 'ST - Source Tally' 2 121 :NL 2001 A% :NL 128 B% :JS 125"
 119, "TP 'UMD Addr per Source' 2 121 :NL 1 A% :NL 128 B% :JS 135"
 120, "EI do not use"
 121, "EI do not use"
 122, "--"
 123, "--"
 124, "EI Subroutine at 125 displays the numeric memory contents starting at A%, length B%"
 125, "LC 2 120 :NL 1 C%"
 126, "NF C% '### - ' '0' A$"
 127, "MG A% D% :NC D% B$ :TI B$ A$"
 128, "LP A$ 2 120"
 129, "NA 1 A% A% :NA 1 C% C% :NA -1 B% B%"
 130, "JE B% 0 131 126"
 131, "JR"
 132, "--"
 133, "--"
 134, "EI 135 Displays the strings in memory locations starting at A%. Number to display= B%"
 135, "LC 2 120 :NL 1 C%"
 136, "NF C% '### - ' '0' A$"
 137, "SG A% B$ :TI B$ A$"
 138, "LP A$ 2 120"
 139, "NA 1 A% A% :NA 1 C% C% :NA -1 B% B%"
 140, "JE B% 0 141 136"
 141, "JR"
 142, "--"
 143, "--"
 144, "--"
 145, "--"
 146, "--"
 147, "--"
 148, "--"
 149, "--"
 150, "--"
}

STRINGTABLE 
{
 Init_Revert, "EI These routines handle the initial revertives at panel startup."
 28001, "EI 28002 is Studio C SDI Router - 128 destinations polled, destination variable is a%"
 28002, "JS 28005"
 28003, "--"
 28004, "EI Store current source in memory (LUT A), then store a flag to show that destination has been received"
 28005, "NA a% 300 A% :MP S% A%"
 28006, "NA a% 1400 B% :MP 1 B%"
 28007, "JR"
 28008, "--"
 28009, "--"
 28010, "EI 28011 is the CTA SDI router revertives processing. Destination variable is b%"
 28011, "JS 28014"
 28012, "--"
 28013, "EI Store current source in memory, then store a flag to show that destination has been received"
 28014, "NA b% 700 A% :MP S% A%"
 28015, "NA b% 1600 B% :MP 1 B%"
 28016, "JR"
 28017, "--"
 28018, "--"
 28019, "--"
 28020, "EI 28021 was the Studio C GPI driver for Sony DSK On-Air Tally. Not required for Kahuna"
 28021, "--"
 28022, "--"
 28023, "--"
 28024, "--"
 28025, "--"
 28026, "--"
 28027, "--"
 28028, "--"
 28029, "--"
 28030, "EI 28031 is the initial processing for the Kahuna On-Air tally driver Destination variable is d%"
 28031, "JS 28034"
 28032, "--"
 28033, "EI Set Mixer tallies (S$ = '0' or '1') into slots 1 to 40 of LUT N"
 28034, "NA d% 1300 A% :NC S$ B% :MP B% A%"
 28035, "NA d% 1810 C% :MP 1 C%"
 28036, "JR"
 28037, "--"
 28038, "--"
 28039, "--"
 28040, "EI 28041 is service routine  for CTA GPI driver - CCU Red light drives. Destination variable is e%"
 28041, "JS 28044"
 28042, "--"
 28043, "EI Mostly just need to set the panel 1 indicators."
 28044, "NA e% 34 A% :NA e% -16 C% :NA 1860 C% C% :MP 1 C%"
 28045, "JO S% 28046 28047"
 28046, "TP u$ 1 A% :JA 28048"
 28047, "TP v$ 1 A%"
 28048, "JR"
 28049, "--"
 28050, "EI 28051 is the Tally Infodriver revertives. Destination variable is f%"
 28051, "JS 28054"
 28052, "--"
 28053, "EI f% in range 11 to 20 for CCU allocation, range 181 to 196 for Matrix dest feeding mixer 25 to 40"
 28054, "JL f% 11 28055 28056"
 28055, "JR"
 28056, "JL f% 21 28057 28069 :EI True for CCU allocation data"
 28057, "NC S$ F% :JL F% 0 28055 28058 :EI only support values 0 to 3"
 28058, "JL F% 4 28059 28055"
 28059, "JO F% 28060"
 28060, "TT z$ A$ :JA 28064"
 28061, "TT x$ A$ :JA 28064"
 28062, "TT w$ A$ :JA 28064"
 28063, "TT y$ A$"
 28064, "NA -10 f% A% :NA A% 60 B% :TP A$ 1 B% :NA A% 1900 C% :MP 1 C% :NL 0 G% :JE F% 3 28065 28066"
 28065, "NL 1 G%"
 28066, "NA A% 1350 D% :MP G% D%"
 28067, "JR"
 28068, "EI Jump to 28069 for mixer inputs 25 to 40 allocations from tally infodriver"
 28069, "JL f% 181 28055 28070"
 28070, "JL f% 197 28071 28055"
 28071, "NA f% -180 E% :NA E% 1910 B% :MP 1 B% :EI that has stored revertive received flag"
 28072, "NA E% 1370 F% :NC S$ N% :MP N% F% :EI store infordriver value in 1371 to 1386"
 28073, "JR"
 28074, "--"
 28075, "--"
 28076, "--"
 28077, "--"
 28078, "--"
 28079, "EI 28080 and 28081 are the service routines for Timer1."
 28080, "TP '/1F1F' 1 90"
 28081, "TP '/9090' 1 90 :NA 1 n% n% :JS 28085"
 28082, "--"
 28083, "--"
 28084, "EI 28085 checks if all revertives have been received. If so it completes the initialisation process and resets the registration for standard processing"
 28085, "MG 1400 H% :MG 1600 I% :MG 1810 K% :MG 1860 L% :MG 1900 M% :EI extract limits"
 28086, "NL 0 h% :NL 0 i% :NL 0 k% :NL 0 l% :NL 0 m%"
 28087, "NT H% A% :NL 1401 B% :NL 0 D%"
 28088, "MG B% C%  :NA C% D% D% :NA 1 B% B% :NA -1 A% A%"
 28089, "JE 0 A% 28090 28088"
 28090, "JE H% D% 28091 28092"
 28091, "NL 1 h%"
 28092, "EI Now check CTA revertives count, Note - only 14 destinations polled, but we must add up all 128 slots so 28093 has a fixed entry value"
 28093, "NL 128 A% :NL 1601 B% :NL 0 D%"
 28094, "MG B% C%  :NA C% D% D% :NA 1 B% B% :NA -1 A% A%"
 28095, "JE A% 0 28096 28094"
 28096, "JE I% D% 28097 28098"
 28097, "NL 1 i%"
 28098, "EI Check Studio C GPI revertive count no longer needed. Hence this block of EI lines"
 28099, "EI"
 28100, "EI"
 28101, "EI"
 28102, "EI"
 28103, "EI"
 28104, "EI Check Kahuna On-Air Tally revertive count"
 28105, "NT K% A% :NL 1811 B% :NL 0 D%"
 28106, "MG B% C% :NA C% D% D% :NA 1 B% B% :NA -1 A% A%"
 28107, "JE A% 0 28108 28106"
 28108, "JE K% D% 28109 28110"
 28109, "NL 1 k%"
 28110, "EI Check CTA GPI driver revertive count"
 28111, "NT L% A% :NL 1861 B% :NL 0 D%"
 28112, "MG B% C% :NA C% D% D% :NA 1 B% B% :NA -1 A% A%"
 28113, "JE A% 0 28114 28112"
 28114, "JE L% D% 28115 28116"
 28115, "NL 1 l%"
 28116, "EI Check Tally Infodriver returns"
 28117, "NT M% A% :NL 1901 B% :NL 0 D%"
 28118, "MG B% C% :NA C% D% D% :NA 1 B% B% :NA -1 A% A%"
 28119, "JE A% 0 28120 28118"
 28120, "JE M% D% 28121 28122"
 28121, "NL 1 m%"
 28122, "EI Do we have 5 matches - if so revertives all received. Complete processing"
 28123, "NT h% G% :NA i% G% G% :NA k% G% G% :NA l% G% G% :NA m% G% G%"
 28124, "JE G% 5 28150 28126"
 28125, "EI Not all complete - How long waiting so far? n% counts second"
 28126, "JL n% 8 28127 28129"
 28127, "JR"
 28128, "EI Waited 8 seconds - re-issue polls for non completed blocks"
 28129, "JE h% 0 28130 28131"
 28130, "RP u% 1 128 :LP 'Re-poll Studio C SDI' 2 120"
 28131, "JE i% 0 28132 28133"
 28132, "RP v% 109 122 :LP 'Re-poll CTA SDI' 2 120"
 28133, "EI was Sony DSK GPI check, not required for Kahuna"
 28134, "EI"
 28135, "JE k% 0 28136 28137"
 28136, "IP x% 1 40 :LP 'Re-poll Kahuna On-Air' 2 120"
 28137, "JE l% 0 28138 28139"
 28138, "GP y% 1 10 :LP 'Re-poll CTA CCU GPI' 2 120"
 28139, "JE m% 0 28140 28141"
 28140, "IP z% 11 20 :IP z% 181 192 :LP 'Re-poll Tally Infodriver' 2 120"
 28141, "NL 0 n% :EI reset loop counter"
 28142, "JR"
 28143, "--"
 28144, "--"
 28145, "--"
 28146, "--"
 28147, "--"
 28148, "--"
 28149, "EI 28150 is section of code to remove the old revertive processing and establish final revertive registrations"
 28150, "ET 1 0 0 0 :TP '/8080' 1 90 :EI cease revertive checker timer"
 28151, "MM 301 324 1201 :JS 28201 :EI Finish building LUT M - copy 24 direct connected sources + extras"
 28152, "EI"
 28153, "JS 1045 :EI Call routine to build LUT E - Mixer channel to CCU allocation"
 28154, "JS 1031 :EI Build Table ST - Source Tally, secondary entry point"
 28155, "EI update CCU Red lights by scanning all 40 mixer inputs"
 28156, "NL 1 A%"
 28157, "NA A% 1100 B% :MG B% C% :JE 0 C% 28160 28158"
 28158, "NA A% 1200 D% :MG D% E% :NA E% 2000 F% :MG F% G% :EI G% has tally state from table ST"
 28159, "NA C% 16 C% :GS y% C% G% 1"
 28160, "NA 1 A% A% :JL A% 41 28157 28161"
 28161, "EI"
 28162, "EI CCU processing complete. Now do monitor stack. Start by switching off all tallies on UMD's."
 28163, "NL 1 A% :NL 1001 B% :CT u$ 1 1 48"
 28164, "IW t% '0' B% 0"
 28165, "NA 1 A% A% :NA 1 B% B% :JL A% 49 28164 28167"
 28166, "EI Build the table that lists, for each source, which UMD addresses carry data about the source"
 28167, "JS 1060"
 28168, "EI Now do an update all UMD tally states for all sources with active tally state"
 28169, "NL 1 A%"
 28170, "NA A% 2000 B% :MG B% C%"
 28171, "JE C% 0 28181 28174 :EI if C%=0 then tally for channel A% is off, so do nothing."
 28172, "EI only process through 28174 if entry in table ST is on"
 28173, "EI"
 28174, "SG A% a$ :EI fetch UMD comma delimited string"
 28175, "TQ a$ N% :JE N% 0 28181 28176"
 28176, "TD a$ ',' b$ c$ :NC b$ O% :NA 1000 O% P%"
 28177, "IW t% '1' P% 0 :TP v$ 1 O%"
 28178, "TQ c$ Q% :JE Q% 0 28181 28179"
 28179, "TT c$ a$"
 28180, "JA 28176"
 28181, "NA 1 A% A% :JL A% 129 28170 28184"
 28182, "EI"
 28183, "EI Now install standard revertive processes"
 28184, "RU u% :RU v% :IU x% :GU y% :IU z% :EI first remove tempory registrations"
 28185, "RR u% 1 128 1001 0 a%"
 28186, "RR v% 109 122 1004 0 b%"
 28187, "EI was GR for Sony DSK mixer GPI inputs, not needed for Kahuna"
 28188, "IR x% 1 40 1010 0 d%"
 28189, "GR y% 17 26 1013 0 e%"
 28190, "IR z% 11 20 1016 0 f% :IR z% 181 192 1016 0 f% 'ADD'"
 28191, "GP y% 1 10 :EI just to ensure we are up to date on our CCU tally mimics"
 28192, "JR"
 28193, "--"
 28194, "--"
 28195, "--"
 28196, "--"
 28197, "--"
 28198, "--"
 28199, "--"
 28200, "EI 28201 is subroutine to copy sources for inputs 25 to 40 identified by Infodriver, into LUT M"
 28201, "NL 1 A% :NL 1371 B% :NL 1225 C%"
 28202, "MG B% D% :JE D% 0 28204 28203"
 28203, "NA D% 300 E% :MG E% E% :JA 28205   :EI E% is source from StC router status"
 28204, "NL 0 E%"
 28205, "MP E% C%"
 28206, "NA 1 A% A% :NA 1 B% B% :NA 1 C% C% :JL A% 17 28202 28207"
 28207, "JR"
 28208, "--"
 28209, "--"
 28210, "--"
}

STRINGTABLE 
{
 Revertive_Process, "Routines for Revertive Processing.  1001 is Studio C SDI router change. Dest variable a%"
 1001, "JS 1120"
 1002, "--"
 1003, "EI 1004 is CTA Matrix route change (destinations 109 to 122). Dest variable b%"
 1004, "JS 1180"
 1005, "--"
 1006, "EI 1007 was Studio C GPI driver change for DSK Tally on Sony"
 1007, "--"
 1008, "--"
 1009, "EI 1010 is Kahuna Mixer OnAir Tally change. Dest variable is d%"
 1010, "JS 1110"
 1011, "--"
 1012, "EI 1013 is CTA GPI  Driver  (CCU on-air state) change. Dest variable is e%. First contact is number 17"
 1013, "JS 1020"
 1014, "--"
 1015, "EI 1016 is Tally Infodriver change - CCU allocation or Mixer inpts 25-40"
 1016, "JS 1325"
 1017, "--"
 1018, "--"
 1019, "EI 1020 is processing for CCU on-air light change value. e% is changed CCU ID"
 1020, "NA e% 34 A%"
 1021, "JO S% 1022 1023"
 1022, "TP u$ 1 A% :JA 1024"
 1023, "TP v$ 1 A%"
 1024, "JR"
 1025, "--"
 1026, "--"
 1027, "EI 1030 is subroutine to build Table ST (Source Tally) in integer memory starting at slot 2001"
 1028, "EI 1030 Input variables: r% holds the channel no that changed tally state, S% is the new tally state"
 1029, "EI 1031 is a secondary entry point that forces a table rebuild without setting a new tally"
 1030, "NA r% 1300 A% :MP S% A%"
 1031, "MS 0 2001 2128"
 1032, "NL 1 B% :NL 1301 C%"
 1033, "MG C% D% :JE D% 0 1036 1034 :EI If tally is zero nothing to do, else get source for this mixer destination"
 1034, "NA B% 1200 E% :MG E% F%"
 1035, "NA F% 2000 G% :MP 1 G%"
 1036, "NA 1 B% B% :NA 1 C% C%"
 1037, "JL B% 41 1033 1038"
 1038, "JS 1240 :EI Check for Chain 1 and Cahin 2 needing tally"
 1039, "MG 2009 N% :MP N% 2011 :EI If Aston Fill is on-air, also tally Aston Edit"
 1040, "JR"
 1041, "--"
 1042, "--"
 1043, "--"
 1044, "EI 1045 is service routine to build table E - Mixer Channel to CCU look up"
 1045, "NL 1 A% :MS 0 1101 1140 :EI All entries have been blanked. Now scan for camerta source"
 1046, "NA A% 1200 B% :MG B% C% :JE C% 0 1053 1047 :EI C% has source ID for input A%"
 1047, "NA C% 500 D% :MG D% E% :JE E% 0 1053 1048 :EI E%=0 for a local source, non-zero for CTA"
 1048, "NA E% 700 F% :MG F% G% :EI G% now has source ID on CTA matrix"
 1049, "NA G% 900 N% :MG N% O%"
 1050, "JE O% 0 1052 1051"
 1051, "NA O% 1350 P% :MG P% Q% :EI Q%=0 or 1, 1 = allocated to studio C"
 1052, "NM Q% O% O% :NA A% 1100 R% :MP O% R%"
 1053, "NA 1 A% A%"
 1054, "JL A% 41 1046 1055"
 1055, "JR"
 1056, "--"
 1057, "--"
 1058, "--"
 1059, "EI 1060 is the subroutine to build LUT F - UMD address list for each source. Used when a mixer tally changes etc"
 1060, "SS '' 1 128 :NL 1 A% :NL 27 B%"
 1061, "NA B% 300 C% :MG C% D% :NA -26 B% E%"
 1062, "SG D% A$ :NC E% B$ :TI B$ A$ :TI ',' A$ :SP A$ D%"
 1063, "NA 1 A% A% :NA 1 B% B% :JL A% 49 1061 1064"
 1064, "JR"
 1065, "--"
 1066, "--"
 1067, "--"
 1068, "EI 1070 is subroutine to sertvice a UMD update for a single source .r% has channel on mixer. "
 1069, "EI Secondary entry point at 1071 with source number already loaded into B%."
 1070, "NA r% 1200 A% :MG A% B% :EI B% has source number whose tally has (probably) changed."
 1071, "NA B% 2000 C% :MG C% D% :EI D% is Source Tally value"
 1072, "SG B% a$"
 1073, "TQ a$ E% :JE E% 0 1081 1074"
 1074, "TD a$ ',' b$ c$ :NC b$ F% :NA 1000 F% G% :EI G% has the infodriver slot to update for tally value"
 1075, "IW t% D% G% 1 :JO D% 1076"
 1076, "TP u$ 1 F% :JA 1078"
 1077, "TP v$ 1 F%"
 1078, "TQ c$ N% :JE N% 0 1081 1079"
 1079, "TT c$ a$"
 1080, "JA 1074"
 1081, "JR"
 1082, "--"
 1083, "--"
 1084, "EI 1085 is subroutine to set or clear the camera tally. r% has mixer channel. s% is tally state required"
 1085, "NA 1100 r% A% :MG A% B% :JE B% 0 1086 1087 :EI look up channel in CCU allocation table. 0 means not camera"
 1086, "JR"
 1087, "GS y% B% s% 1"
 1088, "JR"
 1089, "--"
 1090, "--"
 1091, "--"
 1092, "--"
 1093, "--"
 1094, "--"
 1095, "--"
 1096, "--"
 1097, "--"
 1098, "--"
 1099, "EI 1100 is primary entry for a mixer channel tally change. Channel in d% new state in S$"
 1100, "NC S$ A% :NT A% s% :NA d% 1300 B% :MP A% B% :EI that has updated table N"
 1101, "NT d% r%"
 1102, "JS 1031 :EI rebuild table ST"
 1103, "NA r% 1200 A% :MG A% A% :NA A% 2000 B% :MG B% C% :NT C% s% :JS 1085 :EI Update camera tally"
 1104, "JS 1070 :EI Update UMD tally"
 1105, "JR"
 1106, "--"
 1107, "--"
 1108, "EI There was a slight problem with Sony On-Air driver as it always sends a burst of tallies"
 1109, "EI for all channels. 1110 looks for change of tally state, jumps to 1100 if changed. Keep in place for Kahuna (in case)"
 1110, "NA d% 1300 W% :MG W% X% :NC S$ Y% :NB Y% '^' X% Z% "
 1111, "JE Z% 1 1100 1112"
 1112, "JR"
 1113, "--"
 1114, "--"
 1115, "--"
 1116, "--"
 1117, "EI 1120 is subroutine to service a change in the Studio C SDI router. Several blocks of significance."
 1118, "EI Dest 1 to 24 (mixer in), dest 119 120 122 123  (Chain 1 or 2), Dest 111 to 116 (JF spare, possible extras on mixer"
 1119, "EI Dest 27 to 74 Multiviewer inputs. Variable a% has the changed destination ID."
 1120, "NA a% 300 P% :MG P% P% :JE P% S% 1121 1122 :EI Check for a change of route, do nothing if no change"
 1121, "JR"
 1122, "NA a% 2200 A% :MG A% B%"
 1123, "JO B% 1125"
 1124, "EI B% has a category of usage, 0 not used, 1 multiviwer, 2 main mixer, 3 Chain 1 or Chain 2, 4 spare outputs"
 1125, "JR"
 1126, "JA 1131 :EI Processing for multiviewer input change"
 1127, "JA 1140 :EI Processing for main mixer bank input change"
 1128, "JA 1370 :EI process change to chain bgnd or fill route"
 1129, "JA 1300 :EI Processing for Spare Outputs"
 1130, "EI"
 1131, "EI Multiviewer Input Change."
 1132, "NA a% 300 A% :MP S% A%"
 1133, "JS 1060 :EI rebuild table F"
 1134, "NT S% B% :JS 1071 :EI secondary entry point for UMD update"
 1135, "JR"
 1136, "--"
 1137, "--"
 1138, "--"
 1139, "EI 1140 is a mixer input change. If old usage was camera, must switch off any on air tally. a% has changed destination"
 1140, "NA a% 300 A% :MG A% o% :EI read old source"
 1141, "MP S% A% :EI store updated value in LUT A"
 1142, "NA o% 500 B% :MG B% B% :EI was old source from CTA?"
 1143, "JE B% 0 1148 1144 :EI  0 means local (not CTA)"
 1144, "NA B% 700 C% :MG C% C%"
 1145, "NA C% 900 D% :MG D% D%"
 1146, "JE D% 0 1148 1147 :EI Non-zero is a CCU from CTA"
 1147, "GS y% D% 0 1 :EI turn off camera red light"
 1148, "NA a% 1200 E% :MP S% E% :EI update Table M - mixer input LUT"
 1149, "NA S% 500 B% :MG B% B%  :EI is source from CTA?"
 1150, "NL 0 D% :JE B% 0 1153 1151 :EI assume new source will be local - set D%=0, then check for CTA source"
 1151, "NA B% 700 C% :MG C% C%"
 1152, "NA C% 900 D% :MG D% D%"
 1153, "NA a% 1100 E% :MP D% E% :EI Update table E Mixer to CCU"
 1154, "JE D% 0 1157 1155 :EI Is new source a camera - it could be on air and need a tally"
 1155, "NA a% 1300 F% :MG F% F% :EI get current tally"
 1156, "GS y% D% F% 1"
 1157, "EI Now need to sort out any UMD's for update - flush all is quickest for this rare event of mixer in changes"
 1158, "JS 1031 :EI rebuild table ST"
 1159, "JS 1060 :EI rebuild LUT F UMD address list"
 1160, "NL 1 A% :NL 1001 B% :CT u$ 1 48 :EI Clear our mimics"
 1161, "IW t% '0' B% 0"
 1162, "NA 1 A% A% :NA 1 B% B% :JL A% 49 1161 1163"
 1163, "NL 1 r% :LC 2 120"
 1164, "JS 1070 :EI update single mixer dest."
 1165, "NA 1 r% r% :JL r% 41 1164 1166"
 1166, "JR"
 1167, "--"
 1168, "--"
 1169, "--"
 1170, "--"
 1171, "--"
 1172, "--"
 1173, "--"
 1174, "--"
 1175, "--"
 1176, "--"
 1177, "--"
 1178, "EI 1180 is subroutine to process CTA route change. Only significant if signal used as mixer source"
 1179, "EI Register b% has changed index."
 1180, "NA -108 b% A% :EI set A% to number in range 1 to 14 (from 109 to 122)"
 1181, "JO A% 1182 :EI B% will contain Studio C matrix input for this CTA source"
 1182, "JR  :EI an error if here - so just return"
 1183, "NL 5 B% :JA 1198  :EI CTA dest 109"
 1184, "NL 6 B% :JA 1198"
 1185, "NL 1 B% :JA 1198"
 1186, "NL 2 B% :JA 1198"
 1187, "NL 3 B% :JA 1198"
 1188, "NL 4 B% :JA 1198"
 1189, "NL 31 B% :JA 1198 :EI CTA Dest 115"
 1190, "NL 32 B% :JA 1198"
 1191, "NL 33 B% :JA 1198"
 1192, "NL 34 B% :JA 1198"
 1193, "NL 35 B% :JA 1198"
 1194, "NL 36 B% :JA 1198"
 1195, "NL 37 B% :JA 1198"
 1196, "NL 38 B% :JA 1198 :EI CTA Destination 122"
 1197, "EI"
 1198, "EI B% has StC matrix Source. Is this used in the mixer? Check via LUT M"
 1199, "NL 0 A% :NL 1 C% :NL 1201 D%"
 1200, "MG D% E% :JE E% B% 1201 1202"
 1201, "NA 1 A% A%"
 1202, "NA 1 C% C% :NA 1 D% D%"
 1203, "JL C% 41 1200 1204 :EI After all 40 signals compared, if A% > 0 signal is used on mixer"
 1204, "JE A% 0 1205 1207"
 1205, "NL 700 C% :NA C% b% C% :MP S% C% :JR :EI not used on mixer, update the crosspoint table in local memory"
 1206, "EI Was the OLD source a CCU if so we need to switch off any tally"
 1207, "NL 700 F% :NA b% F% F% :MG F% G%"
 1208, "NL 900 N% :NA N% G% N% :MG N% O% :EI O% non-zero for a camera."
 1209, "JE O% 0 1215 1210"
 1210, "NL 1350 P% :NA P% O% P% :MG P% R% :EI get CCU allocation flag"
 1211, "NM R% O% O% :EI O% non-zero for allocated CCU"
 1212, "JE O% 0 1215 1213 :EI If non-zero clear CCU tally to 0"
 1213, "GS y% O% 0 0"
 1214, "EI Cleared OLD source issues. Store New source"
 1215, "NL 700 C% :NA C% b% C% :MP S% C% :NC S% b$ :NC C% c$"
 1216, "JS 1045 :EI Rebuild Table E - mixer channel to CCU"
 1217, "JS 1031 :EI Rebuild source tally table"
 1218, "NL 1 A% :NL 1101 B% :EI prepare to scan mixer channel to CCU table"
 1219, "MG B% C% :JE C% 0 1223 1220 :EI C% non-zero is CCU"
 1220, "NA A% 1200 D% :MG D% E% :EI E% has SDI router source."
 1221, "NA E% 2000 F% :MG F% G% :EI G% is true tally state"
 1222, "GS y% C% G% 1"
 1223, "NA 1 A% A% :NA 1 B% B% :JL A% 41 1219 1224"
 1224, "JR"
 1225, "--"
 1226, "--"
 1227, "--"
 1228, "--"
 1229, "--"
 1230, "EI Tally processing for Chain 1 and Chain 2 graphics sources. Generate a tally to the chain fill source if"
 1231, "EI 1) Chain background source is delayed_mixer and"
 1232, "EI 2) Chain fill is NOT video black."
 1233, "EI   Chain 1 background is matrix destination 119, Chain 1 fill is matrix destination 120"
 1234, "EI   Chain 2 background is matrix desrination 122, Chain 2 fill is matrix destination 123"
 1235, "EI   delayed_mixer is matrix source 80"
 1236, "EI   black video is matrix source 24. "
 1237, "EI"
 1238, "EI  Table A has the current matrix crosspoint map."
 1239, "EI"
 1240, "MG 419 O% :EI read Chain 1 bgnd source "
 1241, "JE O% 80 1242 1246  :EI If O%=80 then have delayed mixer selcted "
 1242, "MG 420 P% :EI read chain 1 fill source"
 1243, "JE P% 24 1246 1244  :EI if fill source is not video black set tally for source"
 1244, "NA P% 2000 Q% :MP 1 Q% :EI set tally flag"
 1245, "EI then process chain 2"
 1246, "MG 422 O%"
 1247, "JE O% 80 1248 1251"
 1248, "MG 423 P%"
 1249, "JE P% 24 1251 1250"
 1250, "NA P% 2000 Q% :MP 1 Q% :EI set tally flag"
 1251, "JR"
 1252, "--"
 1253, "--"
 1254, "--"
 1255, "--"
 1256, "--"
 1257, "--"
 1258, "--"
 1259, "--"
 1260, "--"
 1261, "--"
 1262, "--"
 1263, "--"
 1264, "--"
 1265, "--"
 1266, "--"
 1267, "--"
 1268, "--"
 1269, "--"
 1270, "--"
 1271, "--"
 1272, "--"
 1273, "--"
 1274, "--"
 1275, "--"
 1276, "--"
 1277, "--"
 1278, "--"
 1279, "EI 1280 is subroutine to update all multiviewer tallies. Assumes tables ST and F are up to date"
 1280, "NL 1 A%"
 1281, "SG A% A$ :TQ A$ B% :JE B% 0 1290 1282"
 1282, "NA A% 2000 C% :MG C% C% :NC C% D$ :EI C% has tally value from ST"
 1283, "TD A$ ',' B$ C$ :NC B$ D% :NA D% 1000 E%"
 1284, "IW t% D$ E% 0 :JO C% 1285"
 1285, "TP u$ 1 D% :JA 1287"
 1286, "TP v$ 1 D%"
 1287, "TQ C$ F% :JE F% 0 1290"
 1288, "TT C$ A$"
 1289, "JA 1283"
 1290, "NA 1 A% A% :JL A% 129 1281 1291"
 1291, "JR"
 1292, "--"
 1293, "--"
 1294, "--"
 1295, "--"
 1296, "--"
 1297, "--"
 1298, "--"
 1299, "EI 1300 is Processing for spare outputs changing. a% has value between 111 and 116"
 1300, "NA a% 300 A% :MG A% B% :JE B% S% 1301 1302"
 1301, "JR :EI no change in source - so ignore"
 1302, "MP S% A% :EI Update StC matrix status"
 1303, "NL 1371 A% :NL 0 C% :EI are we using that destination as a mixer input?"
 1304, "MG A% B% :JE B% a% 1305 1306"
 1305, "NL 1 C%"
 1306, "NA 1 A% A% :JL A% 1383 1304 1307"
 1307, "JE C% 0 1308 1310"
 1308, "JR :EI not used as input so can ignore"
 1309, "EI Used - so update table M"
 1310, "NL 1 A% :NL 1371 B% "
 1311, "MG B% C% :JE a% C% 1312 1313 :EI does changed destination match mixer input allocation"
 1312, "NA 1224 A% D% :MP S% D% :EI update mixer source mao"
 1313, "NA 1 A% A% :NA 1 B% B% JL A% 13 1311 1314"
 1314, "JS 1031 :EI rebuild table ST"
 1315, "JS 1060 :EI rebuid Table F"
 1316, "JS 1280 :EI refresh multiviewer"
 1317, "JR"
 1318, "--"
 1319, "--"
 1320, "--"
 1321, "--"
 1322, "--"
 1323, "--"
 1324, "EI 1325 is subroutine to service change in infodriver slots - either for CCU allocation or mixer extra inputs."
 1325, "JL f% 11 1326 1327"
 1326, "JR"
 1327, "JL f% 21 1328 1355"
 1328, "NC S$ F% :JL F% 0 1326 1329 :EI only support values 0 to 3"
 1329, "JL F% 4 1330 1326"
 1330, "JO F% 1331"
 1331, "TT z$ A$ :JA 1335"
 1332, "TT x$ A$ :JA 1335"
 1333, "TT w$ A$ :JA 1335"
 1334, "TT y$ A$"
 1335, "NA -10 f% A% :NA A% 60 B% :TP A$ 1 B% :NA A% 1900 C% :MP 1 C% :NL 0 G% :JE F% 3 1336 1337"
 1336, "NL 1 G%"
 1337, "NA A% 1350 D% :MG D% E% :MP G% D% :EI E% has previous allocation flag"
 1338, "JE E% 1 1339 1341 :EI was this ccu previously allocated to C"
 1339, "JE G% 0 1340 1341 :EI if was allocated, but not any longer"
 1340, "GS y% A% 0 1 :EI switch ccu tally to zero"
 1341, "JS 1045 :EI Rebuild table E"
 1342, "NL 1 A% :NL 1101 B% :EI loop to refresh camera tally"
 1343, "MG B% C% :JE C% 0 1346 1344"
 1344, "NA A% 1300 D% :MG D% D% :EI Get cue state"
 1345, "GS y% C% D% 1"
 1346, "NA 1 A% A% :NA 1 B% B% :JL A% 41 1343 1347"
 1347, "JS 1031 :EI Refresh table ST"
 1348, "JS 1060 :EI Rebuild table F"
 1349, "JS 1280 :EI Refresh Multiviewer"
 1350, "JR"
 1351, "--"
 1352, "--"
 1353, "--"
 1354, "EI 1355 is processing for change of Infodriver slots 181 to 196 . f% has slot id of change"
 1355, "JL f% 181 1356 1357"
 1356, "JR"
 1357, "JL f% 197 1358 1356"
 1358, "NA f% -180 A% :NC S$ B% :NA A% 1370 C% :MP B% C%"
 1359, "NL 0 E% :JE B% 0 1361 1360"
 1360, "NA B% 300 D% :MG D% E% :EI get SDI source id"
 1361, "NA A% 1224 F% :MP E% F% :EI store in LUT M"
 1362, "JS 1031 :EI Refresh table ST"
 1363, "JS 1060 :EI Rebuild table F"
 1364, "JS 1280 :EI Refresh Multiviewer"
 1365, "JR"
 1366, "--"
 1367, "--"
 1368, "--"
 1369, "EI 1370 is subroutine to handle change of chain bgnd or fill. a% is changed destination S% is new source"
 1370, "JE a% 119 1371 1377  :EI Is this a chain 1 background change?"
 1371, "MP S% 419 :EI update crosspoint record for this destination"
 1372, "JS 1031 :EI rebuild table ST"
 1373, "MG 420 B% :EI read source for chain 1 fill"
 1374, "JS 1071 EI update the tally state for that source."
 1375, "JR  :EI finish of processing for Chain 1 background change"
 1376, "EI 1377 checks for Chain 1 fill change"
 1377, "JE a% 120 1378 1384"
 1378, "MG 420 w% :EI get old source number"
 1379, "MP S% 420 :EI update crosspoint list"
 1380, "JS 1031 :EI update table ST"
 1381, "NT w% B% :JS 1071 :EI Update tally state for old source"
 1382, "NT S% B% :JS 1071 :EI Update tally state for new source"
 1383, "JR :EI completed chain 1 fill change"
 1384, "JE a% 122 1385 1391 :EI check for chhain 2 background change"
 1385, "MP S% 422 :EI update crosspoint record"
 1386, "JS 1031 :EI rebuild table ST"
 1387, "MG 423 B% :EI read chain 2 fill source"
 1388, "JS 1071 :EI Update tally"
 1389, "JR"
 1390, "EI 1391 checks for chain 2 source change"
 1391, "JE a% 123 1392 1397"
 1392, "MG 423 w% :EI read old source"
 1393, "MP S% 423 :EI update crosspoint list"
 1394, "JS 1031 :EI Update table ST"
 1395, "NT w% B% :JS 1071 :EI update old source tally"
 1396, "NT S% B% :JS 1071 :EI update new source tally"
 1397, "JR :EI chain tally processing complete"
 1398, "--"
 1399, "--"
}
