home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / multtsk / tasks / tasks.dis < prev    next >
Encoding:
Text File  |  1994-06-19  |  26.3 KB  |  468 lines

  1.  
  2. Module: TASKS.PAS
  3. Group: 'DGROUP' _DATA,_BSS
  4.  
  5. Segment: TASKS_TEXT  PARA   0000049d bytes  
  6.  0000                    ADD_TASK:
  7.  0000  55                TASKS_001       push    bp
  8.  0001  89 e5                             mov     bp,sp
  9.  0003  b8 05 00                          mov     ax,0005H
  10.  0006  9a 00 00 00 00                    call    far SYSTEM_034
  11.  000b  83 ec 05                          sub     sp,0005H
  12.  000e  80 3e 00 00 64                    cmp     byte ptr L47,64H
  13.  0013  76 06                             jbe     L1
  14.  0015  c6 46 ff 01                       mov     byte ptr -1H[bp],01H
  15.  0019  eb 61                             jmp     L2
  16.  001b  a0 00 00          L1              mov     al,L47
  17.  001e  30 e4                             xor     ah,ah
  18.  0020  8b f8                             mov     di,ax
  19.  0022  d1 e7                             shl     di,1
  20.  0024  d1 e7                             shl     di,1
  21.  0026  81 c7 00 00                       add     di,offset TASKS_BSS-4H
  22.  002a  1e                                push    ds
  23.  002b  57                                push    di
  24.  002c  b8 08 00                          mov     ax,0008H
  25.  002f  50                                push    ax
  26.  0030  9a 00 00 00 00                    call    far SYSTEM_022
  27.  0035  a0 00 00                          mov     al,L47
  28.  0038  30 e4                             xor     ah,ah
  29.  003a  8b f8                             mov     di,ax
  30.  003c  d1 e7                             shl     di,1
  31.  003e  d1 e7                             shl     di,1
  32.  0040  c4 bd 00 00                       les     di,dword ptr TASKS_BSS-4H[di]
  33.  0044  89 7e fb                          mov     -5H[bp],di
  34.  0047  8c 46 fd                          mov     -3H[bp],es
  35.  004a  c4 46 08                          les     ax,dword ptr +8H[bp]
  36.  004d  8c c2                             mov     dx,es
  37.  004f  c4 7e fb                          les     di,dword ptr -5H[bp]
  38.  0052  26 89 05                          mov     es:[di],ax
  39.  0055  26 89 55 02                       mov     es:+2H[di],dx
  40.  0059  c4 46 0c                          les     ax,dword ptr +0cH[bp]
  41.  005c  8c c2                             mov     dx,es
  42.  005e  c4 7e fb                          les     di,dword ptr -5H[bp]
  43.  0061  26 89 45 04                       mov     es:+4H[di],ax
  44.  0065  26 89 55 06                       mov     es:+6H[di],dx
  45.  0069  c6 46 ff 00                       mov     byte ptr -1H[bp],00H
  46.  006d  a0 00 00                          mov     al,L47
  47.  0070  88 46 06                          mov     +6H[bp],al
  48.  0073  a0 00 00                          mov     al,L47
  49.  0076  30 e4                             xor     ah,ah
  50.  0078  40                                inc     ax
  51.  0079  a2 00 00                          mov     L47,al
  52.  007c  8a 46 ff          L2              mov     al,-1H[bp]
  53.  007f  89 ec                             mov     sp,bp
  54.  0081  5d                                pop     bp
  55.  0082  ca 0a 00                          retf    000aH
  56.  0085                    ADD_TASK_NUMBER:
  57.  0085  55                TASKS_002       push    bp
  58.  0086  89 e5                             mov     bp,sp
  59.  0088  b8 05 00                          mov     ax,0005H
  60.  008b  9a 00 00 00 00                    call    far SYSTEM_034
  61.  0090  83 ec 05                          sub     sp,0005H
  62.  0093  80 7e 0e 64                       cmp     byte ptr +0eH[bp],64H
  63.  0097  77 24                             ja      L3
  64.  0099  80 7e 0e 01                       cmp     byte ptr +0eH[bp],01H
  65.  009d  72 1e                             jb      L3
  66.  009f  8a 46 0e                          mov     al,+0eH[bp]
  67.  00a2  3a 06 00 00                       cmp     al,L47
  68.  00a6  73 15                             jae     L3
  69.  00a8  8a 46 0e                          mov     al,+0eH[bp]
  70.  00ab  30 e4                             xor     ah,ah
  71.  00ad  8b f8                             mov     di,ax
  72.  00af  d1 e7                             shl     di,1
  73.  00b1  d1 e7                             shl     di,1
  74.  00b3  8b 85 00 00                       mov     ax,TASKS_BSS-4H[di]
  75.  00b7  0b 85 00 00                       or      ax,TASKS_BSS-2H[di]
  76.  00bb  74 06                             je      L4
  77.  00bd  c6 46 ff 03       L3              mov     byte ptr -1H[bp],03H
  78.  00c1  eb 52                             jmp     L5
  79.  00c3  8a 46 0e          L4              mov     al,+0eH[bp]
  80.  00c6  30 e4                             xor     ah,ah
  81.  00c8  8b f8                             mov     di,ax
  82.  00ca  d1 e7                             shl     di,1
  83.  00cc  d1 e7                             shl     di,1
  84.  00ce  81 c7 00 00                       add     di,offset TASKS_BSS-4H
  85.  00d2  1e                                push    ds
  86.  00d3  57                                push    di
  87.  00d4  b8 08 00                          mov     ax,0008H
  88.  00d7  50                                push    ax
  89.  00d8  9a 00 00 00 00                    call    far SYSTEM_022
  90.  00dd  8a 46 0e                          mov     al,+0eH[bp]
  91.  00e0  30 e4                             xor     ah,ah
  92.  00e2  8b f8                             mov     di,ax
  93.  00e4  d1 e7                             shl     di,1
  94.  00e6  d1 e7                             shl     di,1
  95.  00e8  c4 bd 00 00                       les     di,dword ptr TASKS_BSS-4H[di]
  96.  00ec  89 7e fb                          mov     -5H[bp],di
  97.  00ef  8c 46 fd                          mov     -3H[bp],es
  98.  00f2  c4 46 06                          les     ax,dword ptr +6H[bp]
  99.  00f5  8c c2                             mov     dx,es
  100.  00f7  c4 7e fb                          les     di,dword ptr -5H[bp]
  101.  00fa  26 89 05                          mov     es:[di],ax
  102.  00fd  26 89 55 02                       mov     es:+2H[di],dx
  103.  0101  c4 46 0a                          les     ax,dword ptr +0aH[bp]
  104.  0104  8c c2                             mov     dx,es
  105.  0106  c4 7e fb                          les     di,dword ptr -5H[bp]
  106.  0109  26 89 45 04                       mov     es:+4H[di],ax
  107.  010d  26 89 55 06                       mov     es:+6H[di],dx
  108.  0111  c6 46 ff 00                       mov     byte ptr -1H[bp],00H
  109.  0115  8a 46 ff          L5              mov     al,-1H[bp]
  110.  0118  89 ec                             mov     sp,bp
  111.  011a  5d                                pop     bp
  112.  011b  ca 0a 00                          retf    000aH
  113.  011e                    SPACE_LEFT:
  114.  011e  55                TASKS_003       push    bp
  115.  011f  89 e5                             mov     bp,sp
  116.  0121  b8 01 00                          mov     ax,0001H
  117.  0124  9a 00 00 00 00                    call    far SYSTEM_034
  118.  0129  83 ec 01                          sub     sp,0001H
  119.  012c  a0 00 00                          mov     al,L47
  120.  012f  30 e4                             xor     ah,ah
  121.  0131  8b d0                             mov     dx,ax
  122.  0133  b8 64 00                          mov     ax,0064H
  123.  0136  2b c2                             sub     ax,dx
  124.  0138  40                                inc     ax
  125.  0139  88 46 ff                          mov     -1H[bp],al
  126.  013c  8a 46 ff                          mov     al,-1H[bp]
  127.  013f  89 ec                             mov     sp,bp
  128.  0141  5d                                pop     bp
  129.  0142  cb                                retf    
  130.  0143                    FIRST_SPACE:
  131.  0143  55                TASKS_004       push    bp
  132.  0144  89 e5                             mov     bp,sp
  133.  0146  b8 02 00                          mov     ax,0002H
  134.  0149  9a 00 00 00 00                    call    far SYSTEM_034
  135.  014e  83 ec 02                          sub     sp,0002H
  136.  0151  80 3e 00 00 64                    cmp     byte ptr L47,64H
  137.  0156  76 06                             jbe     L6
  138.  0158  c6 46 ff 00                       mov     byte ptr -1H[bp],00H
  139.  015c  eb 3b                             jmp     L10
  140.  015e  a0 00 00          L6              mov     al,L47
  141.  0161  88 46 fe                          mov     -2H[bp],al
  142.  0164  b0 01                             mov     al,01H
  143.  0166  3a 46 fe                          cmp     al,-2H[bp]
  144.  0169  77 2e                             ja      L10
  145.  016b  a2 00 00                          mov     L51,al
  146.  016e  eb 04                             jmp     L8
  147.  0170  fe 06 00 00       L7              inc     byte ptr L51
  148.  0174  a0 00 00          L8              mov     al,L51
  149.  0177  30 e4                             xor     ah,ah
  150.  0179  8b f8                             mov     di,ax
  151.  017b  d1 e7                             shl     di,1
  152.  017d  d1 e7                             shl     di,1
  153.  017f  8b 85 00 00                       mov     ax,TASKS_BSS-4H[di]
  154.  0183  0b 85 00 00                       or      ax,TASKS_BSS-2H[di]
  155.  0187  75 08                             jne     L9
  156.  0189  a0 00 00                          mov     al,L51
  157.  018c  88 46 ff                          mov     -1H[bp],al
  158.  018f  eb 08                             jmp     L10
  159.  0191  a0 00 00          L9              mov     al,L51
  160.  0194  3a 46 fe                          cmp     al,-2H[bp]
  161.  0197  75 d7                             jne     L7
  162.  0199  8a 46 ff          L10             mov     al,-1H[bp]
  163.  019c  89 ec                             mov     sp,bp
  164.  019e  5d                                pop     bp
  165.  019f  cb                                retf    
  166.  01a0                    DELETE_TASK:
  167.  01a0  55                TASKS_005       push    bp
  168.  01a1  89 e5                             mov     bp,sp
  169.  01a3  b8 01 00                          mov     ax,0001H
  170.  01a6  9a 00 00 00 00                    call    far SYSTEM_034
  171.  01ab  83 ec 01                          sub     sp,0001H
  172.  01ae  83 7e 08 00                       cmp     word ptr +8H[bp],0000H
  173.  01b2  7c 16                             jl      L12
  174.  01b4  7f 06                             jg      L11
  175.  01b6  83 7e 06 00                       cmp     word ptr +6H[bp],0000H
  176.  01ba  72 0e                             jb      L12
  177.  01bc  83 7e 08 00       L11             cmp     word ptr +8H[bp],0000H
  178.  01c0  7f 08                             jg      L12
  179.  01c2  7c 0c                             jl      L13
  180.  01c4  83 7e 06 64                       cmp     word ptr +6H[bp],0064H
  181.  01c8  76 06                             jbe     L13
  182.  01ca  c6 46 ff 03       L12             mov     byte ptr -1H[bp],03H
  183.  01ce  eb 42                             jmp     L15
  184.  01d0  8b 7e 06          L13             mov     di,+6H[bp]
  185.  01d3  d1 e7                             shl     di,1
  186.  01d5  d1 e7                             shl     di,1
  187.  01d7  8b 85 00 00                       mov     ax,TASKS_BSS-4H[di]
  188.  01db  0b 85 00 00                       or      ax,TASKS_BSS-2H[di]
  189.  01df  75 06                             jne     L14
  190.  01e1  c6 46 ff 04                       mov     byte ptr -1H[bp],04H
  191.  01e5  eb 2b                             jmp     L15
  192.  01e7  8b 7e 06          L14             mov     di,+6H[bp]
  193.  01ea  d1 e7                             shl     di,1
  194.  01ec  d1 e7                             shl     di,1
  195.  01ee  81 c7 00 00                       add     di,offset TASKS_BSS-4H
  196.  01f2  1e                                push    ds
  197.  01f3  57                                push    di
  198.  01f4  b8 08 00                          mov     ax,0008H
  199.  01f7  50                                push    ax
  200.  01f8  9a 00 00 00 00                    call    far SYSTEM_023
  201.  01fd  8b 7e 06                          mov     di,+6H[bp]
  202.  0200  d1 e7                             shl     di,1
  203.  0202  d1 e7                             shl     di,1
  204.  0204  31 c0                             xor     ax,ax
  205.  0206  89 85 00 00                       mov     TASKS_BSS-4H[di],ax
  206.  020a  89 85 00 00                       mov     TASKS_BSS-2H[di],ax
  207.  020e  c6 46 ff 00                       mov     byte ptr -1H[bp],00H
  208.  0212  8a 46 ff          L15             mov     al,-1H[bp]
  209.  0215  89 ec                             mov     sp,bp
  210.  0217  5d                                pop     bp
  211.  0218  ca 04 00                          retf    0004H
  212.  021b                    CHANGE_SCHEDULE:
  213.  021b  55                TASKS_006       push    bp
  214.  021c  89 e5                             mov     bp,sp
  215.  021e  b8 05 00                          mov     ax,0005H
  216.  0221  9a 00 00 00 00                    call    far SYSTEM_034
  217.  0226  83 ec 05                          sub     sp,0005H
  218.  0229  80 7e 0a 00                       cmp     byte ptr +0aH[bp],00H
  219.  022d  72 0f                             jb      L16
  220.  022f  80 7e 0a 64                       cmp     byte ptr +0aH[bp],64H
  221.  0233  77 09                             ja      L16
  222.  0235  8a 46 0a                          mov     al,+0aH[bp]
  223.  0238  3a 06 00 00                       cmp     al,L47
  224.  023c  72 06                             jb      L17
  225.  023e  c6 46 ff 03       L16             mov     byte ptr -1H[bp],03H
  226.  0242  eb 44                             jmp     L19
  227.  0244  8a 46 0a          L17             mov     al,+0aH[bp]
  228.  0247  30 e4                             xor     ah,ah
  229.  0249  8b f8                             mov     di,ax
  230.  024b  d1 e7                             shl     di,1
  231.  024d  d1 e7                             shl     di,1
  232.  024f  8b 85 00 00                       mov     ax,TASKS_BSS-4H[di]
  233.  0253  0b 85 00 00                       or      ax,TASKS_BSS-2H[di]
  234.  0257  75 06                             jne     L18
  235.  0259  c6 46 ff 04                       mov     byte ptr -1H[bp],04H
  236.  025d  eb 29                             jmp     L19
  237.  025f  8a 46 0a          L18             mov     al,+0aH[bp]
  238.  0262  30 e4                             xor     ah,ah
  239.  0264  8b f8                             mov     di,ax
  240.  0266  d1 e7                             shl     di,1
  241.  0268  d1 e7                             shl     di,1
  242.  026a  c4 bd 00 00                       les     di,dword ptr TASKS_BSS-4H[di]
  243.  026e  89 7e fb                          mov     -5H[bp],di
  244.  0271  8c 46 fd                          mov     -3H[bp],es
  245.  0274  c4 46 06                          les     ax,dword ptr +6H[bp]
  246.  0277  8c c2                             mov     dx,es
  247.  0279  c4 7e fb                          les     di,dword ptr -5H[bp]
  248.  027c  26 89 45 04                       mov     es:+4H[di],ax
  249.  0280  26 89 55 06                       mov     es:+6H[di],dx
  250.  0284  c6 46 ff 00                       mov     byte ptr -1H[bp],00H
  251.  0288  8a 46 ff          L19             mov     al,-1H[bp]
  252.  028b  89 ec                             mov     sp,bp
  253.  028d  5d                                pop     bp
  254.  028e  ca 06 00                          retf    0006H
  255.  0291                    SET_CRITERIA:
  256.  0291  55                TASKS_007       push    bp
  257.  0292  89 e5                             mov     bp,sp
  258.  0294  31 c0                             xor     ax,ax
  259.  0296  9a 00 00 00 00                    call    far SYSTEM_034
  260.  029b  8a 46 06                          mov     al,+6H[bp]
  261.  029e  a2 00 00                          mov     L50,al
  262.  02a1  89 ec                             mov     sp,bp
  263.  02a3  5d                                pop     bp
  264.  02a4  ca 02 00                          retf    0002H
  265.  02a7  55                TASKS_00A       push    bp
  266.  02a8  89 e5                             mov     bp,sp
  267.  02aa  b8 01 00                          mov     ax,0001H
  268.  02ad  9a 00 00 00 00                    call    far SYSTEM_034
  269.  02b2  83 ec 01                          sub     sp,0001H
  270.  02b5  a0 00 00                          mov     al,L50
  271.  02b8  3c 00                             cmp     al,00H
  272.  02ba  75 22                             jne     L22
  273.  02bc  c4 46 08                          les     ax,dword ptr +8H[bp]
  274.  02bf  8c c2                             mov     dx,es
  275.  02c1  c4 4e 04                          les     cx,dword ptr +4H[bp]
  276.  02c4  8c c3                             mov     bx,es
  277.  02c6  9a 00 00 00 00                    call    far SYSTEM_006
  278.  02cb  89 c8                             mov     ax,cx
  279.  02cd  89 da                             mov     dx,bx
  280.  02cf  09 d0                             or      ax,dx
  281.  02d1  74 04                             je      L20
  282.  02d3  b0 00                             mov     al,00H
  283.  02d5  eb 02                             jmp     L21
  284.  02d7  b0 01             L20             mov     al,01H
  285.  02d9  88 46 ff          L21             mov     -1H[bp],al
  286.  02dc  eb 5c                             jmp     L34
  287.  02de  3c 01             L22             cmp     al,01H
  288.  02e0  75 1a                             jne     L26
  289.  02e2  c4 46 08                          les     ax,dword ptr +8H[bp]
  290.  02e5  8c c2                             mov     dx,es
  291.  02e7  3b 56 06                          cmp     dx,+6H[bp]
  292.  02ea  75 05                             jne     L23
  293.  02ec  3b 46 04                          cmp     ax,+4H[bp]
  294.  02ef  74 04                             je      L24
  295.  02f1  b0 00             L23             mov     al,00H
  296.  02f3  eb 02                             jmp     L25
  297.  02f5  b0 01             L24             mov     al,01H
  298.  02f7  88 46 ff          L25             mov     -1H[bp],al
  299.  02fa  eb 3e                             jmp     L34
  300.  02fc  3c 02             L26             cmp     al,02H
  301.  02fe  75 1c                             jne     L30
  302.  0300  c4 46 08                          les     ax,dword ptr +8H[bp]
  303.  0303  8c c2                             mov     dx,es
  304.  0305  3b 56 06                          cmp     dx,+6H[bp]
  305.  0308  7f 0b                             jg      L28
  306.  030a  7c 05                             jl      L27
  307.  030c  3b 46 04                          cmp     ax,+4H[bp]
  308.  030f  77 04                             ja      L28
  309.  0311  b0 00             L27             mov     al,00H
  310.  0313  eb 02                             jmp     L29
  311.  0315  b0 01             L28             mov     al,01H
  312.  0317  88 46 ff          L29             mov     -1H[bp],al
  313.  031a  eb 1e                             jmp     L34
  314.  031c  3c 03             L30             cmp     al,03H
  315.  031e  75 1a                             jne     L34
  316.  0320  c4 46 08                          les     ax,dword ptr +8H[bp]
  317.  0323  8c c2                             mov     dx,es
  318.  0325  3b 56 06                          cmp     dx,+6H[bp]
  319.  0328  7c 0b                             jl      L32
  320.  032a  7f 05                             jg      L31
  321.  032c  3b 46 04                          cmp     ax,+4H[bp]
  322.  032f  72 04                             jb      L32
  323.  0331  b0 00             L31             mov     al,00H
  324.  0333  eb 02                             jmp     L33
  325.  0335  b0 01             L32             mov     al,01H
  326.  0337  88 46 ff          L33             mov     -1H[bp],al
  327.  033a  8a 46 ff          L34             mov     al,-1H[bp]
  328.  033d  89 ec                             mov     sp,bp
  329.  033f  5d                                pop     bp
  330.  0340  c2 08 00                          ret     0008H
  331.  0343                    RUN_TASKS:
  332.  0343  55                TASKS_008       push    bp
  333.  0344  89 e5                             mov     bp,sp
  334.  0346  b8 06 00                          mov     ax,0006H
  335.  0349  9a 00 00 00 00                    call    far SYSTEM_034
  336.  034e  83 ec 06                          sub     sp,0006H
  337.  0351  80 3e 00 00 01                    cmp     byte ptr L47,01H
  338.  0356  77 07                             ja      L35
  339.  0358  c6 46 ff 02                       mov     byte ptr -1H[bp],02H
  340.  035c  e9 80 00                          jmp     L40
  341.  035f  a0 00 00          L35             mov     al,L47
  342.  0362  30 e4                             xor     ah,ah
  343.  0364  48                                dec     ax
  344.  0365  88 46 fe                          mov     -2H[bp],al
  345.  0368  b0 01                             mov     al,01H
  346.  036a  3a 46 fe                          cmp     al,-2H[bp]
  347.  036d  77 6c                             ja      L39
  348.  036f  a2 00 00                          mov     L51,al
  349.  0372  eb 04                             jmp     L37
  350.  0374  fe 06 00 00       L36             inc     byte ptr L51
  351.  0378  a0 00 00          L37             mov     al,L51
  352.  037b  30 e4                             xor     ah,ah
  353.  037d  8b f8                             mov     di,ax
  354.  037f  d1 e7                             shl     di,1
  355.  0381  d1 e7                             shl     di,1
  356.  0383  8b 85 00 00                       mov     ax,TASKS_BSS-4H[di]
  357.  0387  0b 85 00 00                       or      ax,TASKS_BSS-2H[di]
  358.  038b  74 46                             je      L38
  359.  038d  a0 00 00                          mov     al,L51
  360.  0390  30 e4                             xor     ah,ah
  361.  0392  8b f8                             mov     di,ax
  362.  0394  d1 e7                             shl     di,1
  363.  0396  d1 e7                             shl     di,1
  364.  0398  c4 bd 00 00                       les     di,dword ptr TASKS_BSS-4H[di]
  365.  039c  89 7e fa                          mov     -6H[bp],di
  366.  039f  8c 46 fc                          mov     -4H[bp],es
  367.  03a2  c4 7e fa                          les     di,dword ptr -6H[bp]
  368.  03a5  26 c4 05                          les     ax,dword ptr es:[di]
  369.  03a8  8c c2                             mov     dx,es
  370.  03aa  a3 00 00                          mov     L48,ax
  371.  03ad  89 16 00 00                       mov     L49,dx
  372.  03b1  ff 76 08                          push    +8H[bp]
  373.  03b4  ff 76 06                          push    +6H[bp]
  374.  03b7  c4 7e fa                          les     di,dword ptr -6H[bp]
  375.  03ba  26 ff 75 06                       push    es:+6H[di]
  376.  03be  26 ff 75 04                       push    es:+4H[di]
  377.  03c2  e8 00 00                          call    TASKS_00A
  378.  03c5  08 c0                             or      al,al
  379.  03c7  74 0a                             je      L38
  380.  03c9  ff 76 08                          push    +8H[bp]
  381.  03cc  ff 76 06                          push    +6H[bp]
  382.  03cf  ff 1e 00 00                       call    dword ptr L48
  383.  03d3  a0 00 00          L38             mov     al,L51
  384.  03d6  3a 46 fe                          cmp     al,-2H[bp]
  385.  03d9  75 99                             jne     L36
  386.  03db  c6 46 ff 00       L39             mov     byte ptr -1H[bp],00H
  387.  03df  8a 46 ff          L40             mov     al,-1H[bp]
  388.  03e2  89 ec                             mov     sp,bp
  389.  03e4  5d                                pop     bp
  390.  03e5  ca 04 00                          retf    0004H
  391.  03e8                    RUN_TASK_NUMBER:
  392.  03e8  55                TASKS_009       push    bp
  393.  03e9  89 e5                             mov     bp,sp
  394.  03eb  b8 05 00                          mov     ax,0005H
  395.  03ee  9a 00 00 00 00                    call    far SYSTEM_034
  396.  03f3  83 ec 05                          sub     sp,0005H
  397.  03f6  80 7e 06 00                       cmp     byte ptr +6H[bp],00H
  398.  03fa  72 0f                             jb      L41
  399.  03fc  80 7e 06 64                       cmp     byte ptr +6H[bp],64H
  400.  0400  77 09                             ja      L41
  401.  0402  8a 46 06                          mov     al,+6H[bp]
  402.  0405  3a 06 00 00                       cmp     al,L47
  403.  0409  72 06                             jb      L42
  404.  040b  c6 46 ff 03       L41             mov     byte ptr -1H[bp],03H
  405.  040f  eb 4d                             jmp     L44
  406.  0411  8a 46 06          L42             mov     al,+6H[bp]
  407.  0414  30 e4                             xor     ah,ah
  408.  0416  8b f8                             mov     di,ax
  409.  0418  d1 e7                             shl     di,1
  410.  041a  d1 e7                             shl     di,1
  411.  041c  8b 85 00 00                       mov     ax,TASKS_BSS-4H[di]
  412.  0420  0b 85 00 00                       or      ax,TASKS_BSS-2H[di]
  413.  0424  75 06                             jne     L43
  414.  0426  c6 46 ff 04                       mov     byte ptr -1H[bp],04H
  415.  042a  eb 32                             jmp     L44
  416.  042c  a0 00 00          L43             mov     al,L51
  417.  042f  30 e4                             xor     ah,ah
  418.  0431  8b f8                             mov     di,ax
  419.  0433  d1 e7                             shl     di,1
  420.  0435  d1 e7                             shl     di,1
  421.  0437  c4 bd 00 00                       les     di,dword ptr TASKS_BSS-4H[di]
  422.  043b  89 7e fb                          mov     -5H[bp],di
  423.  043e  8c 46 fd                          mov     -3H[bp],es
  424.  0441  c4 7e fb                          les     di,dword ptr -5H[bp]
  425.  0444  26 c4 05                          les     ax,dword ptr es:[di]
  426.  0447  8c c2                             mov     dx,es
  427.  0449  a3 00 00                          mov     L48,ax
  428.  044c  89 16 00 00                       mov     L49,dx
  429.  0450  31 c0                             xor     ax,ax
  430.  0452  31 d2                             xor     dx,dx
  431.  0454  52                                push    dx
  432.  0455  50                                push    ax
  433.  0456  ff 1e 00 00                       call    dword ptr L48
  434.  045a  c6 46 ff 00                       mov     byte ptr -1H[bp],00H
  435.  045e  8a 46 ff          L44             mov     al,-1H[bp]
  436.  0461  89 ec                             mov     sp,bp
  437.  0463  5d                                pop     bp
  438.  0464  ca 02 00                          retf    0002H
  439.  0467                    TASKS_000:
  440.  0467  89 e5             TASKS_INIT      mov     bp,sp
  441.  0469  c6 06 00 00 01                    mov     byte ptr L47,01H
  442.  046e  c6 06 00 00 00                    mov     byte ptr L50,00H
  443.  0473  c6 06 00 00 01                    mov     byte ptr L51,01H
  444.  0478  eb 04                             jmp     L46
  445.  047a  fe 06 00 00       L45             inc     byte ptr L51
  446.  047e  a0 00 00          L46             mov     al,L51
  447.  0481  30 e4                             xor     ah,ah
  448.  0483  8b f8                             mov     di,ax
  449.  0485  d1 e7                             shl     di,1
  450.  0487  d1 e7                             shl     di,1
  451.  0489  31 c0                             xor     ax,ax
  452.  048b  89 85 00 00                       mov     TASKS_BSS-4H[di],ax
  453.  048f  89 85 00 00                       mov     TASKS_BSS-2H[di],ax
  454.  0493  80 3e 00 00 64                    cmp     byte ptr L51,64H
  455.  0498  75 e0                             jne     L45
  456.  049a  89 ec                             mov     sp,bp
  457.  049c  cb                                retf    
  458.  
  459. No disassembly errors
  460.  
  461. ------------------------------------------------------------
  462.  
  463. Segment: _BSS  WORD   00000197 bytes  
  464.  
  465. No disassembly errors
  466.  
  467. ------------------------------------------------------------
  468.