CCSD3ZS00001AAAAAAAANJPL3KS0L015$$$$$$$$
MISSION_NAME=MARS_GLOBAL_SURVEYOR;
MISSION_ID=5;
SPACECRAFT_NAME=MARS_GLOBAL_SURVEYOR1;
SPACECRAFT_ID=94;
DATA_SET_ID=DECOM_MAP_SOURCE;
FILE_NAME=mgs_atlo.r14.map;
MAP_NAME=BASELINE;
PRODUCT_CREATION_TIME=1996-09-11T18:51:26.000;
SPACECRAFT_CLOCK_START_COUNT=0000000000.000;
PRODUCT_VERSION_ID=000.000;
PRODUCER_ID=SCT;
DATA_STREAM_TYPE=SC_ENGINEERING;
NOTE="VERSION_CHANNEL=H-0041:SUB_VERSION_CHANNEL=H-0042";
DESCRIPTION="MGS Combined SC BUS DECOM MAP for SCP and EDF for ATLO";
CCSD3RE00000$$$$$$$$NJPL3IS00175BBBBBBBB

############################################################################
#
#  Created:  Oct 03, 1995
#  Author:   Owen G. Short (303) 977-3151
#  Version:  000.000
#  Comments: Preliminary version built for S/C Test
#
#
#  Modified: 09-11-96
#  By: Owen Short
#  Comments: REV14, flight build 3030
#
#
#
############################################################################

BLOCK MAIN

    define offset = SECONDARY_HDR
    skip 16
    H-0001                  # Spacecraft ID equals H-0001
    H-0003                  # DSS source equals H-0003
    skip 16
    H-0010(16) H-0011(32)   # ERT equals H-0010 and H-0011
    skip 64
    H-0015                  # Decode Status equals H-0015
    H-0016                  # Encode/Decode method equals H-0016
    H-0004(1)               # Data Phase (true or complemented) equals H-0004
    skip 7
    H-0009                  # PN errors equals H-0009
    skip 8
    H-0002                  # Virtual frame count equals H-0002
    skip 32
    H-0005(32)              # Bit rate equals H-0005
    skip 16
    H-0006(32)              # Signal to noise temp (SNT) equals H-0006
    H-0007(32)              # Symbol signal to noise ratio (SNR) equals H-0007
    H-0008(32)              # Receiver signal level equals H-0008
    skip 32
    H-0043(8) H-0044(8)     # DTM group and DSN TLM channel
    skip 10
    H-0038(2)               # Frame sync lock status equals H-0038
    skip 36
    H-0098(16) H-0099(32)   # New Channel 2-27-96 RCT equals H-0098 H-0099
    skip 16
    H-0039(16)              # Lock Count equals H-0039
    H-0040(16)              # Logical Record Number equals H-0040
    skip 48
    skip 14
    H-0012(2)               # Transfer frame type equals H-0012

#
#   Position to the CHDO tertiary header
#
    define offset = TERTIARY_HDR
    H-0013(2)               # Packet quality flag equals H-0013
    H-0021(3)               # PDS error flag equals H-0021
    skip 3
    H-0022                  # Packet type equals H-0022
    H-0023(16)              # Source packet sequence count equals H-0023
    H-0014(16)              # Non-fill length equals h-0014
    skip 32
    H-0017(32)              # Spacecraft timecode (sclk) equals H-0017 & H-0018
    skip 8
    H-0018
    H-0019(16)              # Spacecraft event time (scet) equals H-0019 & H-0020
    H-0020(32)
    skip 8
    H-0024                  # Segment subcount equals H-0024

#
#   Position to the data portion of the packet
#
    define offset = data
    skip 88
    segment_id(8)
    H-0026                  # Segment ID equals H-0026
    skip 4
    dig_id(3)
    H-0030(3)               # Digital table ID equals H-0030
    alog_id(3)
    H-0031(3)               # Analog table ID equals H-0031
    scp_stat(2)
    H-0027(2)               # SCP (scp-1 or scp-2) and EDF MRO status equals H-0027
    tlm_mode(4)
    H-0025(4)               # Telemetry Mode equals H-0025
    skip 304

#
#   Decom the SCP Status Word
#
    SWITCH scp_stat
        # EDF MRO pkt does not contain an SCP Status Word
        CASE 3
            skip 16
            skip 176
        ENDCASE

        DEFAULT
            scp_blk_type(2) # Scp block type determines if aq, scp tlm, scp mro, or scp cv is present
            H-0033(2)       # SCP Block Dump Type equals H-0033
            skip 6          # Block Sequence number vs Number of control words to be determined
            scp_type(1)     # Ctrl vs non-ctrl scp flag
            H-0028(1)       # SCP type (control vs non-control) equals H-0028
            H-0029(1)       # Memory fault flag equals H-0029
            scp_tbl_id(6)   # SCP telemetry table version ID
            H-0032(6)       # SCP table version ID equals H-0032

            #
            #   SCP SEG ID
            #   Extract SCP frame segment ID from SCP Mission Mode and Engineering Mode Telemetry
            #   (This is to prevent loss of telemetry when the EDF amd SCP are out of sync)
            #
            SWITCH tlm_mode
                CASE 1
                    CALL GET_SCP_SEG_ID
                ENDCASE
                CASE 2
                    CALL GET_SCP_SEG_ID
                ENDCASE
                DEFAULT
                    skip 176
                ENDCASE
            ENDSWITCH

        ENDCASE
    ENDSWITCH

#
#  This subroutine decoms the data portion of the s/c eng packet/segment
#
    CALL EDF_SC_BUS

ENDBLOCK

BLOCK GET_SCP_SEG_ID
    skip 160
    scp_seg_id(16)
    H-0050(16)        #  SCP Segment ID
ENDBLOCK








###########################
# EDF SPACECRAFT BUS DATA #
###########################

BLOCK EDF_SC_BUS

#
#   Assign the following key fields within the s/c engineering packet
#   to the following variables to be used in switch statements throughout
#   the code.
#

    define offset = data
    skip 112        # Skip to the first bit of the digital portion of the s/c eng packet

#
#   Switch on the telemetry mode of the EDF
#

    SWITCH tlm_mode

        CASE 0      # Emergency mode
            CALL EMER_DIGITAL_BLK        # Decom the digital portion of the packet
            CALL EMER_ANALOG_BLK         # Decom the analog portion of the packet
        ENDCASE

        CASE 1      # Mission mode
            CALL MIS_DIGITAL_BLK         # Decom the digital portion of the packet
            CALL MIS_ANALOG_BLK          # Decom the analog portion of the packet
        ENDCASE

        CASE 2      # Engineering mode
            CALL ENG_DIGITAL_BLK         # Decom the digital portion of the packet
            CALL ENG_ANALOG_BLK          # Decom the analog portion of the packet
        ENDCASE

        # CASE 3: Dwell mode engineering packets are decommed
        # separately by MOSO
        DEFAULT
            define offset-=4
            H-1000(4)
            skip 304
        ENDCASE

    ENDSWITCH

#
#   Switch on SCP status
#

    # test to see if the pkt contains EDF MRO
    SWITCH scp_stat
        CASE 3
            #   skip to the scp status word
            define offset = data
            skip 416
            skip 608
        ENDCASE

        DEFAULT
            CALL SCP_TLM_TEST
        ENDCASE

    ENDSWITCH

ENDBLOCK


####################
# EMERGENCY BLOCKS #
####################

BLOCK EMER_DIGITAL_BLK

    SWITCH dig_id

        CASE 0      # Default digital emergency telemetry case
            CALL EDF_D_EMR_000
        ENDCASE

        CASE 7       # Alternate digital emergency table id=7 (111)
#           CALL EDF_D_EMR_007
            CALL EDF_D_EMR_000
        ENDCASE

        DEFAULT
            CALL EDF_D_EMR_000
        ENDCASE

    ENDSWITCH

ENDBLOCK

BLOCK EMER_ANALOG_BLK

    SWITCH alog_id

        CASE 0      # Default analog emergency telemetry case
            CALL EDF_A_EMR_000
        ENDCASE

        CASE 7       # Alternate analog emergency table id=7 (111)
#           CALL EDF_A_EMR_007
            CALL EDF_A_EMR_000
        ENDCASE

        DEFAULT
            CALL EDF_A_EMR_000
        ENDCASE

    ENDSWITCH

ENDBLOCK


##################
# MISSION BLOCKS #
##################

BLOCK MIS_DIGITAL_BLK

    SWITCH dig_id

        CASE 0      # Default digital mission telemetry case
            CALL EDF_D_MIS_000
        ENDCASE

        CASE 7      # Alternate digital mission table id=7 (111)
#           CALL EDF_D_MIS_007
            CALL EDF_D_MIS_000
        ENDCASE

        DEFAULT
            CALL EDF_D_MIS_000
        ENDCASE

    ENDSWITCH

ENDBLOCK

BLOCK MIS_ANALOG_BLK

    SWITCH alog_id

        CASE 0      # Default analog mission telemetry case
            CALL EDF_A_MIS_000
        ENDCASE

        CASE 7      # Alternate analog mission table id=7 (111)
            CALL EDF_A_MIS_007
        ENDCASE

        DEFAULT
            CALL EDF_A_MIS_000
        ENDCASE

    ENDSWITCH

ENDBLOCK


######################
# ENGINEERING BLOCKS #
######################

BLOCK ENG_DIGITAL_BLK

    SWITCH dig_id

        CASE 0      # Default digital engineering telemetry case
            CALL EDF_D_ENG_000
        ENDCASE

        CASE 7      # Alternate digital engineering table id=7 (111)
#           CALL EDF_D_ENG_007
            CALL EDF_D_ENG_000
        ENDCASE

        DEFAULT
            CALL EDF_D_ENG_000
        ENDCASE

    ENDSWITCH

ENDBLOCK


BLOCK ENG_ANALOG_BLK

    SWITCH alog_id

        CASE 0      # Default analog engineering telemetry case
            CALL EDF_A_ENG_000
        ENDCASE

        CASE 7      # Alternate analog engineering table id=7 (111)
            CALL EDF_A_ENG_007
        ENDCASE

        DEFAULT
            CALL EDF_A_ENG_000
        ENDCASE

    ENDSWITCH

ENDBLOCK


############################
# SCP TELEMETRY TEST BLOCK #
############################

BLOCK SCP_TLM_TEST

    define width = 16

#
#   Switch on SCP dump block type
#

#   skip to the scp status word
    define offset = data
    skip 418

#   test to see if the pkt contains SCP Telemetry

    SWITCH scp_blk_type

        CASE 3
            H-0034(6)
            skip 8
            CALL SCP_SC_BUS
        ENDCASE

        DEFAULT
            H-0035(6)
            skip 600
        ENDCASE

    ENDSWITCH

ENDBLOCK


############################
# SCP SPACECRAFT BUS BLOCK #
############################

BLOCK SCP_SC_BUS

    define width = 16

#   determine the telemetry mode of the SCP telemetry
    SWITCH tlm_mode

        CASE 0      # emergency mode
            CALL EMER_SCP_TABLES
        ENDCASE

        CASE 1      # mission mode
            CALL MIS_SCP_TABLES
        ENDCASE

        CASE 2      # engineering mode
            CALL ENG_SCP_TABLES
        ENDCASE

        DEFAULT     # safemode SCP Table
            CALL SAFEMODE_TEST
        ENDCASE

    ENDSWITCH

ENDBLOCK


#############################
# SCP SPACECRAFT BUS TABLES #
#############################

BLOCK ENG_SCP_TABLES

    define width = 16

#   determine the applicable SCP table for eng mode
    SWITCH scp_tbl_id

#       CASE n      # engineering scp table id n
#           CALL XXXXXXXXXXXXXX
#       ENDCASE

        CASE 0      # engineering scp table id 0
            CALL SCP_EN_000
        ENDCASE

        CASE 32     # engineering scp table id 32
#           CALL SCP_EN_032
            CALL SCP_EN_000
        ENDCASE

        CASE 15     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 31     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 47     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 63     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        DEFAULT
            define offset-=6
            H-1002(6)
            skip 592
        ENDCASE

    ENDSWITCH

ENDBLOCK


BLOCK MIS_SCP_TABLES

    define width = 16

#   determine the applicable SCP table for mission mode
    SWITCH scp_tbl_id

#       CASE n       # mission scp table id n
#           CALL XXXXXXXXXXXXXXXX
#       ENDCASE

        CASE 0       # mission scp table id 0
            CALL SCP_MI_000
        ENDCASE

        CASE 32      # mission scp table id 32
#           CALL SCP_MI_032
            CALL SCP_MI_000
        ENDCASE

        CASE 15     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 31     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 47     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 63      # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        DEFAULT
            define offset-=6
            H-1002(6)
            skip 592
        ENDCASE

    ENDSWITCH

ENDBLOCK


BLOCK EMER_SCP_TABLES

    define width = 16

#   determine the applicable SCP table for emer mode
    SWITCH scp_tbl_id

#       CASE n       # emergency scp table id n
#           CALL XXXXXXXXXXXXXXXX
#       ENDCASE

        CASE 0       # emergency scp table id 0
            CALL SCP_EM_000
        ENDCASE

        CASE 16      # emergency scp table id 16
            CALL SCP_EM_016
        ENDCASE

        CASE 32      # emergency scp table id 32
            CALL SCP_EM_032
        ENDCASE

        CASE 48      # emergency scp table id 48
            CALL SCP_EM_048
        ENDCASE

        CASE 15     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 31     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 47     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 63      # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        DEFAULT
            define offset-=6
            H-1002(6)
            skip 592
        ENDCASE

    ENDSWITCH

ENDBLOCK



#######################
# SAFEMODE TEST BLOCK #
#######################

BLOCK SAFEMODE_TEST

    define width = 16

#   test for safemode
    SWITCH scp_tbl_id

        CASE 15     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 31     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 47     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        CASE 63     # safemode SCP Table
            CALL SCP_SAFE_063
        ENDCASE

        DEFAULT
            define offset-=6
            H-1002(6)
            skip 592
        ENDCASE

    ENDSWITCH

ENDBLOCK


#######################################################################################
# EDF DIGITAL EMERGENCY DEFINITION BLOCK REVISION 000                                 #
#######################################################################################

BLOCK EDF_D_EMR_000
    define width = 1
    L-0022(3)                     L-0014    L-0013    L-0012(3)
    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035    L-0024    L-0023
    P-0012    L-0070    C-0008    L-0060    L-0071    P-0016    C-0015    C-0017
    A-0001    A-0011    A-0009    A-0002    A-0004    A-0010    C-0003    L-0061
    C-0037    A-0003    A-0006    A-0013    A-0005    A-0007    A-0014    L-0080
    E-0012    E-0006    E-0002    E-0013    E-0011    C-0034    C-0036    C-0035
    C-0001    C-0011    C-0010    E-0020    E-0022    E-0003    E-0016    E-0001
    C-0012    C-0030    C-0009    C-0029    C-0031    C-0033    C-0032    C-0005
    P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
    L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
ENDBLOCK

#######################################################################################
# EDF ANALOG EMERGENCY DEFINITION BLOCK REVISION 000                                  #
#######################################################################################

BLOCK EDF_A_EMR_000
    define width = 8
    SWITCH segment_id % 4

        # segment_id equals 0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60
        CASE 0
        E-0130    E-0131    E-0132    E-0141    E-0140    E-0105    E-0106
        E-0115    E-0116    E-0101    E-0111    E-0137    E-0103    A-0122
        A-0123    C-0113    C-0131    L-0131    L-0141    L-0110    T-0302
        P-0101    S-0100    T-0222    T-0223    T-0226    T-0230    T-0234
        ENDCASE

        # segment_id equals 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61
        CASE 1
        E-0130    E-0131    E-0132    E-0141    E-0140    E-0108    E-0109
        T-0200    E-0107    E-0104    T-0212    T-0213    A-0160    A-0161
        A-0162    C-0114    C-0132    L-0111    L-0121    L-0120    T-0312
        P-0103    S-0103    T-0221    T-0224    T-0227    T-0231    T-0235
        ENDCASE

        # segment_id equals 2,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62
        CASE 2
        E-0130    E-0131    E-0132    E-0141    E-0140    E-0105    E-0106
        E-0115    E-0116    E-0101    E-0111    T-0205    E-0113    A-0122
        A-0123    T-0101    T-0305    L-0113    L-0123    T-0308    T-0303
        P-0104    S-0105    skip 8    T-0225    T-0228    T-0232    T-0240
        ENDCASE

        # segment_id equals 3,7,11,15,19,23,27,31,35,39,43,47,51,55,59,63
        CASE 3
        E-0130    E-0131    E-0132    E-0141    E-0140    E-0118    E-0119
        T-0202    E-0117    E-0114    T-0216    T-0217    A-0170    A-0171
        A-0172    A-0173    T-0106    T-0107    T-0108    T-0109    T-0313
        T-0179    S-0106    T-0181    T-0183    T-0229    T-0233    T-0241
        ENDCASE

        # default case
        DEFAULT
            skip 224
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# EDF DIGITAL MISSION DEFINITION BLOCK 000                                            #
#######################################################################################

BLOCK EDF_D_MIS_000
    define width = 1
    SWITCH segment_id % 16

        # segment_id equals 0,16,32,48
        CASE 0
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        C-0034    C-0043    C-0063    C-0036    C-0035    C-0053    C-0073    C-0037
        C-0024    I-0012    I-0001    E-0016    E-0001    E-0012    I-0013    C-0025
        ENDCASE

        # segment_id equals 1,17,33,49
        CASE 1
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        C-0054    C-0055    C-0056    C-0057    C-0074    C-0075    C-0076    C-0077
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        T-0088    T-0063    T-0064    T-0030    T-0089    T-0062    T-0065    T-0031
        A-0003    A-0006    A-0008    A-0013    A-0005    A-0007    A-0012    A-0014
        ENDCASE

        # segment_id equals 2,18,34,50
        CASE 2
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        C-0041(4)                               C-0040(4)
        L-0031    A-0001    A-0011    A-0009    A-0002    L-0041    A-0004    A-0010
        ENDCASE

        # segment_id equals 3,19,35,51
        CASE 3
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        C-0044    C-0045    C-0046    C-0047    C-0064    C-0065    C-0066    C-0067
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        C-0080    C-0082(4)                               C-0042(3)
        E-0006    E-0014    E-0002    E-0013    E-0004    E-0015    E-0005    E-0011
        ENDCASE

        # segment_id equals 4,20,36,52
        CASE 4
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        C-0051(4)                               C-0050(4)
        P-0020    P-0045    P-0079    T-0008    P-0077    P-0063    P-0021    L-0058
        ENDCASE

        # segment_id equals 5,21,37,53
        CASE 5
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        C-0054    C-0055    C-0056    C-0057    C-0074    C-0075    C-0076    C-0077
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        C-0081    C-0083(4)                               C-0052(3)
        P-0023    P-0075    C-0069    P-0004    P-0022    P-0047    P-0001    P-0007
        ENDCASE

        # segment_id equals 6,22,38,54
        CASE 6
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        C-0061(4)                               C-0060(4)
        T-0014    T-0019    P-0015    T-0021    T-0015    T-0018    P-0014    T-0020
        ENDCASE

        # segment_id equals 7,23,39,55
        CASE 7
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        C-0044    C-0045    C-0046    C-0047    C-0064    C-0065    C-0066    C-0067
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        C-0020    C-0084(4)                               C-0062(3)
        A-0020    A-0021    T-0070    T-0073    A-0022    A-0023    T-0071    T-0072
        ENDCASE

        # segment_id equals 8,24,40,56
        CASE 8
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        C-0085(4)                               C-0087(4)
        C-0024    I-0012    I-0001    E-0016    E-0001    E-0012    I-0013    C-0025
        ENDCASE

        # segment_id equals 9,25,41,57
        CASE 9
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        C-0054    C-0055    C-0056    C-0057    C-0074    C-0075    C-0076    C-0077
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        C-0086(4)                               C-0088(4)
        A-0003    A-0006    A-0008    A-0013    A-0005    A-0007    A-0012    A-0014
        ENDCASE

        # segment_id equals 10,26,42,58
        CASE 10
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        T-0001    T-0004    T-0037    T-0033    T-0002    T-0003    T-0036    T-0032
        L-0031    A-0001    A-0011    A-0009    A-0002    L-0041    A-0004    A-0010
        ENDCASE

        # segment_id equals 11,27,43,59
        CASE 11
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        C-0044    C-0045    C-0046    C-0047    C-0064    C-0065    C-0066    C-0067
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        C-0070(4)                               C-0072(3)                     P-0026
        E-0006    E-0014    E-0002    E-0013    E-0004    E-0015    E-0005    E-0011
        ENDCASE

        # segment_id equals 12,28,44,60
        CASE 12
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        T-0052    T-0054    T-0050    T-0051    T-0053    T-0055    T-0056    T-0057
        P-0043    P-0071    P-0017    P-0009    P-0065    P-0070    P-0013    P-0003
        ENDCASE

        # segment_id equals 13,29,45,61
        CASE 13
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        C-0054    C-0055    C-0056    C-0057    C-0074    C-0075    C-0076    C-0077
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        T-0082    T-0081    T-0084    skip 1    T-0083    T-0080    T-0085    skip 1
        P-0006    P-0011    P-0067    P-0068    P-0024    P-0010    skip 1    P-0069
        ENDCASE

        # segment_id equals 14,30,46,62
        CASE 14
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        T-0010    T-0013    P-0039    P-0040    T-0011    T-0012    P-0041    P-0042
        P-0031    P-0032    P-0033    P-0034    P-0035    P-0036    P-0037    P-0038
        ENDCASE

        # segment_id equals 15,31,47,63
        CASE 15
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        C-0044    C-0045    C-0046    C-0047    C-0064    C-0065    C-0066    C-0067
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        I-0003    I-0005    I-0010    I-0014    I-0004    I-0006    I-0011    I-0015
        T-0022    P-0027    P-0046    skip 1    T-0023    P-0025    P-0048    T-0009
        ENDCASE

        DEFAULT
            define offset-=24
            H-1001(8)
            skip 96
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# EDF ANALOG MISSION DEFINITION BLOCK REVISION 000                                    #
#######################################################################################

BLOCK EDF_A_MIS_FAST0_000
        define width = 8
        A-0122    A-0123    E-0130    E-0131    E-0132    E-0141    E-0142
ENDBLOCK

BLOCK EDF_A_MIS_MED0_000
        define width = 8
        P-0060    P-0062    P-0064    P-0066    P-0072    P-0073    E-0101
        E-0111    E-0105    E-0106    E-0115    E-0116    T-0200    T-0202
ENDBLOCK

BLOCK EDF_A_MIS_MED1_000
        define width = 8
        A-0130    A-0131    A-0132    A-0133    A-0134    A-0135    E-0133
        E-0134    E-0135    E-0136    E-0137    E-0140    T-0311    T-0310
ENDBLOCK

BLOCK EDF_A_MIS_MED2_000
        define width = 8
        A-0150    A-0151    A-0152    A-0170    A-0171    A-0172    A-0173
        T-0210    T-0212    T-0214    T-0216    T-0304    T-0305    T-0307
ENDBLOCK

BLOCK EDF_A_MIS_MED3_000
        define width = 8
        A-0160    A-0161    A-0162    A-0180    A-0181    A-0182    A-0183
        L-0111    L-0121    L-0113    L-0123    L-0131    L-0141    T-0308
ENDBLOCK

BLOCK EDF_A_MIS_000
    define width = 8
    SWITCH segment_id

        # segment_id equals 0,32
        CASE 0
        CASE 32
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            A-0100    A-0101    A-0102    A-0103    A-0136    A-0137    A-0138
        ENDCASE

        # segment_id equals 1,33
        CASE 1
        CASE 33
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            A-0120    A-0121    A-0139    A-0140    L-0110    L-0112    L-0114
        ENDCASE

        # segment_id equals 2,34
        CASE 2
        CASE 34
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            A-0141    A-0142    A-0143    A-0144    L-0120    L-0122    L-0124
        ENDCASE

        # segment_id equals 3,35
        CASE 3
        CASE 35
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            E-0104    E-0107    E-0114    E-0117    L-0132    L-0142    C-0101
        ENDCASE

        # segment_id equals 4,36
        CASE 4
        CASE 36
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            E-0102    E-0103    E-0112    E-0113    L-0200    L-0201    C-0102
        ENDCASE

        # segment_id equals 5,37
        CASE 5
        CASE 37
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            E-0108    E-0109    E-0118    E-0119    E-0143    C-0103    C-0104
        ENDCASE

        # segment_id equals 6,38
        CASE 6
        CASE 38
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            C-0105    C-0106    C-0107    C-0108    C-0109    C-0110    C-0111
        ENDCASE

        # segment_id equals 7,39
        CASE 7
        CASE 39
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            C-0112    C-0113    C-0114    C-0115    C-0116    C-0117    C-0118
        ENDCASE

        # segment_id equals 8,40
        CASE 8
        CASE 40
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            C-0119    C-0120    C-0125    C-0126    C-0131    C-0132    C-0151
        ENDCASE

        # segment_id equals 9,41
        CASE 9
        CASE 41
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            C-0141    C-0142    C-0143    C-0144    C-0145    C-0146    C-0152
        ENDCASE

        # segment_id equals 10,42
        CASE 10
        CASE 42
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            C-0147    C-0148    T-0100    T-0101    T-0102    T-0103    T-0104
        ENDCASE

        # segment_id equals 11,43
        CASE 11
        CASE 43
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            T-0105    T-0106    T-0107    T-0108    T-0109    T-0196    T-0198
        ENDCASE

        # segment_id equals 12,44
        CASE 12
        CASE 44
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            T-0114    T-0115    T-0116    T-0117    T-0118    T-0119    T-0120
        ENDCASE

        # segment_id equals 13,45
        CASE 13
        CASE 45
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            T-0121    T-0122    T-0123    T-0124    T-0125    T-0126    T-0127
        ENDCASE

        # segment_id equals 14,46
        CASE 14
        CASE 46
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            T-0128    T-0129    T-0130    T-0131    T-0132    T-0133    T-0134
        ENDCASE

        # segment_id equals 15,47
        CASE 15
        CASE 47
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            T-0135    T-0136    T-0137    T-0138    T-0139    T-0284    T-0316
        ENDCASE

        # segment_id equals 16,48
        CASE 16
        CASE 48
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            T-0140    T-0141    T-0142    T-0155    T-0156    T-0157    T-0158
        ENDCASE

        # segment_id equals 17,49
        CASE 17
        CASE 49
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            T-0159    skip 8    T-0161    T-0162    skip 8    T-0164    T-0165
        ENDCASE

        # segment_id equals 18,50
        CASE 18
        CASE 50
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            T-0166    T-0170    T-0174    T-0178    T-0167    T-0175    T-0172
        ENDCASE

        # segment_id equals 19,51
        CASE 19
        CASE 51
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            T-0169    T-0168    T-0171    T-0176    T-0199    T-0173    T-0179
        ENDCASE

        # segment_id equals 20,52
        CASE 20
        CASE 52
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            T-0180    T-0181    T-0182    T-0183    T-0184    T-0185    T-0186
        ENDCASE

        # segment_id equals 21,53
        CASE 21
        CASE 53
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            P-0101    P-0102    P-0103    P-0104    P-0105    P-0106    T-0187
        ENDCASE

        # segment_id equals 22,54
        CASE 22
        CASE 54
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            T-0188    T-0189    T-0190    T-0191    T-0192    T-0201    T-0203
        ENDCASE

        # segment_id equals 23,55
        CASE 23
        CASE 55
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            T-0205    T-0206    T-0209    T-0211    T-0213    T-0215    T-0217
        ENDCASE

        # segment_id equals 24,56
        CASE 24
        CASE 56
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            T-0222    T-0221    skip 8    T-0223    T-0224    T-0225    T-0226
        ENDCASE

        # segment_id equals 25,57
        CASE 25
        CASE 57
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            T-0227    T-0228    T-0229    T-0230    T-0231    T-0232    T-0233
        ENDCASE

        # segment_id equals 26,58
        CASE 26
        CASE 58
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            T-0234    T-0235    T-0243    T-0244    T-0252    T-0253    T-0254
        ENDCASE

        # segment_id equals 27,59
        CASE 27
        CASE 59
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            T-0255    T-0260    T-0262    T-0263    T-0264    T-0265    T-0266
        ENDCASE

        # segment_id equals 28,60
        CASE 28
        CASE 60
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED0_000	
            T-0267    T-0273    T-0270    T-0271    T-0272    T-0274    T-0275
        ENDCASE

        # segment_id equals 29,61
        CASE 29
        CASE 61
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED1_000	
            T-0276    T-0277    T-0278    T-0279    T-0280    T-0269    skip 8
        ENDCASE

        # segment_id equals 30,62
        CASE 30
        CASE 62
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED2_000	
            T-0177    T-0285    T-0286    T-0300    T-0301    T-0312    T-0313
        ENDCASE

        # segment_id equals 31,63
        CASE 31
        CASE 63
            CALL EDF_A_MIS_FAST0_000
            CALL EDF_A_MIS_MED3_000	
            T-0302    T-0303    T-0314    T-0315    T-0207    T-0208    S-0110
        ENDCASE

        # default case
        DEFAULT
            skip 224
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# EDF ANALOG MISSION DEFINITION BLOCK REVISION 007                                    #
#######################################################################################

BLOCK EDF_A_MIS_FAST0_007
        define width = 8
        A-0122    A-0123    E-0130    E-0131    E-0132    E-0141    E-0142
ENDBLOCK

BLOCK EDF_A_MIS_MED0_007
        define width = 8
        A-0110    A-0111    A-0112    A-0113    A-0114    A-0115    E-0101
        E-0111    E-0105    E-0106    E-0115    E-0116    T-0200    T-0202
ENDBLOCK

BLOCK EDF_A_MIS_MED1_007
        define width = 8
        A-0130    A-0131    A-0132    A-0133    A-0134    A-0135    E-0133
        E-0134    E-0135    E-0136    E-0137    E-0140    T-0311    T-0310
ENDBLOCK

BLOCK EDF_A_MIS_MED2_007
        define width = 8
        A-0150    A-0151    A-0152    A-0170    A-0171    A-0172    A-0173
        T-0210    T-0212    T-0214    T-0216    T-0304    T-0305    T-0307
ENDBLOCK

BLOCK EDF_A_MIS_MED3_007
        define width = 8
        A-0160    A-0161    A-0162    A-0180    A-0181    A-0182    A-0183
        L-0111    L-0121    L-0113    L-0123    L-0131    L-0141    T-0308
ENDBLOCK

BLOCK EDF_A_MIS_007
    define width = 8
    SWITCH segment_id

        # segment_id equals 0,32
        CASE 0
        CASE 32
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            A-0100    A-0101    A-0102    A-0103    A-0136    A-0137    A-0138
        ENDCASE

        # segment_id equals 1,33
        CASE 1
        CASE 33
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            A-0120    A-0121    A-0139    A-0140    L-0110    L-0112    L-0114
        ENDCASE

        # segment_id equals 2,34
        CASE 2
        CASE 34
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            A-0141    A-0142    A-0143    A-0144    L-0120    L-0122    L-0124
        ENDCASE

        # segment_id equals 3,35
        CASE 3
        CASE 35
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            E-0104    E-0107    E-0114    E-0117    L-0132    L-0142    C-0101
        ENDCASE

        # segment_id equals 4,36
        CASE 4
        CASE 36
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            E-0102    E-0103    E-0112    E-0113    L-0200    L-0201    C-0102
        ENDCASE

        # segment_id equals 5,37
        CASE 5
        CASE 37
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            E-0108    E-0109    E-0118    E-0119    E-0143    C-0103    C-0104
        ENDCASE

        # segment_id equals 6,38
        CASE 6
        CASE 38
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            C-0105    C-0106    C-0107    C-0108    C-0109    C-0110    C-0111
        ENDCASE

        # segment_id equals 7,39
        CASE 7
        CASE 39
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            C-0112    C-0113    C-0114    C-0115    C-0116    C-0117    C-0118
        ENDCASE

        # segment_id equals 8,40
        CASE 8
        CASE 40
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            C-0119    C-0120    C-0125    C-0126    C-0131    C-0132    C-0151
        ENDCASE

        # segment_id equals 9,41
        CASE 9
        CASE 41
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            C-0141    C-0142    C-0143    C-0144    C-0145    C-0146    C-0152
        ENDCASE

        # segment_id equals 10,42
        CASE 10
        CASE 42
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            C-0147    C-0148    T-0100    T-0101    T-0102    T-0103    T-0104
        ENDCASE

        # segment_id equals 11,43
        CASE 11
        CASE 43
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            T-0105    T-0106    T-0107    T-0108    T-0109    T-0196    T-0198
        ENDCASE

        # segment_id equals 12,44
        CASE 12
        CASE 44
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            T-0114    T-0115    T-0116    T-0117    T-0118    T-0119    T-0120
        ENDCASE

        # segment_id equals 13,45
        CASE 13
        CASE 45
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            T-0121    T-0122    T-0123    T-0124    T-0125    T-0126    T-0127
        ENDCASE

        # segment_id equals 14,46
        CASE 14
        CASE 46
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            T-0128    T-0129    T-0130    T-0131    T-0132    T-0133    T-0134
        ENDCASE

        # segment_id equals 15,47
        CASE 15
        CASE 47
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            T-0135    T-0136    T-0137    T-0138    T-0139    T-0284    T-0316
        ENDCASE

        # segment_id equals 16,48
        CASE 16
        CASE 48
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            T-0140    T-0141    T-0142    T-0155    T-0156    T-0157    T-0158
        ENDCASE

        # segment_id equals 17,49
        CASE 17
        CASE 49
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            T-0159    skip 8    T-0161    T-0162    skip 8    T-0164    T-0165
        ENDCASE

        # segment_id equals 18,50
        CASE 18
        CASE 50
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            T-0166    T-0170    T-0174    T-0178    T-0167    T-0175    T-0172
        ENDCASE

        # segment_id equals 19,51
        CASE 19
        CASE 51
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            T-0169    T-0168    T-0171    T-0176    T-0199    T-0173    T-0179
        ENDCASE

        # segment_id equals 20,52
        CASE 20
        CASE 52
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            T-0180    T-0181    T-0182    T-0183    T-0184    T-0185    T-0186
        ENDCASE

        # segment_id equals 21,53
        CASE 21
        CASE 53
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            P-0101    P-0102    P-0103    P-0104    P-0105    P-0106    T-0187
        ENDCASE

        # segment_id equals 22,54
        CASE 22
        CASE 54
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            T-0188    T-0189    T-0190    T-0191    T-0192    T-0201    T-0203
        ENDCASE

        # segment_id equals 23,55
        CASE 23
        CASE 55
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            T-0205    T-0206    T-0209    T-0211    T-0213    T-0215    T-0217
        ENDCASE

        # segment_id equals 24,56
        CASE 24
        CASE 56
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            T-0222    T-0221    skip 8    T-0223    T-0224    T-0225    T-0226
        ENDCASE

        # segment_id equals 25,57
        CASE 25
        CASE 57
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            T-0227    T-0228    T-0229    T-0230    T-0231    T-0232    T-0233
        ENDCASE

        # segment_id equals 26,58
        CASE 26
        CASE 58
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            T-0234    T-0235    T-0243    T-0244    T-0252    T-0253    T-0254
        ENDCASE

        # segment_id equals 27,59
        CASE 27
        CASE 59
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            T-0255    T-0260    T-0262    T-0263    T-0264    T-0265    T-0266
        ENDCASE

        # segment_id equals 28,60
        CASE 28
        CASE 60
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED0_007	
            T-0267    T-0273    T-0270    T-0271    T-0272    T-0274    T-0275
        ENDCASE

        # segment_id equals 29,61
        CASE 29
        CASE 61
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED1_007	
            T-0276    T-0277    T-0278    T-0279    T-0280    T-0269    skip 8
        ENDCASE

        # segment_id equals 30,62
        CASE 30
        CASE 62
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED2_007	
            T-0177    T-0285    T-0286    T-0300    T-0301    T-0312    T-0313
        ENDCASE

        # segment_id equals 31,63
        CASE 31
        CASE 63
            CALL EDF_A_MIS_FAST0_007
            CALL EDF_A_MIS_MED3_007	
            T-0302    T-0303    T-0314    T-0315    T-0207    T-0208    S-0110
        ENDCASE

        # default case
        DEFAULT
            skip 224
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# EDF DIGITAL ENGINEERING DEFINITION BLOCK REVISION 000                               #
#######################################################################################

BLOCK EDF_D_ENG_000
    define width = 1
    SWITCH segment_id % 16

        # segment_id equals 0,16,32,48
        CASE 0
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        C-0034    C-0043    C-0063    C-0036    C-0035    C-0053    C-0073    C-0037
        C-0024    I-0012    I-0001    E-0016    E-0001    E-0012    I-0013    C-0025
        ENDCASE

        # segment_id equals 1,17,33,49
        CASE 1
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        P-0020    P-0045    P-0079    T-0008    P-0077    P-0063    P-0021    L-0058
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        T-0088    T-0063    T-0064    T-0030    T-0089    T-0062    T-0065    T-0031
        A-0003    A-0006    A-0008    A-0013    A-0005    A-0007    A-0012    A-0014
        ENDCASE

        # segment_id equals 2,18,34,50
        CASE 2
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        P-0023    P-0075    C-0069    P-0004    P-0022    P-0047    P-0001    P-0007
        P-0043    P-0071    P-0017    P-0009    P-0065    P-0070    P-0013    P-0003
        T-0001    T-0004    T-0037    T-0033    T-0002    T-0003    T-0036    T-0032
        L-0031    A-0001    A-0011    A-0009    A-0002    L-0041    A-0004    A-0010
        ENDCASE

        # segment_id equals 3,19,35,51
        CASE 3
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        P-0006    P-0011    P-0067    P-0068    P-0024    P-0010    skip 1    P-0069
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        C-0070(4)                               C-0072(3)                     P-0026
        C-0044    C-0045    C-0046    C-0047    C-0064    C-0065    C-0066    C-0067
        ENDCASE

        # segment_id equals 4,20,36,52
        CASE 4
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        T-0052    T-0054    T-0050    T-0051    T-0053    T-0055    T-0056    T-0057
        C-0054    C-0055    C-0056    C-0057    C-0074    C-0075    C-0076    C-0077
        ENDCASE

        # segment_id equals 5,21,37,53
        CASE 5
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        P-0020    P-0045    P-0079    T-0008    P-0077    P-0063    P-0021    L-0058
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        T-0082    T-0081    T-0084    skip 1    T-0083    T-0080    T-0085    skip 1
        E-0006    E-0014    E-0002    E-0013    E-0004    E-0015    E-0005    E-0011
        ENDCASE

        # segment_id equals 6,22,38,54
        CASE 6
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        P-0023    P-0075    C-0069    P-0004    P-0022    P-0047    P-0001    P-0007
        P-0043    P-0071    P-0017    P-0009    P-0065    P-0070    P-0013    P-0003
        T-0010    T-0013    P-0039    P-0040    T-0011    T-0012    P-0041    P-0042
        P-0031    P-0032    P-0033    P-0034    P-0035    P-0036    P-0037    P-0038
        ENDCASE

        # segment_id equals 7,23,39,55
        CASE 7
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        P-0006    P-0011    P-0067    P-0068    P-0024    P-0010    skip 1    P-0069
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        I-0003    I-0005    I-0010    I-0014    I-0004    I-0006    I-0011    I-0015
        A-0020    A-0021    T-0070    T-0073    A-0022    A-0023    T-0071    T-0072
        ENDCASE

        # segment_id equals 8,24,40,56
        CASE 8
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        C-0041(4)                               C-0040(4)
        C-0024    I-0012    I-0001    E-0016    E-0001    E-0012    I-0013    C-0025
        ENDCASE

        # segment_id equals 9,25,41,57
        CASE 9
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        P-0020    P-0045    P-0079    T-0008    P-0077    P-0063    P-0021    L-0058
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        C-0080    C-0082(4)                               C-0042(3)
        A-0003    A-0006    A-0008    A-0013    A-0005    A-0007    A-0012    A-0014
        ENDCASE

        # segment_id equals 10,26,42,58
        CASE 10
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        P-0023    P-0075    C-0069    P-0004    P-0022    P-0047    P-0001    P-0007
        P-0043    P-0071    P-0017    P-0009    P-0065    P-0070    P-0013    P-0003
        C-0051(4)                               C-0050(4)
        L-0031    A-0001    A-0011    A-0009    A-0002    L-0041    A-0004    A-0010
        ENDCASE

        # segment_id equals 11,27,43,59
        CASE 11
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        P-0006    P-0011    P-0067    P-0068    P-0024    P-0010    skip 1    P-0069
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        C-0081    C-0083(4)                               C-0052(3)
        C-0044    C-0045    C-0046    C-0047    C-0064    C-0065    C-0066    C-0067
        ENDCASE

        # segment_id equals 12,28,44,60
        CASE 12
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        T-0040    T-0017    E-0020    C-0078    T-0041    E-0022    T-0016    E-0003
        C-0003    L-0061    L-0091    C-0023    P-0012    L-0070    L-0032    C-0022
        C-0005    P-0076    P-0061    C-0001    P-0078    C-0011    C-0010    P-0074
        C-0061(4)                               C-0060(4)
        C-0054    C-0055    C-0056    C-0057    C-0074    C-0075    C-0076    C-0077
        ENDCASE

        # segment_id equals 13,29,45,61
        CASE 13
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0012    C-0030    C-0009    C-0029    C-0031    C-0058    C-0033    C-0032
        P-0020    P-0045    P-0079    T-0008    P-0077    P-0063    P-0021    L-0058
        L-0051    L-0050    L-0053(3)                     L-0052    L-0046    L-0036
        C-0020    C-0084(4)                               C-0062(3)
        E-0006    E-0014    E-0002    E-0013    E-0004    E-0015    E-0005    E-0011
        ENDCASE

        # segment_id equals 14,30,46,62
        CASE 14
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0101(8)
        L-0103(8)
        C-0015    C-0017    C-0013    L-0045    C-0018    C-0016    C-0014    L-0035
        P-0023    P-0075    C-0069    P-0004    P-0022    P-0047    P-0001    P-0007
        P-0043    P-0071    P-0017    P-0009    P-0065    P-0070    P-0013    P-0003
        C-0085(4)                               C-0087(4)
        T-0014    T-0019    P-0015    T-0021    T-0015    T-0018    P-0014    T-0020
        ENDCASE

        # segment_id equals 15,31,47,63
        CASE 15
        L-0010(3)                     L-0014    L-0013    L-0012(3)
        L-0020(3)                     L-0024    L-0023    L-0022(3)
        P-0002    C-0002    P-0005    C-0006    E-0021    C-0004    P-0008    C-0007
        L-0011    L-0100(7)
        L-0021    L-0102(7)
        C-0048    L-0043    L-0034    L-0047    L-0080    L-0033    L-0044    L-0037
        P-0006    P-0011    P-0067    P-0068    P-0024    P-0010    skip 1    P-0069
        C-0008    L-0090    L-0042    C-0068    L-0060    P-0044    L-0071    P-0016
        C-0086(4)                               C-0088(4)
        T-0022    P-0027    P-0046    skip 1    T-0023    P-0025    P-0048    T-0009
        ENDCASE

        DEFAULT
            define offset-=24
            H-1001(8)
            skip 96
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# EDF ANALOG ENGINEERING DEFINITION BLOCK REVISION 000                                #
#######################################################################################

BLOCK EDF_A_ENG_FAST0_000
        define width = 8
        E-0130    E-0131    E-0132    E-0141    E-0142    E-0137    E-0140
ENDBLOCK

BLOCK EDF_A_ENG_FAST1_000
        define width = 8
        A-0150    A-0151    A-0152    A-0180    A-0181    A-0182    A-0183
ENDBLOCK

BLOCK EDF_A_ENG_FAST2_000
        define width = 8
        A-0130    A-0132    A-0134    A-0122    A-0123    E-0140    E-0141
ENDBLOCK

BLOCK EDF_A_ENG_FAST3_000
        define width = 8
        A-0131    A-0133    A-0135    A-0170    A-0171    A-0172    A-0173
ENDBLOCK

BLOCK EDF_A_ENG_MED0_000
        define width = 8
        E-0105    E-0106    E-0115    E-0116    E-0101    E-0111    E-0108
        E-0109    E-0103    E-0113    T-0200    T-0201    T-0202    T-0203
ENDBLOCK

BLOCK EDF_A_ENG_MED1_000
        define width = 8
        A-0160    A-0161    A-0162    P-0060    P-0062    P-0064    P-0066
        P-0072    P-0073    C-0141    C-0142    C-0143    C-0144    C-0131
ENDBLOCK

BLOCK EDF_A_ENG_MED2_000
        define width = 8
        A-0141    A-0142    A-0143    A-0144    P-0101    P-0102    P-0103
        P-0104    P-0105    P-0106    L-0110    L-0112    L-0114    E-0143
ENDBLOCK

BLOCK EDF_A_ENG_MED3_000
        define width = 8
        A-0160    A-0161    A-0162    A-0100    A-0101    A-0102    A-0103
        A-0120    A-0121    A-0139    A-0140    L-0120    L-0122    L-0124
ENDBLOCK

BLOCK EDF_A_ENG_MED4_000
        define width = 8
        E-0105    E-0106    E-0115    E-0116    E-0101    E-0111    E-0118
        E-0119    L-0111    L-0121    L-0113    L-0123    L-0131    L-0132
ENDBLOCK

BLOCK EDF_A_ENG_MED5_000
        define width = 8
        A-0160    A-0161    A-0162    P-0060    P-0062    P-0064    P-0066
        P-0072    P-0073    C-0145    C-0146    C-0147    C-0148    C-0132
ENDBLOCK

BLOCK EDF_A_ENG_MED6_000
        define width = 8
        E-0133    E-0134    E-0135    E-0136    T-0311    T-0310    L-0141
        L-0142    L-0200    L-0201    E-0104    E-0107    E-0114    E-0117
ENDBLOCK

BLOCK EDF_A_ENG_MED7_000
        define width = 8
        A-0160    A-0161    A-0162    A-0136    A-0137    A-0138    T-0210
        T-0211    T-0212    T-0213    T-0214    T-0215    T-0216    T-0217
ENDBLOCK

BLOCK EDF_A_ENG_000
    define width = 8
    SWITCH segment_id

        # segment_id equals 0,32
        CASE 0
        CASE 32
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED0_000
            E-0102    E-0112    C-0101    C-0102    C-0103    C-0104    C-0105
        ENDCASE

        # segment_id equals 1,33
        CASE 1
        CASE 33
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED1_000
            C-0106    C-0107    C-0108    C-0109    C-0110    C-0111    C-0112
        ENDCASE

        # segment_id equals 2,34
        CASE 2
        CASE 34
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED2_000
            C-0113    C-0114    C-0115    C-0116    C-0117    C-0118    C-0125
        ENDCASE

        # segment_id equals 3,35
        CASE 3
        CASE 35
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED3_000
            C-0119    C-0120    C-0126    C-0151    C-0152    S-0110    S-0111
        ENDCASE

        # segment_id equals 4,36
        CASE 4
        CASE 36
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED4_000
            T-0100    T-0101    T-0102    T-0103    T-0104    T-0105    T-0106
        ENDCASE

        # segment_id equals 5,37
        CASE 5
        CASE 37
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED5_000
            T-0107    T-0108    T-0109    T-0196    T-0198    T-0114    T-0115
        ENDCASE

        # segment_id equals 6,38
        CASE 6
        CASE 38
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED6_000
            T-0116    T-0117    T-0118    T-0119    T-0120    T-0121    T-0122
        ENDCASE

        # segment_id equals 7,39
        CASE 7
        CASE 39
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED7_000
            T-0123    T-0124    T-0125    T-0126    T-0127    T-0128    T-0129
        ENDCASE

        # segment_id equals 8,40
        CASE 8
        CASE 40
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED0_000
            T-0130    T-0131    T-0132    T-0133    T-0134    T-0135    T-0136
        ENDCASE

        # segment_id equals 9,41
        CASE 9
        CASE 41
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED1_000
            T-0137    T-0138    T-0139    T-0140    T-0141    T-0142    T-0143
        ENDCASE

        # segment_id equals 10,42
        CASE 10
        CASE 42
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED2_000
            T-0144    T-0145    T-0146    T-0147    T-0148    T-0149    T-0150
        ENDCASE

        # segment_id equals 11,43
        CASE 11
        CASE 43
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED3_000
            T-0151    T-0152    T-0153    T-0154    T-0155    T-0156    T-0157
        ENDCASE

        # segment_id equals 12,44
        CASE 12
        CASE 44
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED4_000
            T-0158    T-0159    skip 8    T-0161    T-0162    skip 8    T-0164
        ENDCASE

        # segment_id equals 13,45
        CASE 13
        CASE 45
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED5_000
            T-0165    T-0166    T-0170    T-0174    T-0178    T-0167    T-0175
        ENDCASE

        # segment_id equals 14,46
        CASE 14
        CASE 46
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED6_000
            T-0172    T-0169    T-0168    T-0171    T-0176    T-0199    T-0184
        ENDCASE

        # segment_id equals 15,47
        CASE 15
        CASE 47
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED7_000
            T-0185    T-0284    T-0316    S-0100    S-0102    S-0104    S-0106
        ENDCASE

        # segment_id equals 16,48
        CASE 16
        CASE 48
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED0_000
            E-0102    E-0112    C-0101    C-0102    C-0103    C-0104    C-0105
        ENDCASE

        # segment_id equals 17,49
        CASE 17
        CASE 49
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED1_000
            C-0106    C-0107    C-0108    C-0109    C-0110    C-0111    C-0112
        ENDCASE

        # segment_id equals 18,50
        CASE 18
        CASE 50
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED2_000
            C-0113    C-0114    C-0115    C-0116    C-0117    C-0118    C-0125
        ENDCASE

        # segment_id equals 19,51
        CASE 19
        CASE 51
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED3_000
            C-0119    C-0120    C-0126    C-0151    C-0152    S-0110    S-0111
        ENDCASE

        # segment_id equals 20,52
        CASE 20
        CASE 52
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED4_000
            T-0173    T-0179    T-0180    T-0181    T-0182    T-0183    T-0186
        ENDCASE

        # segment_id equals 21,53
        CASE 21
        CASE 53
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED5_000
            T-0187    T-0188    T-0189    T-0190    T-0191    T-0192    T-0205
        ENDCASE

        # segment_id equals 22,54
        CASE 22
        CASE 54
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED6_000
            T-0206    T-0207    T-0208    T-0209    T-0222    T-0221    skip 8
        ENDCASE

        # segment_id equals 23,55
        CASE 23
        CASE 55
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED7_000
            T-0223    T-0224    T-0225    T-0226    T-0227    T-0228    T-0229
        ENDCASE

        # segment_id equals 24,56
        CASE 24
        CASE 56
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED0_000
            T-0230    T-0231    T-0232    T-0233    T-0234    T-0235    T-0240
        ENDCASE

        # segment_id equals 25,57
        CASE 25
        CASE 57
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED1_000
            T-0241    T-0243    T-0244    skip 8    T-0197    T-0252    T-0253
        ENDCASE

        # segment_id equals 26,58
        CASE 26
        CASE 58
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED2_000
            T-0254    T-0255    T-0260    T-0262    T-0263    T-0264    T-0265
        ENDCASE

        # segment_id equals 27,59
        CASE 27
        CASE 59
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED3_000
            T-0266    T-0267    T-0273    T-0270    T-0271    T-0272    T-0274
        ENDCASE

        # segment_id equals 28,60
        CASE 28
        CASE 60
            CALL EDF_A_ENG_FAST0_000
            CALL EDF_A_ENG_MED4_000
            T-0275    T-0276    T-0277    T-0278    T-0279    T-0280    T-0269
        ENDCASE

        # segment_id equals 29,61
        CASE 29
        CASE 61
            CALL EDF_A_ENG_FAST1_000
            CALL EDF_A_ENG_MED5_000
            skip 8    T-0177    T-0285    T-0286    T-0300    T-0301    T-0312
        ENDCASE

        # segment_id equals 30,62
        CASE 30
        CASE 62
            CALL EDF_A_ENG_FAST2_000
            CALL EDF_A_ENG_MED6_000
            T-0313    T-0304    T-0305    T-0307    T-0308    T-0302    T-0303
        ENDCASE

        # segment_id equals 31,63
        CASE 31
        CASE 63
            CALL EDF_A_ENG_FAST3_000
            CALL EDF_A_ENG_MED7_000
            T-0314    T-0315    T-0316    S-0101    S-0103    S-0105    S-0107
        ENDCASE

        # default case
        DEFAULT
            skip 224
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# EDF ANALOG ENGINEERING DEFINITION BLOCK REVISION 007                                #
#######################################################################################

BLOCK EDF_A_ENG_FAST0_007
        define width = 8
        E-0130    E-0131    E-0132    E-0141    E-0142    E-0137    E-0140
ENDBLOCK

BLOCK EDF_A_ENG_FAST1_007
        define width = 8
        A-0150    A-0151    A-0152    A-0180    A-0181    A-0182    A-0183
ENDBLOCK

BLOCK EDF_A_ENG_FAST2_007
        define width = 8
        A-0130    A-0132    A-0134    A-0122    A-0123    E-0140    E-0141
ENDBLOCK

BLOCK EDF_A_ENG_FAST3_007
        define width = 8
        A-0131    A-0133    A-0135    A-0170    A-0171    A-0172    A-0173
ENDBLOCK

BLOCK EDF_A_ENG_MED0_007
        define width = 8
        E-0105    E-0106    E-0115    E-0116    E-0101    E-0111    E-0108
        E-0109    E-0103    E-0113    T-0200    T-0201    T-0202    T-0203
ENDBLOCK

BLOCK EDF_A_ENG_MED1_007
        define width = 8
        A-0160    A-0161    A-0162    A-0110    A-0111    A-0112    A-0113
        A-0114    A-0115    C-0141    C-0142    C-0143    C-0144    C-0131
ENDBLOCK

BLOCK EDF_A_ENG_MED2_007
        define width = 8
        A-0141    A-0142    A-0143    A-0144    P-0101    P-0102    P-0103
        P-0104    P-0105    P-0106    L-0110    L-0112    L-0114    E-0143
ENDBLOCK

BLOCK EDF_A_ENG_MED3_007
        define width = 8
        A-0160    A-0161    A-0162    A-0100    A-0101    A-0102    A-0103
        A-0120    A-0121    A-0139    A-0140    L-0120    L-0122    L-0124
ENDBLOCK

BLOCK EDF_A_ENG_MED4_007
        define width = 8
        E-0105    E-0106    E-0115    E-0116    E-0101    E-0111    E-0118
        E-0119    L-0111    L-0121    L-0113    L-0123    L-0131    L-0132
ENDBLOCK

BLOCK EDF_A_ENG_MED5_007
        define width = 8
        A-0160    A-0161    A-0162    P-0060    P-0062    P-0064    P-0066
        P-0072    P-0073    C-0145    C-0146    C-0147    C-0148    C-0132
ENDBLOCK

BLOCK EDF_A_ENG_MED6_007
        define width = 8
        E-0133    E-0134    E-0135    E-0136    T-0311    T-0310    L-0141
        L-0142    L-0200    L-0201    E-0104    E-0107    E-0114    E-0117
ENDBLOCK

BLOCK EDF_A_ENG_MED7_007
        define width = 8
        A-0160    A-0161    A-0162    A-0136    A-0137    A-0138    T-0210
        T-0211    T-0212    T-0213    T-0214    T-0215    T-0216    T-0217
ENDBLOCK

BLOCK EDF_A_ENG_007
    define width = 8
    SWITCH segment_id

        # segment_id equals 0,32
        CASE 0
        CASE 32
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED0_007
            E-0102    E-0112    C-0101    C-0102    C-0103    C-0104    C-0105
        ENDCASE

        # segment_id equals 1,33
        CASE 1
        CASE 33
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED1_007
            C-0106    C-0107    C-0108    C-0109    C-0110    C-0111    C-0112
        ENDCASE

        # segment_id equals 2,34
        CASE 2
        CASE 34
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED2_007
            C-0113    C-0114    C-0115    C-0116    C-0117    C-0118    C-0125
        ENDCASE

        # segment_id equals 3,35
        CASE 3
        CASE 35
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED3_007
            C-0119    C-0120    C-0126    C-0151    C-0152    S-0110    S-0111
        ENDCASE

        # segment_id equals 4,36
        CASE 4
        CASE 36
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED4_007
            T-0100    T-0101    T-0102    T-0103    T-0104    T-0105    T-0106
        ENDCASE

        # segment_id equals 5,37
        CASE 5
        CASE 37
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED5_007
            T-0107    T-0108    T-0109    T-0196    T-0198    T-0114    T-0115
        ENDCASE

        # segment_id equals 6,38
        CASE 6
        CASE 38
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED6_007
            T-0116    T-0117    T-0118    T-0119    T-0120    T-0121    T-0122
        ENDCASE

        # segment_id equals 7,39
        CASE 7
        CASE 39
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED7_007
            T-0123    T-0124    T-0125    T-0126    T-0127    T-0128    T-0129
        ENDCASE

        # segment_id equals 8,40
        CASE 8
        CASE 40
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED0_007
            T-0130    T-0131    T-0132    T-0133    T-0134    T-0135    T-0136
        ENDCASE

        # segment_id equals 9,41
        CASE 9
        CASE 41
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED1_007
            T-0137    T-0138    T-0139    T-0140    T-0141    T-0142    T-0143
        ENDCASE

        # segment_id equals 10,42
        CASE 10
        CASE 42
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED2_007
            T-0144    T-0145    T-0146    T-0147    T-0148    T-0149    T-0150
        ENDCASE

        # segment_id equals 11,43
        CASE 11
        CASE 43
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED3_007
            T-0151    T-0152    T-0153    T-0154    T-0155    T-0156    T-0157
        ENDCASE

        # segment_id equals 12,44
        CASE 12
        CASE 44
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED4_007
            T-0158    T-0159    skip 8    T-0161    T-0162    skip 8    T-0164
        ENDCASE

        # segment_id equals 13,45
        CASE 13
        CASE 45
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED5_007
            T-0165    T-0166    T-0170    T-0174    T-0178    T-0167    T-0175
        ENDCASE

        # segment_id equals 14,46
        CASE 14
        CASE 46
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED6_007
            T-0172    T-0169    T-0168    T-0171    T-0176    T-0199    T-0184
        ENDCASE

        # segment_id equals 15,47
        CASE 15
        CASE 47
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED7_007
            T-0185    T-0284    T-0316    S-0100    S-0102    S-0104    S-0106
        ENDCASE

        # segment_id equals 16,48
        CASE 16
        CASE 48
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED0_007
            E-0102    E-0112    C-0101    C-0102    C-0103    C-0104    C-0105
        ENDCASE

        # segment_id equals 17,49
        CASE 17
        CASE 49
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED1_007
            C-0106    C-0107    C-0108    C-0109    C-0110    C-0111    C-0112
        ENDCASE

        # segment_id equals 18,50
        CASE 18
        CASE 50
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED2_007
            C-0113    C-0114    C-0115    C-0116    C-0117    C-0118    C-0125
        ENDCASE

        # segment_id equals 19,51
        CASE 19
        CASE 51
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED3_007
            C-0119    C-0120    C-0126    C-0151    C-0152    S-0110    S-0111
        ENDCASE

        # segment_id equals 20,52
        CASE 20
        CASE 52
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED4_007
            T-0173    T-0179    T-0180    T-0181    T-0182    T-0183    T-0186
        ENDCASE

        # segment_id equals 21,53
        CASE 21
        CASE 53
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED5_007
            T-0187    T-0188    T-0189    T-0190    T-0191    T-0192    T-0205
        ENDCASE

        # segment_id equals 22,54
        CASE 22
        CASE 54
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED6_007
            T-0206    T-0207    T-0208    T-0209    T-0222    T-0221    skip 8
        ENDCASE

        # segment_id equals 23,55
        CASE 23
        CASE 55
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED7_007
            T-0223    T-0224    T-0225    T-0226    T-0227    T-0228    T-0229
        ENDCASE

        # segment_id equals 24,56
        CASE 24
        CASE 56
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED0_007
            T-0230    T-0231    T-0232    T-0233    T-0234    T-0235    T-0240
        ENDCASE

        # segment_id equals 25,57
        CASE 25
        CASE 57
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED1_007
            T-0241    T-0243    T-0244    skip 8    T-0197    T-0252    T-0253
        ENDCASE

        # segment_id equals 26,58
        CASE 26
        CASE 58
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED2_007
            T-0254    T-0255    T-0260    T-0262    T-0263    T-0264    T-0265
        ENDCASE

        # segment_id equals 27,59
        CASE 27
        CASE 59
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED3_007
            T-0266    T-0267    T-0273    T-0270    T-0271    T-0272    T-0274
        ENDCASE

        # segment_id equals 28,60
        CASE 28
        CASE 60
            CALL EDF_A_ENG_FAST0_007
            CALL EDF_A_ENG_MED4_007
            T-0275    T-0276    T-0277    T-0278    T-0279    T-0280    T-0269
        ENDCASE

        # segment_id equals 29,61
        CASE 29
        CASE 61
            CALL EDF_A_ENG_FAST1_007
            CALL EDF_A_ENG_MED5_007
            skip 8    T-0177    T-0285    T-0286    T-0300    T-0301    T-0312
        ENDCASE

        # segment_id equals 30,62
        CASE 30
        CASE 62
            CALL EDF_A_ENG_FAST2_007
            CALL EDF_A_ENG_MED6_007
            T-0313    T-0304    T-0305    T-0307    T-0308    T-0302    T-0303
        ENDCASE

        # segment_id equals 31,63
        CASE 31
        CASE 63
            CALL EDF_A_ENG_FAST3_007
            CALL EDF_A_ENG_MED7_007
            T-0314    T-0315    T-0316    S-0101    S-0103    S-0105    S-0107
        ENDCASE

        # default case
        DEFAULT
            skip 224
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# SCP ENGINEERING MODE DEFINITION BLOCK 000 (0 0 0000)                                #
#######################################################################################

BLOCK SCP_EN_000
  define width = 16
  SWITCH scp_type
    CASE 0  # Non-Control SCP Channels
       CALL NON_CONTROL_000
    ENDCASE
    CASE 1  # Control SCP Channels
       CALL CONTROL_000
    ENDCASE
    DEFAULT
       skip 592
    ENDCASE
  ENDSWITCH
ENDBLOCK

BLOCK NON_CONTROL_FAST_000
    define width = 16
    N-1030
    N-1024
    define offset-=16
    N-1520(1) N-1521(1) N-1522(1) N-1523(1) N-1524(1) N-1525(1) N-1526(1) N-1527(1)
    N-1528(1) N-1529(1) N-1530(1) N-1531(1) N-1532(1) N-1533(1) N-1534(1) N-1535(1)
    N-0333    N-0334    N-0335    N-0315    N-0316    N-0317    N-0318    N-0051
    N-1414    N-0561    N-1073
ENDBLOCK

BLOCK NON_CONTROL_MED0_000
    define width = 16
    skip 12   N-0000(4) N-0040    N-0110    N-0120    N-0130    N-0140    N-0150
    N-0160
    N-0210
    define offset-=16
    N-0640(1) N-0641(1) N-0642(1) N-0643(1) N-0644(1) N-0645(1) N-0646(1) N-0647(1)
    N-0648(1) N-0649(1) N-0650(1) N-0651(1) N-0652(1) N-0653(1) N-0654(1) N-0655(1)
    N-3031
    N-1034
    define offset-=16
    N-1560(1) N-1561(1) N-1562(1) N-1563(1) N-1564(1) N-1565(1) N-1566(1) N-1567(1)
    N-1568(1) N-1569(1) N-1570(1) N-1571(1) N-1572(1) N-1573(1) N-1574(1) N-1575(1)
    N-1035
    define offset-=16
    N-1680(1) N-1681(1) N-1682(1) N-1683(1) N-1684(1) N-1685(1) N-1686(1) N-1687(1)
    N-1688(1) N-1689(1) N-1690(1) N-1691(1) N-1692(1) N-1693(1) N-1694(1) N-1695(1)

ENDBLOCK

BLOCK NON_CONTROL_MED1_000
    define width = 16
    N-0190    N-0193    N-0194    N-0195    N-0198
    N-0200
    define offset-=16
    N-0620(1) N-0621(1) N-0622(1) N-0623(2) N-0625(1) N-0626(1) N-0627(2)
    N-0629(1) N-0630(1) N-0631(2) N-0633(1) N-0634(1) N-0635(1)
    N-0227    skip 12   N-0228(4) N-0260    N-0261
    N-0266
    define offset-=16
    N-0700(1) N-0701(1) N-0702(1) N-0703(1) skip 1    skip 1    skip 1    skip 1
    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
    N-0267
    define offset-=16
    N-0710(1) N-0711(1) N-0712(1) N-0713(1) skip 1    skip 1    skip 1    skip 1
    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1

ENDBLOCK

BLOCK NON_CONTROL_MED2_000
    define width = 16
    N-0241    N-0242    N-0243    N-0244    N-0245    N-0246    N-0247    N-0248
    N-0251    N-0252    N-0253    N-0254
ENDBLOCK

BLOCK NON_CONTROL_MED3_000
    define width = 16
    N-0283
    define offset-=16
    N-0740(1) N-0741(1) N-0742(1) N-0743(1) N-0744(1) N-0745(1) N-0746(1) N-0747(1)
    N-0748(1) N-0749(1) N-0750(1) N-0751(1) N-0752(1) N-0753(1) N-0754(1) N-0755(1)
    N-0290    N-0291    N-0292    N-0330    N-0331    N-0332    N-0339    N-0340
    N-0341
    N-1237
    define offset-=16
    N-1720(1) N-1721(1) N-1722(1) N-1723(1) N-1724(1) N-1725(1) N-1726(1) N-1727(1)
    N-1728(1) N-1729(1) N-1730(1) N-1731(1) N-1732(1) N-1733(1) N-1734(1) N-1735(1)
    N-1238
    define offset-=16
    N-1740(3) N-1743(4) N-1747(1)
    N-1748(2) N-1750(1) N-1751(1) N-1752(1) N-1753(1) N-1754(1) N-1755(1)

ENDBLOCK

BLOCK NON_CONTROL_MED4_000
    define width = 16
    N-0345
    define offset-=16
    N-0760(1) N-0761(2) N-0763(1) N-0764(1) N-0765(11)

    N-0346
    define offset-=16
    N-0770(1) N-0771(2) N-0773(1) N-0774(1) N-0775(11)

    N-0347
    define offset-=16
    N-0780(1) N-0781(2) N-0783(1) N-0784(1) N-0785(11)

    N-0348
    define offset-=16
    N-0790(1) N-0791(2) N-0793(1) N-0794(1) N-0795(11)

    N-0355    N-0356    N-0357    N-0358    N-0480    N-0481    N-0482
    N-0277
    define offset-=16
    skip 1    skip 1    skip 1    skip 1    N-0884(4)
    N-0888(4) N-0892(4)

ENDBLOCK

BLOCK NON_CONTROL_MED5_000
    define width = 16
    N-0440
    define offset-=16
    N-0840(8)
    N-0848(8)
    N-0442
    define offset-=16
    N-0860(8)
    N-0868(1) N-0869(1) N-0870(3) N-0873(3)
    skip 12   N-0444(4) N-0446    N-0447    N-0085    N-0086    N-0470    N-0471
    N-0472
    N-3040
    define offset-=16
    N-3200(1) N-3201(1) N-3202(1) N-3203(1) N-3204(1) N-3205(1) N-3206(1) N-3207(1)
    N-3208(1) N-3209(1) N-3210(1) N-3211(1) N-3212(1) N-3213(1) N-3214(1) N-3215(1)
    N-3042
    define offset-=16
    N-3220(1) N-3221(1) N-3222(1) N-3223(2) N-3225(1) N-3226(1) N-3227(1)
    N-3228(1) N-3229(1) N-3230(1) N-3231(1) N-3232(1) N-3233(1) N-3234(1) N-3235(1)

ENDBLOCK

BLOCK NON_CONTROL_MED6_000
    define width = 16
    N-1000    N-1001    N-1002    N-1003(32)          N-1004    N-1005
    N-1092
    define offset-=16
    N-1580(1) N-1581(1) N-1582(1) N-1583(1) N-1584(1) N-1585(1) N-1586(1) N-1587(1)
    N-1588(1) N-1589(1) N-1590(6)
    N-1096
    define offset-=16
    N-1620(1) N-1621(1) N-1622(1) N-1623(1) N-1624(1) N-1625(1) N-1626(1) N-1627(1)
    N-1628(1) N-1629(1) N-1630(1) N-1631(1) N-1632(1) N-1633(3)
    N-1262
    N-1348
    define offset-=16
    N-1640(1) N-1641(1) N-1642(1) N-1643(1) N-1644(1) N-1645(1) N-1646(1) N-1647(1)
    N-1648(1) N-1649(1) N-1650(1) N-1651(1) N-1652(1) N-1653(1) N-1654(1) N-1655(1)
    N-1349
    define offset-=16
    N-1700(1) N-1701(1) N-1702(1) N-1703(1) N-1704(1) N-1705(1) N-1706(1) N-1707(1)
    N-1708(1) N-1709(1) N-1710(1) N-1711(1) N-1712(1) N-1713(1) N-1714(1) N-1715(1)

ENDBLOCK

BLOCK NON_CONTROL_MED7_000
    define width = 16
    N-1455    N-1456    N-1457    N-1459    N-1460    N-1461    N-1462    N-1463
    N-2145
    define offset-=16
    N-2220(1) N-2221(1) N-2222(1) N-2223(1) N-2224(1) N-2225(1) N-2226(1) N-2227(1)
    N-2228(1) N-2229(1) N-2230(1) N-2231(1) N-2232(1) N-2233(1) N-2234(1) N-2235(1)
    N-2150
    define offset-=16
    N-2240(1) N-2241(1) N-2242(1) N-2243(1) N-2244(1) N-2245(1) N-2246(1) N-2247(1)
    N-2248(1) N-2249(1) N-2250(1) N-2251(1) N-2252(1) N-2253(1) N-2254(1) N-2255(1)
    N-2155
    define offset-=16
    N-2260(1) N-2261(1) N-2262(1) N-2263(1) N-2264(1) N-2265(1) N-2266(1) N-2267(1)
    N-2268(1) N-2269(1) N-2270(1) N-2271(1) N-2272(1) N-2273(1) N-2274(1) N-2275(1)
    N-1015
ENDBLOCK

BLOCK NON_CONTROL_000
    define width = 16
    SWITCH scp_seg_id

        # scp_seg_id equals 0
        CASE 0
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED0_000
            N-0001    N-0002    N-0003    N-0004    N-0060    N-0061    N-0062    N-0063
            N-0321    N-0322    N-0323    N-0324
        ENDCASE

        # scp_seg_id equals 1
        CASE 1
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED1_000
            N-0070    N-0071    N-0072    N-0080    N-0094    N-0100    N-0101    N-0102
            N-0191    N-0197    N-0196    N-0192
        ENDCASE

        # scp_seg_id equals 2
        CASE 2
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED2_000
            skip 12   N-0201(4) N-0205(1) skip 15   N-0206(1) skip 15   N-0220    N-0262
            N-0263    N-0264    N-0265    skip 12   N-0268(4)
            N-0276
            define offset-=16
            N-0720(1) N-0721(1) skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
            skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
            N-0535(32)
        ENDCASE

        # scp_seg_id equals 3
        CASE 3
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED3_000
            N-0182    N-0184    N-0180    N-0020    N-0021    N-0022    N-0023    N-0024
            N-0025    N-0026    N-0027    N-0028
        ENDCASE

        # scp_seg_id equals 4
        CASE 4
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED4_000
            N-0287    N-0288    N-0289    N-0293    N-0294    N-0295    N-0475    skip 12   N-0476(4)
            N-0056    N-0057    N-2110    N-2111
        ENDCASE

        # scp_seg_id equals 5
        CASE 5
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED5_000
            N-0305    N-0306    N-0307    N-0552    N-0553    N-0559    N-0459    N-0551
            N-0560    N-0105    N-0106    N-0107
        ENDCASE

        # scp_seg_id equals 6
        CASE 6
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED6_000
            N-0336    N-0337    N-0338    N-0342    N-0343    N-0344    N-0381    N-0382
            N-0383    N-0411    N-0412    N-0413
        ENDCASE

        # scp_seg_id equals 7
        CASE 7
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED7_000
            N-0360    N-0361    N-0379    N-0363    N-0375    N-0377    N-0378    N-0362
            N-0380
            N-0385
            define offset-=16
            N-0800(1) N-0801(1) N-0802(1) N-0803(2) N-0805(1) N-0806(1) N-0807(2)
            N-0809(1) N-0810(1) N-0811(2) N-0813(1) N-0814(1) N-0815(1)
            skip 12   N-0388(4) N-0438
        ENDCASE

        # scp_seg_id equals 8
        CASE 8
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED0_000
            N-0390    N-0391    N-0409    N-0393    N-0405    N-0407    N-0408    N-0392
            N-0410
            N-0415
            define offset-=16
            N-0820(1) N-0821(1) N-0822(1) N-0823(2) N-0825(1) N-0826(1) N-0827(2)
            N-0829(1) N-0830(1) N-0831(2) N-0833(1) N-0834(1) N-0835(1)
            skip 12   N-0418(4) N-0439
        ENDCASE

        # scp_seg_id equals 9
        CASE 9
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED1_000
            N-0420    N-0421    N-0422    N-0427    N-0431    N-0432    N-0433    N-0434
            N-0435    N-0436    N-0448
            N-1465
            define offset-=16
            N-1760(1) N-1761(1) N-1762(1) N-1763(1) N-1764(1) N-1765(2) N-1767(1)
            N-1768(1) N-1769(1) N-1770(1) N-1771(1) N-1772(1) N-1773(1) N-1774(1) N-1775(1)

        ENDCASE

        # scp_seg_id equals 10
        CASE 10
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED2_000
            N-0450    N-0451    N-0452    N-0550    N-0455    N-0558    N-0457    N-0554
            N-0464    N-0461    N-0462    skip 12   N-0460(4)
        ENDCASE

        # scp_seg_id equals 11
        CASE 11
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED3_000
            N-0490    N-0491    N-0492    N-0495    N-0496    N-0497    N-0010    N-0011
            N-0012    N-0014    N-0015    N-0018
        ENDCASE

        # scp_seg_id equals 12
        CASE 12
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED4_000
            N-0521    N-0522    N-0523    N-0524    N-0525    N-0526    N-0527    N-0528
            N-0529    N-0530    N-0531    N-0532
        ENDCASE

        # scp_seg_id equals 13
        CASE 13
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED5_000
            N-0074
            N-1008
            define offset-=16
            N-1500(1) N-1501(1) N-1502(1) N-1503(1) N-1504(1) N-1505(1) N-1506(1) N-1507(1)
            N-1508(1) N-1509(1) N-1510(1) N-1511(1) N-1512(1) N-1513(1) N-1514(1) N-1515(1)
            N-1009
            define offset-=16
            N-1660(1) N-1661(1) N-1662(1) N-1663(1) N-1664(1) N-1665(1) N-1666(1) N-1667(1)
            N-1668(1) N-1669(1) N-1670(1) N-1671(1) N-1672(1) N-1673(1) N-1674(1) N-1675(1)
            N-1010(1) skip 15   N-1013    skip 12   N-1014(4) skip 12   N-1016(4) N-1017
            N-1018(32)          N-1019    N-1020
        ENDCASE

        # scp_seg_id equals 14
        CASE 14
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED6_000
            N-1021
            N-1026
            define offset-=16
            N-1540(1) N-1541(1) N-1542(1) N-1543(1) N-1544(1) N-1545(1) N-1546(1) N-1547(1)
            N-1548(1) N-1549(1) N-1550(1) N-1551(1) N-1552(1) N-1553(1) N-1554(1) N-1555(1)
            N-1031    N-1040    N-1041    N-1042    N-1043    N-1044    N-1045    N-1046
            N-1049(32)
        ENDCASE

        # scp_seg_id equals 15
        CASE 15
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED7_000
            N-1060    N-1061    N-1062    N-1063    N-1064    N-1065    N-1066    N-1067
            N-1070    N-1074    N-1080    N-1081
        ENDCASE

        # scp_seg_id equals 16
        CASE 16
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED0_000
            N-1090(32)          N-1100    N-1101    N-1102    N-1103    N-1104    N-0183
            skip 12   N-1236(4) N-1253    N-1254    N-1420
        ENDCASE

        # scp_seg_id equals 17
        CASE 17
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED1_000
            N-0030    N-0031    N-0032    N-0034    N-0035    N-0038
            N-0005
            define offset-=16
            N-0600(1) N-0601(1) N-0602(1) N-0603(1) N-0604(1) N-0605(1) N-0606(1) N-0607(1)
            N-0608(1) N-0609(1) N-0610(1) N-0611(1) N-0612(1) N-0613(1) N-0614(1) N-0615(1)
            N-0009
            define offset-=16
            N-0900(1) N-0901(1) N-0902(1) N-0903(1) N-0904(1) N-0905(1) N-0906(1) N-0907(1)
            N-0908(2) N-0910(2) N-0912(1) N-0913(1) N-0914(1) N-0915(1)
            skip 12   N-1256(4) N-1261    N-1350    N-1351
        ENDCASE

        # scp_seg_id equals 18
        CASE 18
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED2_000
            N-1352    N-1353    N-1354    N-1355    N-1356    N-1357    N-1358    N-1359
            N-1360    N-1361    N-1362    N-1363
        ENDCASE

        # scp_seg_id equals 19
        CASE 19
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED3_000
            N-1364    N-1365    N-1366    N-1367    N-1368    N-1369    N-1370    N-1371
            N-1372    N-1373    N-1374    N-1375
        ENDCASE

        # scp_seg_id equals 20
        CASE 20
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED4_000
            N-1376    N-1377    N-1378    N-1379    N-1380    N-1381    N-1382    N-1383
            N-1384    N-1385    N-1386    N-1387
        ENDCASE

        # scp_seg_id equals 21
        CASE 21
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED5_000
            N-1388    N-1389    N-1390    N-1391    N-1392    N-1393    N-1394    N-1395
            N-1396    N-1397    N-1398    N-1399
        ENDCASE

        # scp_seg_id equals 22
        CASE 22
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED6_000
            N-1400    N-1401    N-1402    N-1403    N-1404    N-1405    N-1430    N-1431(32)
                      N-1432    N-1433    N-1434
        ENDCASE

        # scp_seg_id equals 23
        CASE 23
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED7_000
            N-1436    N-1438    N-1439    N-1440    N-1441    N-1442    N-1443    N-1444
            N-1445    N-1446    N-1447    N-0185
        ENDCASE

        # scp_seg_id equals 24
        CASE 24
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED0_000
            N-1450    N-1451    N-1452    N-1453(32)          N-1454    N-1458    N-0181
            skip 12   N-2030(4) skip 12   N-2080(4) N-2134
            N-2140
            define offset-=16
            N-2200(1) N-2201(1) N-2202(1) N-2203(1) N-2204(1) N-2205(1) N-2206(1) N-2207(1)
            N-2208(1) N-2209(1) N-2210(1) N-2211(1) N-2212(1) N-2213(1) skip 1    skip 1

        ENDCASE

        # scp_seg_id equals 25
        CASE 25
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED1_000
            N-2001    N-2002    N-2003    N-2004    N-2005    N-2006    N-2007    N-2009
            N-2013    N-2014    N-2020    N-2021
        ENDCASE

        # scp_seg_id equals 26
        CASE 26
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED2_000
            N-2051    N-2052    N-2053    N-2054    N-2055    N-2056    N-2057    N-2059
            N-2063    N-2064    N-2070    N-2071
        ENDCASE

        # scp_seg_id equals 27
        CASE 27
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED3_000
            N-2022    N-2023    N-2024    N-2025    N-2026    skip 12   N-2031(4) skip 14   N-2032(2)
            skip 14   N-2033(2) skip 15   N-2034(1) skip 15   N-2035(1) skip 13   N-2036(3)
            skip 13   N-2037(3)
        ENDCASE

        # scp_seg_id equals 28
        CASE 28
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED4_000
            N-2072    N-2073    N-2074    N-2075    N-2076    skip 12   N-2081(4) skip 14   N-2082(2)
            skip 14   N-2083(2) skip 15   N-2084(1) skip 15   N-2085(1) skip 13   N-2086(3)
            skip 13   N-2087(3)
        ENDCASE

        # scp_seg_id equals 29
        CASE 29
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED5_000
            N-2121    N-2122    N-2123    N-2124    N-2560
            N-2565
            define offset-=16
            N-2720(1) N-2721(1) N-2722(1) N-2723(1) N-2724(1) N-2725(1) N-2726(1) N-2727(1)
            N-2728(1) N-2729(1) N-2730(1) N-2731(1) N-2732(1) N-2733(1) N-2734(1) N-2735(1)
            N-2570
            define offset-=16
            N-2740(1) N-2741(1) N-2742(1) N-2743(1) N-2744(1) N-2745(1) N-2746(1) N-2747(1)
            N-2748(1) N-2749(1) N-2750(1) N-2751(1) N-2752(1) N-2753(1) N-2754(1) N-2755(1)
            N-2575    N-3010    N-3021    skip 13   N-3044(3)
            N-3046
            define offset-=16
            N-3240(1) N-3241(1) N-3242(1) N-3243(1) N-3244(1) N-3245(1) N-3246(1) N-3247(1)
            N-3248(2) N-3250(2) N-3252(2) N-3254(2)

        ENDCASE

        # scp_seg_id equals 30
        CASE 30
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED6_000
            N-3051    N-3052    N-3053    N-1110    N-1130    N-3060    N-1112    N-1113
            N-1114    N-1115    N-1116    N-1117
        ENDCASE

        # scp_seg_id equals 31
        CASE 31
            CALL NON_CONTROL_FAST_000
            CALL NON_CONTROL_MED7_000
            N-1118    N-1119    N-1120    N-1121    N-1124    N-1133    N-1139    N-1140
            N-1142    N-1144    N-1152    skip 12   N-1171(4)
        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK


BLOCK CONTROL_FAST_000
    define width = 16
    F-1030
    F-1024
    define offset-=16
    F-1520(1) F-1521(1) F-1522(1) F-1523(1) F-1524(1) F-1525(1) F-1526(1) F-1527(1)
    F-1528(1) F-1529(1) F-1530(1) F-1531(1) F-1532(1) F-1533(1) F-1534(1) F-1535(1)
    F-0333    F-0334    F-0335    F-0315    F-0316    F-0317    F-0318    F-0051
    F-1414    F-0561    F-1073
ENDBLOCK

BLOCK CONTROL_MED0_000
    define width = 16
    skip 12   F-0000(4) F-0040    F-0110    F-0120    F-0130    F-0140    F-0150
    F-0160
    F-0210
    define offset-=16
    F-0640(1) F-0641(1) F-0642(1) F-0643(1) F-0644(1) F-0645(1) F-0646(1) F-0647(1)
    F-0648(1) F-0649(1) F-0650(1) F-0651(1) F-0652(1) F-0653(1) F-0654(1) F-0655(1)
    F-3031
    F-1034
    define offset-=16
    F-1560(1) F-1561(1) F-1562(1) F-1563(1) F-1564(1) F-1565(1) F-1566(1) F-1567(1)
    F-1568(1) F-1569(1) F-1570(1) F-1571(1) F-1572(1) F-1573(1) F-1574(1) F-1575(1)
    F-1035
    define offset-=16
    F-1680(1) F-1681(1) F-1682(1) F-1683(1) F-1684(1) F-1685(1) F-1686(1) F-1687(1)
    F-1688(1) F-1689(1) F-1690(1) F-1691(1) F-1692(1) F-1693(1) F-1694(1) F-1695(1)

ENDBLOCK

BLOCK CONTROL_MED1_000
    define width = 16
    F-0190    F-0193    F-0194    F-0195    F-0198
    F-0200
    define offset-=16
    F-0620(1) F-0621(1) F-0622(1) F-0623(2) F-0625(1) F-0626(1) F-0627(2)
    F-0629(1) F-0630(1) F-0631(2) F-0633(1) F-0634(1) F-0635(1)
    F-0227    skip 12   F-0228(4) F-0260    F-0261
    F-0266
    define offset-=16
    F-0700(1) F-0701(1) F-0702(1) F-0703(1) skip 1    skip 1    skip 1    skip 1
    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
    F-0267
    define offset-=16
    F-0710(1) F-0711(1) F-0712(1) F-0713(1) skip 1    skip 1    skip 1    skip 1
    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1

ENDBLOCK

BLOCK CONTROL_MED2_000
    define width = 16
    F-0241    F-0242    F-0243    F-0244    F-0245    F-0246    F-0247    F-0248
    F-0251    F-0252    F-0253    F-0254
ENDBLOCK

BLOCK CONTROL_MED3_000
    define width = 16
    F-0283
    define offset-=16
    F-0740(1) F-0741(1) F-0742(1) F-0743(1) F-0744(1) F-0745(1) F-0746(1) F-0747(1)
    F-0748(1) F-0749(1) F-0750(1) F-0751(1) F-0752(1) F-0753(1) F-0754(1) F-0755(1)
    F-0290    F-0291    F-0292    F-0330    F-0331    F-0332    F-0339    F-0340
    F-0341
    F-1237
    define offset-=16
    F-1720(1) F-1721(1) F-1722(1) F-1723(1) F-1724(1) F-1725(1) F-1726(1) F-1727(1)
    F-1728(1) F-1729(1) F-1730(1) F-1731(1) F-1732(1) F-1733(1) F-1734(1) F-1735(1)
    F-1238
    define offset-=16
    F-1740(3) F-1743(4) F-1747(1)
    F-1748(2) F-1750(1) F-1751(1) F-1752(1) F-1753(1) F-1754(1) F-1755(1)

ENDBLOCK

BLOCK CONTROL_MED4_000
    define width = 16
    F-0345
    define offset-=16
    F-0760(1) F-0761(2) F-0763(1) F-0764(1) F-0765(11)

    F-0346
    define offset-=16
    F-0770(1) F-0771(2) F-0773(1) F-0774(1) F-0775(11)

    F-0347
    define offset-=16
    F-0780(1) F-0781(2) F-0783(1) F-0784(1) F-0785(11)

    F-0348
    define offset-=16
    F-0790(1) F-0791(2) F-0793(1) F-0794(1) F-0795(11)

    F-0355    F-0356    F-0357    F-0358    F-0480    F-0481    F-0482
    F-0277
    define offset-=16
    skip 1    skip 1    skip 1    skip 1    F-0884(4)
    F-0888(4) F-0892(4)

ENDBLOCK

BLOCK CONTROL_MED5_000
    define width = 16
    F-0440
    define offset-=16
    F-0840(8)
    F-0848(8)
    F-0442
    define offset-=16
    F-0860(8)
    F-0868(1) F-0869(1) F-0870(3) F-0873(3)
    skip 12   F-0444(4) F-0446    F-0447    F-0085    F-0086    F-0470    F-0471
    F-0472
    F-3040
    define offset-=16
    F-3200(1) F-3201(1) F-3202(1) F-3203(1) F-3204(1) F-3205(1) F-3206(1) F-3207(1)
    F-3208(1) F-3209(1) F-3210(1) F-3211(1) F-3212(1) F-3213(1) F-3214(1) F-3215(1)
    F-3042
    define offset-=16
    F-3220(1) F-3221(1) F-3222(1) F-3223(2) F-3225(1) F-3226(1) F-3227(1)
    F-3228(1) F-3229(1) F-3230(1) F-3231(1) F-3232(1) F-3233(1) F-3234(1) F-3235(1)

ENDBLOCK

BLOCK CONTROL_MED6_000
    define width = 16
    F-1000    F-1001    F-1002    F-1003(32)          F-1004    F-1005
    F-1092
    define offset-=16
    F-1580(1) F-1581(1) F-1582(1) F-1583(1) F-1584(1) F-1585(1) F-1586(1) F-1587(1)
    F-1588(1) F-1589(1) F-1590(6)
    F-1096
    define offset-=16
    F-1620(1) F-1621(1) F-1622(1) F-1623(1) F-1624(1) F-1625(1) F-1626(1) F-1627(1)
    F-1628(1) F-1629(1) F-1630(1) F-1631(1) F-1632(1) F-1633(3)
    F-1262
    F-1348
    define offset-=16
    F-1640(1) F-1641(1) F-1642(1) F-1643(1) F-1644(1) F-1645(1) F-1646(1) F-1647(1)
    F-1648(1) F-1649(1) F-1650(1) F-1651(1) F-1652(1) F-1653(1) F-1654(1) F-1655(1)
    F-1349
    define offset-=16
    F-1700(1) F-1701(1) F-1702(1) F-1703(1) F-1704(1) F-1705(1) F-1706(1) F-1707(1)
    F-1708(1) F-1709(1) F-1710(1) F-1711(1) F-1712(1) F-1713(1) F-1714(1) F-1715(1)

ENDBLOCK

BLOCK CONTROL_MED7_000
    define width = 16
    F-1455    F-1456    F-1457    F-1459    F-1460    F-1461    F-1462    F-1463
    F-2145
    define offset-=16
    F-2220(1) F-2221(1) F-2222(1) F-2223(1) F-2224(1) F-2225(1) F-2226(1) F-2227(1)
    F-2228(1) F-2229(1) F-2230(1) F-2231(1) F-2232(1) F-2233(1) F-2234(1) F-2235(1)
    F-2150
    define offset-=16
    F-2240(1) F-2241(1) F-2242(1) F-2243(1) F-2244(1) F-2245(1) F-2246(1) F-2247(1)
    F-2248(1) F-2249(1) F-2250(1) F-2251(1) F-2252(1) F-2253(1) F-2254(1) F-2255(1)
    F-2155
    define offset-=16
    F-2260(1) F-2261(1) F-2262(1) F-2263(1) F-2264(1) F-2265(1) F-2266(1) F-2267(1)
    F-2268(1) F-2269(1) F-2270(1) F-2271(1) F-2272(1) F-2273(1) F-2274(1) F-2275(1)
    F-1015
ENDBLOCK

BLOCK CONTROL_000
    define width = 16
    SWITCH scp_seg_id

        # scp_seg_id equals 0
        CASE 0
            CALL CONTROL_FAST_000
            CALL CONTROL_MED0_000
            F-0001    F-0002    F-0003    F-0004    F-0060    F-0061    F-0062    F-0063
            F-0321    F-0322    F-0323    F-0324
        ENDCASE

        # scp_seg_id equals 1
        CASE 1
            CALL CONTROL_FAST_000
            CALL CONTROL_MED1_000
            F-0070    F-0071    F-0072    F-0080    F-0094    F-0100    F-0101    F-0102
            F-0191    F-0197    F-0196    F-0192
        ENDCASE

        # scp_seg_id equals 2
        CASE 2
            CALL CONTROL_FAST_000
            CALL CONTROL_MED2_000
            skip 12   F-0201(4) F-0205(1) skip 15   F-0206(1) skip 15   F-0220    F-0262
            F-0263    F-0264    F-0265    skip 12   F-0268(4)
            F-0276
            define offset-=16
            F-0720(1) F-0721(1) skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
            skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
            F-0535(32)
        ENDCASE

        # scp_seg_id equals 3
        CASE 3
            CALL CONTROL_FAST_000
            CALL CONTROL_MED3_000
            F-0182    F-0184    F-0180    F-0020    F-0021    F-0022    F-0023    F-0024
            F-0025    F-0026    F-0027    F-0028
        ENDCASE

        # scp_seg_id equals 4
        CASE 4
            CALL CONTROL_FAST_000
            CALL CONTROL_MED4_000
            F-0287    F-0288    F-0289    F-0293    F-0294    F-0295    F-0475    skip 12   F-0476(4)
            F-0056    F-0057    F-2110    F-2111
        ENDCASE

        # scp_seg_id equals 5
        CASE 5
            CALL CONTROL_FAST_000
            CALL CONTROL_MED5_000
            F-0305    F-0306    F-0307    F-0552    F-0553    F-0559    F-0459    F-0551
            F-0560    F-0105    F-0106    F-0107
        ENDCASE

        # scp_seg_id equals 6
        CASE 6
            CALL CONTROL_FAST_000
            CALL CONTROL_MED6_000
            F-0336    F-0337    F-0338    F-0342    F-0343    F-0344    F-0381    F-0382
            F-0383    F-0411    F-0412    F-0413
        ENDCASE

        # scp_seg_id equals 7
        CASE 7
            CALL CONTROL_FAST_000
            CALL CONTROL_MED7_000
            F-0360    F-0361    F-0379    F-0363    F-0375    F-0377    F-0378    F-0362
            F-0380
            F-0385
            define offset-=16
            F-0800(1) F-0801(1) F-0802(1) F-0803(2) F-0805(1) F-0806(1) F-0807(2)
            F-0809(1) F-0810(1) F-0811(2) F-0813(1) F-0814(1) F-0815(1)
            skip 12   F-0388(4) F-0438
        ENDCASE

        # scp_seg_id equals 8
        CASE 8
            CALL CONTROL_FAST_000
            CALL CONTROL_MED0_000
            F-0390    F-0391    F-0409    F-0393    F-0405    F-0407    F-0408    F-0392
            F-0410
            F-0415
            define offset-=16
            F-0820(1) F-0821(1) F-0822(1) F-0823(2) F-0825(1) F-0826(1) F-0827(2)
            F-0829(1) F-0830(1) F-0831(2) F-0833(1) F-0834(1) F-0835(1)
            skip 12   F-0418(4) F-0439
        ENDCASE

        # scp_seg_id equals 9
        CASE 9
            CALL CONTROL_FAST_000
            CALL CONTROL_MED1_000
            F-0420    F-0421    F-0422    F-0427    F-0431    F-0432    F-0433    F-0434
            F-0435    F-0436    F-0448
            F-1465
            define offset-=16
            F-1760(1) F-1761(1) F-1762(1) F-1763(1) F-1764(1) F-1765(2) F-1767(1)
            F-1768(1) F-1769(1) F-1770(1) F-1771(1) F-1772(1) F-1773(1) F-1774(1) F-1775(1)

        ENDCASE

        # scp_seg_id equals 10
        CASE 10
            CALL CONTROL_FAST_000
            CALL CONTROL_MED2_000
            F-0450    F-0451    F-0452    F-0550    F-0455    F-0558    F-0457    F-0554
            F-0464    F-0461    F-0462    skip 12   F-0460(4)
        ENDCASE

        # scp_seg_id equals 11
        CASE 11
            CALL CONTROL_FAST_000
            CALL CONTROL_MED3_000
            F-0490    F-0491    F-0492    F-0495    F-0496    F-0497    F-0010    F-0011
            F-0012    F-0014    F-0015    F-0018
        ENDCASE

        # scp_seg_id equals 12
        CASE 12
            CALL CONTROL_FAST_000
            CALL CONTROL_MED4_000
            F-0521    F-0522    F-0523    F-0524    F-0525    F-0526    F-0527    F-0528
            F-0529    F-0530    F-0531    F-0532
        ENDCASE

        # scp_seg_id equals 13
        CASE 13
            CALL CONTROL_FAST_000
            CALL CONTROL_MED5_000
            F-0074
            F-1008
            define offset-=16
            F-1500(1) F-1501(1) F-1502(1) F-1503(1) F-1504(1) F-1505(1) F-1506(1) F-1507(1)
            F-1508(1) F-1509(1) F-1510(1) F-1511(1) F-1512(1) F-1513(1) F-1514(1) F-1515(1)
            F-1009
            define offset-=16
            F-1660(1) F-1661(1) F-1662(1) F-1663(1) F-1664(1) F-1665(1) F-1666(1) F-1667(1)
            F-1668(1) F-1669(1) F-1670(1) F-1671(1) F-1672(1) F-1673(1) F-1674(1) F-1675(1)
            F-1010(1) skip 15   F-1013    skip 12   F-1014(4) skip 12   F-1016(4) F-1017
            F-1018(32)          F-1019    F-1020
        ENDCASE

        # scp_seg_id equals 14
        CASE 14
            CALL CONTROL_FAST_000
            CALL CONTROL_MED6_000
            F-1021
            F-1026
            define offset-=16
            F-1540(1) F-1541(1) F-1542(1) F-1543(1) F-1544(1) F-1545(1) F-1546(1) F-1547(1)
            F-1548(1) F-1549(1) F-1550(1) F-1551(1) F-1552(1) F-1553(1) F-1554(1) F-1555(1)
            F-1031    F-1040    F-1041    F-1042    F-1043    F-1044    F-1045    F-1046
            F-1049(32)
        ENDCASE

        # scp_seg_id equals 15
        CASE 15
            CALL CONTROL_FAST_000
            CALL CONTROL_MED7_000
            F-1060    F-1061    F-1062    F-1063    F-1064    F-1065    F-1066    F-1067
            F-1070    F-1074    F-1080    F-1081
        ENDCASE

        # scp_seg_id equals 16
        CASE 16
            CALL CONTROL_FAST_000
            CALL CONTROL_MED0_000
            F-1090(32)          F-1100    F-1101    F-1102    F-1103    F-1104    F-0183
            skip 12   F-1236(4) F-1253    F-1254    F-1420
        ENDCASE

        # scp_seg_id equals 17
        CASE 17
            CALL CONTROL_FAST_000
            CALL CONTROL_MED1_000
            F-0030    F-0031    F-0032    F-0034    F-0035    F-0038
            F-0005
            define offset-=16
            F-0600(1) F-0601(1) F-0602(1) F-0603(1) F-0604(1) F-0605(1) F-0606(1) F-0607(1)
            F-0608(1) F-0609(1) F-0610(1) F-0611(1) F-0612(1) F-0613(1) F-0614(1) F-0615(1)
            F-0009
            define offset-=16
            F-0900(1) F-0901(1) F-0902(1) F-0903(1) F-0904(1) F-0905(1) F-0906(1) F-0907(1)
            F-0908(2) F-0910(2) F-0912(1) F-0913(1) F-0914(1) F-0915(1)
            skip 12   F-1256(4) F-1261    F-1350    F-1351
        ENDCASE

        # scp_seg_id equals 18
        CASE 18
            CALL CONTROL_FAST_000
            CALL CONTROL_MED2_000
            F-1352    F-1353    F-1354    F-1355    F-1356    F-1357    F-1358    F-1359
            F-1360    F-1361    F-1362    F-1363
        ENDCASE

        # scp_seg_id equals 19
        CASE 19
            CALL CONTROL_FAST_000
            CALL CONTROL_MED3_000
            F-1364    F-1365    F-1366    F-1367    F-1368    F-1369    F-1370    F-1371
            F-1372    F-1373    F-1374    F-1375
        ENDCASE

        # scp_seg_id equals 20
        CASE 20
            CALL CONTROL_FAST_000
            CALL CONTROL_MED4_000
            F-1376    F-1377    F-1378    F-1379    F-1380    F-1381    F-1382    F-1383
            F-1384    F-1385    F-1386    F-1387
        ENDCASE

        # scp_seg_id equals 21
        CASE 21
            CALL CONTROL_FAST_000
            CALL CONTROL_MED5_000
            F-1388    F-1389    F-1390    F-1391    F-1392    F-1393    F-1394    F-1395
            F-1396    F-1397    F-1398    F-1399
        ENDCASE

        # scp_seg_id equals 22
        CASE 22
            CALL CONTROL_FAST_000
            CALL CONTROL_MED6_000
            F-1400    F-1401    F-1402    F-1403    F-1404    F-1405    F-1430    F-1431(32)
                      F-1432    F-1433    F-1434
        ENDCASE

        # scp_seg_id equals 23
        CASE 23
            CALL CONTROL_FAST_000
            CALL CONTROL_MED7_000
            F-1436    F-1438    F-1439    F-1440    F-1441    F-1442    F-1443    F-1444
            F-1445    F-1446    F-1447    F-0185
        ENDCASE

        # scp_seg_id equals 24
        CASE 24
            CALL CONTROL_FAST_000
            CALL CONTROL_MED0_000
            F-1450    F-1451    F-1452    F-1453(32)          F-1454    F-1458    F-0181
            skip 12   F-2030(4) skip 12   F-2080(4) F-2134
            F-2140
            define offset-=16
            F-2200(1) F-2201(1) F-2202(1) F-2203(1) F-2204(1) F-2205(1) F-2206(1) F-2207(1)
            F-2208(1) F-2209(1) F-2210(1) F-2211(1) F-2212(1) F-2213(1) skip 1    skip 1

        ENDCASE

        # scp_seg_id equals 25
        CASE 25
            CALL CONTROL_FAST_000
            CALL CONTROL_MED1_000
            F-2001    F-2002    F-2003    F-2004    F-2005    F-2006    F-2007    F-2009
            F-2013    F-2014    F-2020    F-2021
        ENDCASE

        # scp_seg_id equals 26
        CASE 26
            CALL CONTROL_FAST_000
            CALL CONTROL_MED2_000
            F-2051    F-2052    F-2053    F-2054    F-2055    F-2056    F-2057    F-2059
            F-2063    F-2064    F-2070    F-2071
        ENDCASE

        # scp_seg_id equals 27
        CASE 27
            CALL CONTROL_FAST_000
            CALL CONTROL_MED3_000
            F-2022    F-2023    F-2024    F-2025    F-2026    skip 12   F-2031(4) skip 14   F-2032(2)
            skip 14   F-2033(2) skip 15   F-2034(1) skip 15   F-2035(1) skip 13   F-2036(3)
            skip 13   F-2037(3)
        ENDCASE

        # scp_seg_id equals 28
        CASE 28
            CALL CONTROL_FAST_000
            CALL CONTROL_MED4_000
            F-2072    F-2073    F-2074    F-2075    F-2076    skip 12   F-2081(4) skip 14   F-2082(2)
            skip 14   F-2083(2) skip 15   F-2084(1) skip 15   F-2085(1) skip 13   F-2086(3)
            skip 13   F-2087(3)
        ENDCASE

        # scp_seg_id equals 29
        CASE 29
            CALL CONTROL_FAST_000
            CALL CONTROL_MED5_000
            F-2121    F-2122    F-2123    F-2124    F-2560
            F-2565
            define offset-=16
            F-2720(1) F-2721(1) F-2722(1) F-2723(1) F-2724(1) F-2725(1) F-2726(1) F-2727(1)
            F-2728(1) F-2729(1) F-2730(1) F-2731(1) F-2732(1) F-2733(1) F-2734(1) F-2735(1)
            F-2570
            define offset-=16
            F-2740(1) F-2741(1) F-2742(1) F-2743(1) F-2744(1) F-2745(1) F-2746(1) F-2747(1)
            F-2748(1) F-2749(1) F-2750(1) F-2751(1) F-2752(1) F-2753(1) F-2754(1) F-2755(1)
            F-2575    F-3010    F-3021    skip 13   F-3044(3)
            F-3046
            define offset-=16
            F-3240(1) F-3241(1) F-3242(1) F-3243(1) F-3244(1) F-3245(1) F-3246(1) F-3247(1)
            F-3248(2) F-3250(2) F-3252(2) F-3254(2)

        ENDCASE

        # scp_seg_id equals 30
        CASE 30
            CALL CONTROL_FAST_000
            CALL CONTROL_MED6_000
            F-3051    F-3052    F-3053    F-1110    F-1130    F-3060    F-1112    F-1113
            F-1114    F-1115    F-1116    F-1117
        ENDCASE

        # scp_seg_id equals 31
        CASE 31
            CALL CONTROL_FAST_000
            CALL CONTROL_MED7_000
            F-1118    F-1119    F-1120    F-1121    F-1124    F-1133    F-1139    F-1140
            F-1142    F-1144    F-1152    skip 12   F-1171(4)
        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK


#######################################################################################
# SCP MISSION MODE DEFINITION BLOCK 000 (0 0 0000)                                    #
#######################################################################################

BLOCK F_CHAN_FAST_000
    define width = 16
    F-1030
    F-1024
    define offset-=16
    F-1520(1) F-1521(1) F-1522(1) F-1523(1) F-1524(1) F-1525(1) F-1526(1) F-1527(1)
    F-1528(1) F-1529(1) F-1530(1) F-1531(1) F-1532(1) F-1533(1) F-1534(1) F-1535(1)
    F-0333    F-0334    F-0335    F-0315    F-0316    F-0317    F-0318    F-0051
    F-1414
ENDBLOCK

BLOCK N_CHAN_FAST_000
    define width = 16
    N-1030
    N-1024
    define offset-=16
    N-1520(1) N-1521(1) N-1522(1) N-1523(1) N-1524(1) N-1525(1) N-1526(1) N-1527(1)
    N-1528(1) N-1529(1) N-1530(1) N-1531(1) N-1532(1) N-1533(1) N-1534(1) N-1535(1)
    N-0333    N-0334    N-0335    N-0315    N-0316    N-0317
ENDBLOCK

BLOCK F_CHAN_MED0_000
    define width = 16
    skip 12   F-0000(4) F-0040    F-0110    F-0120    F-0130    F-0140    F-0150
    F-0160    F-0190    F-0193    F-0195    F-0198
ENDBLOCK

BLOCK F_CHAN_MED1_000
    define width = 16
    F-0241    F-0242    F-0243    F-0244    F-0245    F-0246    F-0247    F-0248
    F-0251    F-0252    F-0253    F-0254
ENDBLOCK

BLOCK F_CHAN_MED2_000
    define width = 16
    F-0200
    define offset-=16
    F-0620(1) F-0621(1) F-0622(1) F-0623(2) F-0625(1) F-0626(1) F-0627(2)
    F-0629(1) F-0630(1) F-0631(2) F-0633(1) F-0634(1) F-0635(1)
    F-0210
    define offset-=16
    F-0640(1) F-0641(1) F-0642(1) F-0643(1) F-0644(1) F-0645(1) F-0646(1) F-0647(1)
    F-0648(1) F-0649(1) F-0650(1) F-0651(1) F-0652(1) F-0653(1) F-0654(1) F-0655(1)
    F-0227    skip 12   F-0228(4) F-0260    F-0261
    F-0266
    define offset-=16
    F-0700(1) F-0701(1) F-0702(1) F-0703(1) skip 1    skip 1    skip 1    skip 1
    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
    F-0267
    define offset-=16
    F-0710(1) F-0711(1) F-0712(1) F-0713(1) skip 1    skip 1    skip 1    skip 1
    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1    skip 1
    F-0470    F-0471    F-0472
    F-1092
    define offset-=16
    F-1580(1) F-1581(1) F-1582(1) F-1583(1) F-1584(1) F-1585(1) F-1586(1) F-1587(1)
    F-1588(1) F-1589(1) F-1590(6)

ENDBLOCK

BLOCK F_CHAN_MED3_000
    define width = 16
    F-0283
    define offset-=16
    F-0740(1) F-0741(1) F-0742(1) F-0743(1) F-0744(1) F-0745(1) F-0746(1) F-0747(1)
    F-0748(1) F-0749(1) F-0750(1) F-0751(1) F-0752(1) F-0753(1) F-0754(1) F-0755(1)
    F-0290    F-0291    F-0292    F-0330    F-0331    F-0332    F-0339    F-0340
    F-0341    skip 12   F-0460(4) F-1262
ENDBLOCK

BLOCK F_CHAN_MED4_000
    define width = 16
    F-0345
    define offset-=16
    F-0760(1) F-0761(2) F-0763(1) F-0764(1) F-0765(11)

    F-0346
    define offset-=16
    F-0770(1) F-0771(2) F-0773(1) F-0774(1) F-0775(11)

    F-0347
    define offset-=16
    F-0780(1) F-0781(2) F-0783(1) F-0784(1) F-0785(11)

    F-0348
    define offset-=16
    F-0790(1) F-0791(2) F-0793(1) F-0794(1) F-0795(11)

    F-0355    F-0356    F-0357    F-0358    F-0480    F-0481    F-0482
    F-0277
    define offset-=16
    skip 1    skip 1    skip 1    skip 1    F-0884(4)
    F-0888(4) F-0892(4)

ENDBLOCK

BLOCK F_CHAN_MED5_000
    define width = 16
    F-0440
    define offset-=16
    F-0840(8)
    F-0848(8)
    F-0442
    define offset-=16
    F-0860(8)
    F-0868(1) F-0869(1) F-0870(3) F-0873(3)
    skip 12   F-0444(4) F-1000    F-1002    F-1003(32)          F-1004    F-1005
    F-1096
    define offset-=16
    F-1620(1) F-1621(1) F-1622(1) F-1623(1) F-1624(1) F-1625(1) F-1626(1) F-1627(1)
    F-1628(1) F-1629(1) F-1630(1) F-1631(1) F-1632(1) F-1633(3)
    F-3040
    define offset-=16
    F-3200(1) F-3201(1) F-3202(1) F-3203(1) F-3204(1) F-3205(1) F-3206(1) F-3207(1)
    F-3208(1) F-3209(1) F-3210(1) F-3211(1) F-3212(1) F-3213(1) F-3214(1) F-3215(1)
    F-3042
    define offset-=16
    F-3220(1) F-3221(1) F-3222(1) F-3223(2) F-3225(1) F-3226(1) F-3227(1)
    F-3228(1) F-3229(1) F-3230(1) F-3231(1) F-3232(1) F-3233(1) F-3234(1) F-3235(1)

ENDBLOCK

BLOCK F_CHAN_MED6_000
    define width = 16
    F-1348
    define offset-=16
    F-1640(1) F-1641(1) F-1642(1) F-1643(1) F-1644(1) F-1645(1) F-1646(1) F-1647(1)
    F-1648(1) F-1649(1) F-1650(1) F-1651(1) F-1652(1) F-1653(1) F-1654(1) F-1655(1)
    F-1349
    define offset-=16
    F-1700(1) F-1701(1) F-1702(1) F-1703(1) F-1704(1) F-1705(1) F-1706(1) F-1707(1)
    F-1708(1) F-1709(1) F-1710(1) F-1711(1) F-1712(1) F-1713(1) F-1714(1) F-1715(1)
    F-1455    F-1456    F-1457    F-1459    F-1460    F-1461    F-1462    F-1463
    F-2145
    define offset-=16
    F-2220(1) F-2221(1) F-2222(1) F-2223(1) F-2224(1) F-2225(1) F-2226(1) F-2227(1)
    F-2228(1) F-2229(1) F-2230(1) F-2231(1) F-2232(1) F-2233(1) F-2234(1) F-2235(1)
    F-2150
    define offset-=16
    F-2240(1) F-2241(1) F-2242(1) F-2243(1) F-2244(1) F-2245(1) F-2246(1) F-2247(1)
    F-2248(1) F-2249(1) F-2250(1) F-2251(1) F-2252(1) F-2253(1) F-2254(1) F-2255(1)

ENDBLOCK

BLOCK F_CHAN_MED7_000
    define width = 16
    F-1034
    define offset-=16
    F-1560(1) F-1561(1) F-1562(1) F-1563(1) F-1564(1) F-1565(1) F-1566(1) F-1567(1)
    F-1568(1) F-1569(1) F-1570(1) F-1571(1) F-1572(1) F-1573(1) F-1574(1) F-1575(1)
    F-1035
    define offset-=16
    F-1680(1) F-1681(1) F-1682(1) F-1683(1) F-1684(1) F-1685(1) F-1686(1) F-1687(1)
    F-1688(1) F-1689(1) F-1690(1) F-1691(1) F-1692(1) F-1693(1) F-1694(1) F-1695(1)
    F-0360    F-0363    F-0377    F-0380
    F-0385
    define offset-=16
    F-0800(1) F-0801(1) F-0802(1) F-0803(2) F-0805(1) F-0806(1) F-0807(2)
    F-0809(1) F-0810(1) F-0811(2) F-0813(1) F-0814(1) F-0815(1)
    F-0390    F-0393    F-0407    F-0410
    F-0415
    define offset-=16
    F-0820(1) F-0821(1) F-0822(1) F-0823(2) F-0825(1) F-0826(1) F-0827(2)
    F-0829(1) F-0830(1) F-0831(2) F-0833(1) F-0834(1) F-0835(1)

ENDBLOCK

BLOCK SCP_MI_000
    define width = 16
    SWITCH scp_seg_id
        # scp_seg_id equals 0
        CASE 0
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED0_000
            F-0001    F-0002    F-0003    F-0004
            F-0005
            define offset-=16
            F-0600(1) F-0601(1) F-0602(1) F-0603(1) F-0604(1) F-0605(1) F-0606(1) F-0607(1)
            F-0608(1) F-0609(1) F-0610(1) F-0611(1) F-0612(1) F-0613(1) F-0614(1) F-0615(1)
            F-0009
            define offset-=16
            F-0900(1) F-0901(1) F-0902(1) F-0903(1) F-0904(1) F-0905(1) F-0906(1) F-0907(1)
            F-0908(2) F-0910(2) F-0912(1) F-0913(1) F-0914(1) F-0915(1)

            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 1
        CASE 1
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED1_000
            F-0060    F-0061    F-0062    F-0063    F-0080    F-0094
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 2
        CASE 2
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED2_000
            F-0070    F-0071    F-0072    F-0074    F-0075    F-0076
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 3
        CASE 3
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED3_000
            F-0105    F-0106    F-0107    F-0553    F-0559    F-0448
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 4
        CASE 4
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED4_000
            F-0459    F-0451    F-0550    F-0558    F-0554    F-0560
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 5
        CASE 5
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED5_000
            F-0194    skip 12   F-0201(4) F-0375    skip 12   F-0388(4) F-0405    skip 12   F-0418(4)
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 6
        CASE 6
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED6_000
            F-0262    F-0263    F-0264    F-0265    F-3100    F-3102
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 7
        CASE 7
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED7_000
            F-0287    F-0288    F-0289    F-0293    F-0294    F-0295
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 8
        CASE 8
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED0_000
            F-0305    F-0306    F-0307    F-0464    F-1080    F-1081
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 9
        CASE 9
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED1_000
            F-0336    F-0337    F-0338    F-0342    F-0343    F-0344
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 10
        CASE 10
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED2_000
            F-0381    F-0382    F-0383    F-0411    F-0412    F-0413
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 11
        CASE 11
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED3_000
            F-0452    F-0455    F-0450    F-0462    F-1420    F-1045
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 12
        CASE 12
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED4_000
            F-0521    F-0522    F-0523    F-0524    F-0525    F-0526
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 13
        CASE 13
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED5_000
            F-0527    F-0528    F-0529    F-0530    F-0531    F-0532
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 14
        CASE 14
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED6_000
            F-1008
            define offset-=16
            F-1500(1) F-1501(1) F-1502(1) F-1503(1) F-1504(1) F-1505(1) F-1506(1) F-1507(1)
            F-1508(1) F-1509(1) F-1510(1) F-1511(1) F-1512(1) F-1513(1) F-1514(1) F-1515(1)
            F-1009
            define offset-=16
            F-1660(1) F-1661(1) F-1662(1) F-1663(1) F-1664(1) F-1665(1) F-1666(1) F-1667(1)
            F-1668(1) F-1669(1) F-1670(1) F-1671(1) F-1672(1) F-1673(1) F-1674(1) F-1675(1)
            skip 12   F-1014(4) skip 12   F-1016(4) F-1018(32)
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 15
        CASE 15
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED7_000
            F-1026
            define offset-=16
            F-1540(1) F-1541(1) F-1542(1) F-1543(1) F-1544(1) F-1545(1) F-1546(1) F-1547(1)
            F-1548(1) F-1549(1) F-1550(1) F-1551(1) F-1552(1) F-1553(1) F-1554(1) F-1555(1)
            F-1031    F-1049(32)
            F-1237
            define offset-=16
            F-1720(1) F-1721(1) F-1722(1) F-1723(1) F-1724(1) F-1725(1) F-1726(1) F-1727(1)
            F-1728(1) F-1729(1) F-1730(1) F-1731(1) F-1732(1) F-1733(1) F-1734(1) F-1735(1)
            F-1238
            define offset-=16
            F-1740(3) F-1743(4) F-1747(1)
            F-1748(2) F-1750(1) F-1751(1) F-1752(1) F-1753(1) F-1754(1) F-1755(1)

            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 16
        CASE 16
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED0_000
            F-1101    F-1102    F-1103    F-1104    F-3031    skip 12   F-1236(4)
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 17
        CASE 17
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED1_000
            F-1253    F-1254    skip 12   F-1256(4) F-1261    F-2004    F-2054
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 18
        CASE 18
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED2_000
            F-2001    F-2002    F-2003    F-2051    F-2052    F-2053
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 19
        CASE 19
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED3_000
            F-1350    F-1351    F-1352    F-1353    F-1354    F-1355
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 20
        CASE 20
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED4_000
            F-1356    F-1357    F-1358    F-1359    F-1360    F-1361
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 21
        CASE 21
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED5_000
            F-1362    F-1363    F-1364    F-1365    F-1366    F-1367
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 22
        CASE 22
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED6_000
            F-1368    F-1369    F-1370    F-1371    F-1372    F-1373
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 23
        CASE 23
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED7_000
            F-1374    F-1375    F-1376    F-1377    F-1378    F-1379
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 24
        CASE 24
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED0_000
            F-1380    F-1381    F-1382    F-1383    F-1384    F-1385
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 25
        CASE 25
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED1_000
            F-1386    F-1387    F-1388    F-1389    F-1390    F-1391
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 26
        CASE 26
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED2_000
            F-1392    F-1393    F-1394    F-1395    F-1396    F-1397
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 27
        CASE 27
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED3_000
            F-1398    F-1399    F-1400    F-1401    F-1402    F-1403
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 28
        CASE 28
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED4_000
            F-1404    F-1405    F-1410
            F-2565
            define offset-=16
            F-2720(1) F-2721(1) F-2722(1) F-2723(1) F-2724(1) F-2725(1) F-2726(1) F-2727(1)
            F-2728(1) F-2729(1) F-2730(1) F-2731(1) F-2732(1) F-2733(1) F-2734(1) F-2735(1)
            F-2570
            define offset-=16
            F-2740(1) F-2741(1) F-2742(1) F-2743(1) F-2744(1) F-2745(1) F-2746(1) F-2747(1)
            F-2748(1) F-2749(1) F-2750(1) F-2751(1) F-2752(1) F-2753(1) F-2754(1) F-2755(1)
            F-3046
            define offset-=16
            F-3240(1) F-3241(1) F-3242(1) F-3243(1) F-3244(1) F-3245(1) F-3246(1) F-3247(1)
            F-3248(2) F-3250(2) F-3252(2) F-3254(2)

            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 29
        CASE 29
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED5_000
            F-1430    F-1438    F-1439    F-1440    F-1441    F-1442
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 30
        CASE 30
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED6_000
            F-1443    F-1444    F-1452    F-1450    F-1451    F-1458
            CALL N_CHAN_FAST_000
        ENDCASE

        # scp_seg_id equals 31
        CASE 31
            CALL F_CHAN_FAST_000
            CALL F_CHAN_MED7_000
            F-3051    F-3052    F-3053    F-3054    F-3055    F-3010
            CALL N_CHAN_FAST_000
        ENDCASE


        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# SCP EMERGENCY MODE DEFINITION BLOCK 000 (0 0 0000)                                  #
#######################################################################################

BLOCK SCP_EM_000
    define width = 16
    SWITCH scp_type

        CASE 0  # Non-Control SCP Channels
        N-1030    N-0315    N-0316    N-0317    N-0333    N-0334    N-0335    N-0290
        N-0291    N-0292    N-1460    N-0110    N-0130    N-0150
        N-0440
        define offset-=16
        N-0840(8)
        N-0848(8)
        N-0442
        define offset-=16
        N-0860(8)
        N-0868(1) N-0869(1) N-0870(3) N-0873(3)
        N-0345
        define offset-=16
        N-0760(1) N-0761(2) N-0763(1) N-0764(1) N-0765(11)

        N-0346
        define offset-=16
        N-0770(1) N-0771(2) N-0773(1) N-0774(1) N-0775(11)

        N-0347
        define offset-=16
        N-0780(1) N-0781(2) N-0783(1) N-0784(1) N-0785(11)

        N-0348
        define offset-=16
        N-0790(1) N-0791(2) N-0793(1) N-0794(1) N-0795(11)

        N-2002    N-2052    N-3021
        N-0277
        define offset-=16
        skip 1   skip 1   skip 1   skip 1   N-0884(4)
        N-0888(4) N-0892(4)
        skip 12   N-0444(4) N-0521    N-0522    N-0523    N-0524    N-0525    N-0526
        N-0527    N-0528    N-0529    N-0530    N-0531    N-0532
        ENDCASE

        CASE 1  # Control SCP Channels
        F-1030    F-0315    F-0316    F-0317    F-0333    F-0334    F-0335    F-0290
        F-0291    F-0292    F-1460    F-0110    F-0130    F-0150
        F-0440
        define offset-=16
        F-0840(8)
        F-0848(8)
        F-0442
        define offset-=16
        F-0860(8)
        F-0868(1) F-0869(1) F-0870(3) F-0873(3)
        F-0345
        define offset-=16
        F-0760(1) F-0761(2) F-0763(1) F-0764(1) F-0765(11)

        F-0346
        define offset-=16
        F-0770(1) F-0771(2) F-0773(1) F-0774(1) F-0775(11)

        F-0347
        define offset-=16
        F-0780(1) F-0781(2) F-0783(1) F-0784(1) F-0785(11)

        F-0348
        define offset-=16
        F-0790(1) F-0791(2) F-0793(1) F-0794(1) F-0795(11)

        F-2002    F-2052    F-3021
        F-0277
        define offset-=16
        skip 1   skip 1   skip 1   skip 1   F-0884(4)
        F-0888(4) F-0892(4)
        skip 12   F-0444(4) F-0521    F-0522    F-0523    F-0524    F-0525    F-0526
        F-0527    F-0528    F-0529    F-0530    F-0531    F-0532
        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# SCP EMERGENCY MODE DEFINITION BLOCK 016 (0 1 0000)                                  #
#######################################################################################

BLOCK SCP_EM_016
    define width = 16
    SWITCH scp_type

        CASE 0  # Non-Control SCP Channels
        N-1030    N-0315    N-0316    N-0317    N-0333    N-0334    N-0335    N-0290
        N-0291    N-0292    N-1460    N-0120    N-0140    N-0160
        N-0440
        define offset-=16
        N-0840(8)
        N-0848(8)
        N-0442
        define offset-=16
        N-0860(8)
        N-0868(1) N-0869(1) N-0870(3) N-0873(3)
        N-0345
        define offset-=16
        N-0760(1) N-0761(2) N-0763(1) N-0764(1) N-0765(11)

        N-0346
        define offset-=16
        N-0770(1) N-0771(2) N-0773(1) N-0774(1) N-0775(11)

        N-0347
        define offset-=16
        N-0780(1) N-0781(2) N-0783(1) N-0784(1) N-0785(11)

        N-0348
        define offset-=16
        N-0790(1) N-0791(2) N-0793(1) N-0794(1) N-0795(11)

        N-0190    N-0195    N-0360    N-0377    N-0390    N-0407    skip 12   N-0000(4)
        N-1034
        define offset-=16
        N-1560(1) N-1561(1) N-1562(1) N-1563(1) N-1564(1) N-1565(1) N-1566(1) N-1567(1)
        N-1568(1) N-1569(1) N-1570(1) N-1571(1) N-1572(1) N-1573(1) N-1574(1) N-1575(1)
        N-1035
        define offset-=16
        N-1680(1) N-1681(1) N-1682(1) N-1683(1) N-1684(1) N-1685(1) N-1686(1) N-1687(1)
        N-1688(1) N-1689(1) N-1690(1) N-1691(1) N-1692(1) N-1693(1) N-1694(1) N-1695(1)
        N-2565
        define offset-=16
        N-2720(1) N-2721(1) N-2722(1) N-2723(1) N-2724(1) N-2725(1) N-2726(1) N-2727(1)
        N-2728(1) N-2729(1) N-2730(1) N-2731(1) N-2732(1) N-2733(1) N-2734(1) N-2735(1)
        N-1024
        define offset-=16
        N-1520(1) N-1521(1) N-1522(1) N-1523(1) N-1524(1) N-1525(1) N-1526(1) N-1527(1)
        N-1528(1) N-1529(1) N-1530(1) N-1531(1) N-1532(1) N-1533(1) N-1534(1) N-1535(1)
        N-2150
        define offset-=16
        N-2240(1) N-2241(1) N-2242(1) N-2243(1) N-2244(1) N-2245(1) N-2246(1) N-2247(1)
        N-2248(1) N-2249(1) N-2250(1) N-2251(1) N-2252(1) N-2253(1) N-2254(1) N-2255(1)
        N-0210
        define offset-=16
        N-0640(1) N-0641(1) N-0642(1) N-0643(1) N-0644(1) N-0645(1) N-0646(1) N-0647(1)
        N-0648(1) N-0649(1) N-0650(1) N-0651(1) N-0652(1) N-0653(1) N-0654(1) N-0655(1)
        N-0283
        define offset-=16
        N-0740(1) N-0741(1) N-0742(1) N-0743(1) N-0744(1) N-0745(1) N-0746(1) N-0747(1)
        N-0748(1) N-0749(1) N-0750(1) N-0751(1) N-0752(1) N-0753(1) N-0754(1) N-0755(1)
        N-1348
        define offset-=16
        N-1640(1) N-1641(1) N-1642(1) N-1643(1) N-1644(1) N-1645(1) N-1646(1) N-1647(1)
        N-1648(1) N-1649(1) N-1650(1) N-1651(1) N-1652(1) N-1653(1) N-1654(1) N-1655(1)
        N-1349
        define offset-=16
        N-1700(1) N-1701(1) N-1702(1) N-1703(1) N-1704(1) N-1705(1) N-1706(1) N-1707(1)
        N-1708(1) N-1709(1) N-1710(1) N-1711(1) N-1712(1) N-1713(1) N-1714(1) N-1715(1)
        N-3040
        define offset-=16
        N-3200(1) N-3201(1) N-3202(1) N-3203(1) N-3204(1) N-3205(1) N-3206(1) N-3207(1)
        N-3208(1) N-3209(1) N-3210(1) N-3211(1) N-3212(1) N-3213(1) N-3214(1) N-3215(1)

        ENDCASE

        CASE 1  # Control SCP Channels
        F-1030    F-0315    F-0316    F-0317    F-0333    F-0334    F-0335    F-0290
        F-0291    F-0292    F-1460    F-0120    F-0140    F-0160
        F-0440
        define offset-=16
        F-0840(8)
        F-0848(8)
        F-0442
        define offset-=16
        F-0860(8)
        F-0868(1) F-0869(1) F-0870(3) F-0873(3)
        F-0345
        define offset-=16
        F-0760(1) F-0761(2) F-0763(1) F-0764(1) F-0765(11)

        F-0346
        define offset-=16
        F-0770(1) F-0771(2) F-0773(1) F-0774(1) F-0775(11)

        F-0347
        define offset-=16
        F-0780(1) F-0781(2) F-0783(1) F-0784(1) F-0785(11)

        F-0348
        define offset-=16
        F-0790(1) F-0791(2) F-0793(1) F-0794(1) F-0795(11)

        F-0190    F-0195    F-0360    F-0377    F-0390    F-0407    skip 12   F-0000(4)
        F-1034
        define offset-=16
        F-1560(1) F-1561(1) F-1562(1) F-1563(1) F-1564(1) F-1565(1) F-1566(1) F-1567(1)
        F-1568(1) F-1569(1) F-1570(1) F-1571(1) F-1572(1) F-1573(1) F-1574(1) F-1575(1)
        F-1035
        define offset-=16
        F-1680(1) F-1681(1) F-1682(1) F-1683(1) F-1684(1) F-1685(1) F-1686(1) F-1687(1)
        F-1688(1) F-1689(1) F-1690(1) F-1691(1) F-1692(1) F-1693(1) F-1694(1) F-1695(1)
        F-2565
        define offset-=16
        F-2720(1) F-2721(1) F-2722(1) F-2723(1) F-2724(1) F-2725(1) F-2726(1) F-2727(1)
        F-2728(1) F-2729(1) F-2730(1) F-2731(1) F-2732(1) F-2733(1) F-2734(1) F-2735(1)
        F-1024
        define offset-=16
        F-1520(1) F-1521(1) F-1522(1) F-1523(1) F-1524(1) F-1525(1) F-1526(1) F-1527(1)
        F-1528(1) F-1529(1) F-1530(1) F-1531(1) F-1532(1) F-1533(1) F-1534(1) F-1535(1)
        F-2150
        define offset-=16
        F-2240(1) F-2241(1) F-2242(1) F-2243(1) F-2244(1) F-2245(1) F-2246(1) F-2247(1)
        F-2248(1) F-2249(1) F-2250(1) F-2251(1) F-2252(1) F-2253(1) F-2254(1) F-2255(1)
        F-0210
        define offset-=16
        F-0640(1) F-0641(1) F-0642(1) F-0643(1) F-0644(1) F-0645(1) F-0646(1) F-0647(1)
        F-0648(1) F-0649(1) F-0650(1) F-0651(1) F-0652(1) F-0653(1) F-0654(1) F-0655(1)
        F-0283
        define offset-=16
        F-0740(1) F-0741(1) F-0742(1) F-0743(1) F-0744(1) F-0745(1) F-0746(1) F-0747(1)
        F-0748(1) F-0749(1) F-0750(1) F-0751(1) F-0752(1) F-0753(1) F-0754(1) F-0755(1)
        F-1348
        define offset-=16
        F-1640(1) F-1641(1) F-1642(1) F-1643(1) F-1644(1) F-1645(1) F-1646(1) F-1647(1)
        F-1648(1) F-1649(1) F-1650(1) F-1651(1) F-1652(1) F-1653(1) F-1654(1) F-1655(1)
        F-1349
        define offset-=16
        F-1700(1) F-1701(1) F-1702(1) F-1703(1) F-1704(1) F-1705(1) F-1706(1) F-1707(1)
        F-1708(1) F-1709(1) F-1710(1) F-1711(1) F-1712(1) F-1713(1) F-1714(1) F-1715(1)
        F-3040
        define offset-=16
        F-3200(1) F-3201(1) F-3202(1) F-3203(1) F-3204(1) F-3205(1) F-3206(1) F-3207(1)
        F-3208(1) F-3209(1) F-3210(1) F-3211(1) F-3212(1) F-3213(1) F-3214(1) F-3215(1)

        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# SCP EMERGENCY MODE DEFINITION BLOCK 032 (1 0 0000)                                  #
#######################################################################################

BLOCK SCP_EM_032
    define width = 16
    SWITCH scp_type

        CASE 0  # Non-Control SCP Channels
        N-1030    N-0315    N-0316    N-0317    N-0333    N-0334    N-0335    N-0290
        N-0291    N-0292    N-1460    N-0110    N-0130    N-0150
        N-0440
        define offset-=16
        N-0840(8)
        N-0848(8)
        N-0442
        define offset-=16
        N-0860(8)
        N-0868(1) N-0869(1) N-0870(3) N-0873(3)
        N-0345
        define offset-=16
        N-0760(1) N-0761(2) N-0763(1) N-0764(1) N-0765(11)

        N-0346
        define offset-=16
        N-0770(1) N-0771(2) N-0773(1) N-0774(1) N-0775(11)

        N-0347
        define offset-=16
        N-0780(1) N-0781(2) N-0783(1) N-0784(1) N-0785(11)

        N-0348
        define offset-=16
        N-0790(1) N-0791(2) N-0793(1) N-0794(1) N-0795(11)

        N-2002    N-2052    N-3021
        N-0277
        define offset-=16
        skip 1   skip 1   skip 1   skip 1   N-0884(4)
        N-0888(4) N-0892(4)
        skip 12   N-0444(4) N-0521    N-0522    N-0523    N-0524    N-0525    N-0526
        N-0527    N-0528    N-0529    N-0530    N-0531    N-0532
        ENDCASE

        CASE 1  # Control SCP Channels
        F-1030    F-0315    F-0316    F-0317    F-0333    F-0334    F-0335    F-0290
        F-0291    F-0292    F-1460    F-0110    F-0130    F-0150
        F-0440
        define offset-=16
        F-0840(8)
        F-0848(8)
        F-0442
        define offset-=16
        F-0860(8)
        F-0868(1) F-0869(1) F-0870(3) F-0873(3)
        F-0345
        define offset-=16
        F-0760(1) F-0761(2) F-0763(1) F-0764(1) F-0765(11)

        F-0346
        define offset-=16
        F-0770(1) F-0771(2) F-0773(1) F-0774(1) F-0775(11)

        F-0347
        define offset-=16
        F-0780(1) F-0781(2) F-0783(1) F-0784(1) F-0785(11)

        F-0348
        define offset-=16
        F-0790(1) F-0791(2) F-0793(1) F-0794(1) F-0795(11)

        F-2002    F-2052    F-3021
        F-0277
        define offset-=16
        skip 1   skip 1   skip 1   skip 1   F-0884(4)
        F-0888(4) F-0892(4)
        skip 12   F-0444(4) F-0521    F-0522    F-0523    F-0524    F-0525    F-0526
        F-0527    F-0528    F-0529    F-0530    F-0531    F-0532
        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK

#######################################################################################
# SCP EMERGENCY MODE DEFINITION BLOCK 048 (1 1 0000)                                  #
#######################################################################################

BLOCK SCP_EM_048
    define width = 16
    SWITCH scp_type

        CASE 0  # Non-Control SCP Channels
        N-1030    N-0315    N-0316    N-0317    N-0333    N-0334    N-0335    N-0290
        N-0291    N-0292    N-1460    N-0120    N-0140    N-0160
        N-0440
        define offset-=16
        N-0840(8)
        N-0848(8)
        N-0442
        define offset-=16
        N-0860(8)
        N-0868(1) N-0869(1) N-0870(3) N-0873(3)
        N-0345
        define offset-=16
        N-0760(1) N-0761(2) N-0763(1) N-0764(1) N-0765(11)

        N-0346
        define offset-=16
        N-0770(1) N-0771(2) N-0773(1) N-0774(1) N-0775(11)

        N-0347
        define offset-=16
        N-0780(1) N-0781(2) N-0783(1) N-0784(1) N-0785(11)

        N-0348
        define offset-=16
        N-0790(1) N-0791(2) N-0793(1) N-0794(1) N-0795(11)

        N-0190    N-0195    N-0360    N-0377    N-0390    N-0407    skip 12   N-0000(4)
        N-1034
        define offset-=16
        N-1560(1) N-1561(1) N-1562(1) N-1563(1) N-1564(1) N-1565(1) N-1566(1) N-1567(1)
        N-1568(1) N-1569(1) N-1570(1) N-1571(1) N-1572(1) N-1573(1) N-1574(1) N-1575(1)
        N-1035
        define offset-=16
        N-1680(1) N-1681(1) N-1682(1) N-1683(1) N-1684(1) N-1685(1) N-1686(1) N-1687(1)
        N-1688(1) N-1689(1) N-1690(1) N-1691(1) N-1692(1) N-1693(1) N-1694(1) N-1695(1)
        N-2565
        define offset-=16
        N-2720(1) N-2721(1) N-2722(1) N-2723(1) N-2724(1) N-2725(1) N-2726(1) N-2727(1)
        N-2728(1) N-2729(1) N-2730(1) N-2731(1) N-2732(1) N-2733(1) N-2734(1) N-2735(1)
        N-1024
        define offset-=16
        N-1520(1) N-1521(1) N-1522(1) N-1523(1) N-1524(1) N-1525(1) N-1526(1) N-1527(1)
        N-1528(1) N-1529(1) N-1530(1) N-1531(1) N-1532(1) N-1533(1) N-1534(1) N-1535(1)
        N-2150
        define offset-=16
        N-2240(1) N-2241(1) N-2242(1) N-2243(1) N-2244(1) N-2245(1) N-2246(1) N-2247(1)
        N-2248(1) N-2249(1) N-2250(1) N-2251(1) N-2252(1) N-2253(1) N-2254(1) N-2255(1)
        N-0210
        define offset-=16
        N-0640(1) N-0641(1) N-0642(1) N-0643(1) N-0644(1) N-0645(1) N-0646(1) N-0647(1)
        N-0648(1) N-0649(1) N-0650(1) N-0651(1) N-0652(1) N-0653(1) N-0654(1) N-0655(1)
        N-0283
        define offset-=16
        N-0740(1) N-0741(1) N-0742(1) N-0743(1) N-0744(1) N-0745(1) N-0746(1) N-0747(1)
        N-0748(1) N-0749(1) N-0750(1) N-0751(1) N-0752(1) N-0753(1) N-0754(1) N-0755(1)
        N-1348
        define offset-=16
        N-1640(1) N-1641(1) N-1642(1) N-1643(1) N-1644(1) N-1645(1) N-1646(1) N-1647(1)
        N-1648(1) N-1649(1) N-1650(1) N-1651(1) N-1652(1) N-1653(1) N-1654(1) N-1655(1)
        N-1349
        define offset-=16
        N-1700(1) N-1701(1) N-1702(1) N-1703(1) N-1704(1) N-1705(1) N-1706(1) N-1707(1)
        N-1708(1) N-1709(1) N-1710(1) N-1711(1) N-1712(1) N-1713(1) N-1714(1) N-1715(1)
        N-3040
        define offset-=16
        N-3200(1) N-3201(1) N-3202(1) N-3203(1) N-3204(1) N-3205(1) N-3206(1) N-3207(1)
        N-3208(1) N-3209(1) N-3210(1) N-3211(1) N-3212(1) N-3213(1) N-3214(1) N-3215(1)

        ENDCASE

        CASE 1  # Control SCP Channels
        F-1030    F-0315    F-0316    F-0317    F-0333    F-0334    F-0335    F-0290
        F-0291    F-0292    F-1460    F-0120    F-0140    F-0160
        F-0440
        define offset-=16
        F-0840(8)
        F-0848(8)
        F-0442
        define offset-=16
        F-0860(8)
        F-0868(1) F-0869(1) F-0870(3) F-0873(3)
        F-0345
        define offset-=16
        F-0760(1) F-0761(2) F-0763(1) F-0764(1) F-0765(11)

        F-0346
        define offset-=16
        F-0770(1) F-0771(2) F-0773(1) F-0774(1) F-0775(11)

        F-0347
        define offset-=16
        F-0780(1) F-0781(2) F-0783(1) F-0784(1) F-0785(11)

        F-0348
        define offset-=16
        F-0790(1) F-0791(2) F-0793(1) F-0794(1) F-0795(11)

        F-0190    F-0195    F-0360    F-0377    F-0390    F-0407    skip 12   F-0000(4)
        F-1034
        define offset-=16
        F-1560(1) F-1561(1) F-1562(1) F-1563(1) F-1564(1) F-1565(1) F-1566(1) F-1567(1)
        F-1568(1) F-1569(1) F-1570(1) F-1571(1) F-1572(1) F-1573(1) F-1574(1) F-1575(1)
        F-1035
        define offset-=16
        F-1680(1) F-1681(1) F-1682(1) F-1683(1) F-1684(1) F-1685(1) F-1686(1) F-1687(1)
        F-1688(1) F-1689(1) F-1690(1) F-1691(1) F-1692(1) F-1693(1) F-1694(1) F-1695(1)
        F-2565
        define offset-=16
        F-2720(1) F-2721(1) F-2722(1) F-2723(1) F-2724(1) F-2725(1) F-2726(1) F-2727(1)
        F-2728(1) F-2729(1) F-2730(1) F-2731(1) F-2732(1) F-2733(1) F-2734(1) F-2735(1)
        F-1024
        define offset-=16
        F-1520(1) F-1521(1) F-1522(1) F-1523(1) F-1524(1) F-1525(1) F-1526(1) F-1527(1)
        F-1528(1) F-1529(1) F-1530(1) F-1531(1) F-1532(1) F-1533(1) F-1534(1) F-1535(1)
        F-2150
        define offset-=16
        F-2240(1) F-2241(1) F-2242(1) F-2243(1) F-2244(1) F-2245(1) F-2246(1) F-2247(1)
        F-2248(1) F-2249(1) F-2250(1) F-2251(1) F-2252(1) F-2253(1) F-2254(1) F-2255(1)
        F-0210
        define offset-=16
        F-0640(1) F-0641(1) F-0642(1) F-0643(1) F-0644(1) F-0645(1) F-0646(1) F-0647(1)
        F-0648(1) F-0649(1) F-0650(1) F-0651(1) F-0652(1) F-0653(1) F-0654(1) F-0655(1)
        F-0283
        define offset-=16
        F-0740(1) F-0741(1) F-0742(1) F-0743(1) F-0744(1) F-0745(1) F-0746(1) F-0747(1)
        F-0748(1) F-0749(1) F-0750(1) F-0751(1) F-0752(1) F-0753(1) F-0754(1) F-0755(1)
        F-1348
        define offset-=16
        F-1640(1) F-1641(1) F-1642(1) F-1643(1) F-1644(1) F-1645(1) F-1646(1) F-1647(1)
        F-1648(1) F-1649(1) F-1650(1) F-1651(1) F-1652(1) F-1653(1) F-1654(1) F-1655(1)
        F-1349
        define offset-=16
        F-1700(1) F-1701(1) F-1702(1) F-1703(1) F-1704(1) F-1705(1) F-1706(1) F-1707(1)
        F-1708(1) F-1709(1) F-1710(1) F-1711(1) F-1712(1) F-1713(1) F-1714(1) F-1715(1)
        F-3040
        define offset-=16
        F-3200(1) F-3201(1) F-3202(1) F-3203(1) F-3204(1) F-3205(1) F-3206(1) F-3207(1)
        F-3208(1) F-3209(1) F-3210(1) F-3211(1) F-3212(1) F-3213(1) F-3214(1) F-3215(1)

        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK

#########################################################
# SCP SAFE MODE DEFINITION BLOCK 063 (DEFAULT)          #
#########################################################
BLOCK SCP_SAFE_063

    # This section of the decom is executed if the SCP table id equals 63.
    # Note: Safe Mode telemetry may be transmitted in any of the three
    # EDF formats.  There is only one SCP telemetry table, regardless
    # of the EDF mode in safemode.

    define width = 16
    SWITCH scp_type

        CASE 0  # Non-Control SCP Channels
        N-1030    N-0297    N-0298    N-0299    N-0290    N-0291    N-0292    N-0327
        N-0328    N-0329    N-3021    N-2002    N-2052    N-1110    skip 12   N-0444(4)
        skip 12   N-0477(4) N-0379    N-0362    N-0409    N-0392    N-0514    N-0515
        N-0516    N-0517    N-0518    N-0519
        N-3040
        define offset-=16
        N-3200(1) N-3201(1) N-3202(1) N-3203(1) N-3204(1) N-3205(1) N-3206(1) N-3207(1)
        N-3208(1) N-3209(1) N-3210(1) N-3211(1) N-3212(1) N-3213(1) N-3214(1) N-3215(1)
        N-1024
        define offset-=16
        N-1520(1) N-1521(1) N-1522(1) N-1523(1) N-1524(1) N-1525(1) N-1526(1) N-1527(1)
        N-1528(1) N-1529(1) N-1530(1) N-1531(1) N-1532(1) N-1533(1) N-1534(1) N-1535(1)
        N-1094
        define offset-=16
        N-1600(1) N-1601(1) N-1602(1) N-1603(1) N-1604(1) N-1605(3)
        N-1608(8)
        N-2150
        define offset-=16
        N-2240(1) N-2241(1) N-2242(1) N-2243(1) N-2244(1) N-2245(1) N-2246(1) N-2247(1)
        N-2248(1) N-2249(1) N-2250(1) N-2251(1) N-2252(1) N-2253(1) N-2254(1) N-2255(1)
        N-0440
        define offset-=16
        N-0840(8)
        N-0848(8)
        N-0442
        define offset-=16
        N-0860(8)
        N-0868(1) N-0869(1) N-0870(3) N-0873(3)
        N-1034
        define offset-=16
        N-1560(1) N-1561(1) N-1562(1) N-1563(1) N-1564(1) N-1565(1) N-1566(1) N-1567(1)
        N-1568(1) N-1569(1) N-1570(1) N-1571(1) N-1572(1) N-1573(1) N-1574(1) N-1575(1)
        N-2565
        define offset-=16
        N-2720(1) N-2721(1) N-2722(1) N-2723(1) N-2724(1) N-2725(1) N-2726(1) N-2727(1)
        N-2728(1) N-2729(1) N-2730(1) N-2731(1) N-2732(1) N-2733(1) N-2734(1) N-2735(1)
        N-0210
        define offset-=16
        N-0640(1) N-0641(1) N-0642(1) N-0643(1) N-0644(1) N-0645(1) N-0646(1) N-0647(1)
        N-0648(1) N-0649(1) N-0650(1) N-0651(1) N-0652(1) N-0653(1) N-0654(1) N-0655(1)
        N-1092
        define offset-=16
        N-1580(1) N-1581(1) N-1582(1) N-1583(1) N-1584(1) N-1585(1) N-1586(1) N-1587(1)
        N-1588(1) N-1589(1) N-1590(6)
        N-1348
        define offset-=16
        N-1640(1) N-1641(1) N-1642(1) N-1643(1) N-1644(1) N-1645(1) N-1646(1) N-1647(1)
        N-1648(1) N-1649(1) N-1650(1) N-1651(1) N-1652(1) N-1653(1) N-1654(1) N-1655(1)
        ENDCASE

        CASE 1  # Control SCP Channels
        F-1030    F-0297    F-0298    F-0299    F-0290    F-0291    F-0292    F-0327
        F-0328    F-0329    F-3021    F-2002    F-2052    F-1110    skip 12   F-0444(4)
        skip 12   F-0477(4) F-0379    F-0362    F-0409    F-0392    F-0514    F-0515
        F-0516    F-0517    F-0518    F-0519
        F-3040
        define offset-=16
        F-3200(1) F-3201(1) F-3202(1) F-3203(1) F-3204(1) F-3205(1) F-3206(1) F-3207(1)
        F-3208(1) F-3209(1) F-3210(1) F-3211(1) F-3212(1) F-3213(1) F-3214(1) F-3215(1)
        F-1024
        define offset-=16
        F-1520(1) F-1521(1) F-1522(1) F-1523(1) F-1524(1) F-1525(1) F-1526(1) F-1527(1)
        F-1528(1) F-1529(1) F-1530(1) F-1531(1) F-1532(1) F-1533(1) F-1534(1) F-1535(1)
        F-1094
        define offset-=16
        F-1600(1) F-1601(1) F-1602(1) F-1603(1) F-1604(1) F-1605(3)
        F-1608(8)
        F-2150
        define offset-=16
        F-2240(1) F-2241(1) F-2242(1) F-2243(1) F-2244(1) F-2245(1) F-2246(1) F-2247(1)
        F-2248(1) F-2249(1) F-2250(1) F-2251(1) F-2252(1) F-2253(1) F-2254(1) F-2255(1)
        F-0440
        define offset-=16
        F-0840(8)
        F-0848(8)
        F-0442
        define offset-=16
        F-0860(8)
        F-0868(1) F-0869(1) F-0870(3) F-0873(3)
        F-1034
        define offset-=16
        F-1560(1) F-1561(1) F-1562(1) F-1563(1) F-1564(1) F-1565(1) F-1566(1) F-1567(1)
        F-1568(1) F-1569(1) F-1570(1) F-1571(1) F-1572(1) F-1573(1) F-1574(1) F-1575(1)
        F-2565
        define offset-=16
        F-2720(1) F-2721(1) F-2722(1) F-2723(1) F-2724(1) F-2725(1) F-2726(1) F-2727(1)
        F-2728(1) F-2729(1) F-2730(1) F-2731(1) F-2732(1) F-2733(1) F-2734(1) F-2735(1)
        F-0210
        define offset-=16
        F-0640(1) F-0641(1) F-0642(1) F-0643(1) F-0644(1) F-0645(1) F-0646(1) F-0647(1)
        F-0648(1) F-0649(1) F-0650(1) F-0651(1) F-0652(1) F-0653(1) F-0654(1) F-0655(1)
        F-1092
        define offset-=16
        F-1580(1) F-1581(1) F-1582(1) F-1583(1) F-1584(1) F-1585(1) F-1586(1) F-1587(1)
        F-1588(1) F-1589(1) F-1590(6)
        F-1348
        define offset-=16
        F-1640(1) F-1641(1) F-1642(1) F-1643(1) F-1644(1) F-1645(1) F-1646(1) F-1647(1)
        F-1648(1) F-1649(1) F-1650(1) F-1651(1) F-1652(1) F-1653(1) F-1654(1) F-1655(1)
        ENDCASE

        DEFAULT
            skip 592
        ENDCASE

    ENDSWITCH
ENDBLOCK
CCSD3RE00000BBBBBBBBCCSD3RE00000AAAAAAAA
