Subversion Repositories Kolibri OS

Rev

Rev 233 | Rev 276 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. LOAD_FROM_FILE  equ 0
  3. LOAD_FROM_MEM   equ 1
  4. LOAD_INDIRECT   equ 2
  5. LOAD_SYSTEM     equ 3
  6. VIDEO_FREE      equ 2
  7.  
  8. struc BITMAPINFOHEADER {
  9.   .biSize          dd ? ; DWORD
  10.   .biWidth         dd ? ; LONG
  11.   .biHeight        dd ? ; LONG
  12.   .biPlanes        dw ? ; WORD
  13.   .biBitCount      dw ? ; WORD
  14.   .biCompression   dd ? ; DWORD
  15.   .biSizeImage     dd ? ; DWORD
  16.   .biXPelsPerMeter dd ? ; LONG
  17.   .biYPelsPerMeter dd ? ; LONG
  18.   .biClrUsed       dd ? ; DWORD
  19.   .biClrImportant  dd ? ; DWORD
  20. }
  21.  
  22. virtual at 0
  23.   BI BITMAPINFOHEADER
  24. end virtual
  25.  
  26. align 4
  27. proc vesa_init_cursor stdcall, dst:dword, src:dword
  28.            locals
  29.              rBase    dd ?
  30.              pQuad    dd ?
  31.              pBits    dd ?
  32.              pAnd     dd ?
  33.              width    dd ?
  34.              height   dd ?
  35.              counter  dd ?
  36.            endl
  37.  
  38.            mov esi, [src]
  39.            add esi,[esi+18]
  40.            mov eax,esi
  41.  
  42.            cmp [esi+BI.biBitCount], 24
  43.            je .img_24
  44.            cmp [esi+BI.biBitCount], 8
  45.            je .img_8
  46.            cmp [esi+BI.biBitCount], 4
  47.            je .img_4
  48.  
  49. .img_2:
  50.            add eax, [esi]
  51.            mov [pQuad],eax
  52.            add eax,8
  53.            mov [pBits],eax
  54.            add eax, 128
  55.            mov [pAnd],eax
  56.            mov eax,[esi+4]
  57.            mov [width],eax
  58.            mov ebx,[esi+8]
  59.            shr ebx,1
  60.            mov [height],ebx
  61.  
  62.            mov edi, [dst]
  63.            add edi, 32*31*4
  64.            mov [rBase],edi
  65.  
  66.            mov esi,[pQuad]
  67. .l21:
  68.            mov ebx, [pBits]
  69.            mov ebx, [ebx]
  70.            bswap ebx
  71.            mov eax, [pAnd]
  72.            mov eax, [eax]
  73.            bswap eax
  74.            mov [counter], 32
  75. @@:
  76.            xor edx, edx
  77.            shl eax,1
  78.            setc dl
  79.            dec edx
  80.  
  81.            xor ecx, ecx
  82.            shl ebx,1
  83.            setc cl
  84.            mov ecx, [esi+ecx*4]
  85.            and ecx, edx
  86.            and edx, 0xFF000000
  87.            or edx, ecx
  88.            mov [edi], edx
  89.  
  90.            add edi, 4
  91.            dec [counter]
  92.            jnz @B
  93.  
  94.            add [pBits], 4
  95.            add [pAnd], 4
  96.            mov edi,[rBase]
  97.            sub edi,128
  98.            mov [rBase],edi
  99.            sub [height],1
  100.            jnz .l21
  101.            ret
  102.  
  103. .img_4:
  104.            add eax, [esi]
  105.            mov [pQuad],eax
  106.            add eax,64
  107.            mov [pBits],eax
  108.            add eax, 0x200
  109.            mov [pAnd],eax
  110.            mov eax,[esi+4]
  111.            mov [width],eax
  112.            mov ebx,[esi+8]
  113.            shr ebx,1
  114.            mov [height],ebx
  115.  
  116.            mov edi, [dst]
  117.            add edi, 32*31*4
  118.            mov [rBase],edi
  119.  
  120.            mov esi,[pQuad]
  121.            mov ebx, [pBits]
  122. .l4:
  123.            mov eax, [pAnd]
  124.            mov eax, [eax]
  125.            bswap eax
  126.            mov [counter], 16
  127. @@:
  128.            xor edx, edx
  129.            shl eax,1
  130.            setc dl
  131.            dec edx
  132.  
  133.            movzx ecx, byte [ebx]
  134.            and cl, 0xF0
  135.            shr ecx, 2
  136.            mov ecx, [esi+ecx]
  137.            and ecx, edx
  138.            and edx, 0xFF000000
  139.            or edx, ecx
  140.            mov [edi], edx
  141.  
  142.            xor edx, edx
  143.            shl eax,1
  144.            setc dl
  145.            dec edx
  146.  
  147.            movzx ecx, byte [ebx]
  148.            and cl, 0x0F
  149.            mov ecx, [esi+ecx*4]
  150.            and ecx, edx
  151.            and edx, 0xFF000000
  152.            or edx, ecx
  153.            mov [edi+4], edx
  154.  
  155.            inc ebx
  156.            add edi, 8
  157.            dec [counter]
  158.            jnz @B
  159.  
  160.            add [pAnd], 4
  161.            mov edi,[rBase]
  162.            sub edi,128
  163.            mov [rBase],edi
  164.            sub [height],1
  165.            jnz .l4
  166.            ret
  167. .img_8:
  168.            add eax, [esi]
  169.            mov [pQuad],eax
  170.            add eax,1024
  171.            mov [pBits],eax
  172.            add eax, 1024
  173.            mov [pAnd],eax
  174.            mov eax,[esi+4]
  175.            mov [width],eax
  176.            mov ebx,[esi+8]
  177.            shr ebx,1
  178.            mov [height],ebx
  179.  
  180.            mov edi, [dst]
  181.            add edi, 32*31*4
  182.            mov [rBase],edi
  183.  
  184.            mov esi,[pQuad]
  185.            mov ebx, [pBits]
  186. .l81:
  187.            mov eax, [pAnd]
  188.            mov eax, [eax]
  189.            bswap eax
  190.            mov [counter], 32
  191. @@:
  192.            xor edx, edx
  193.            shl eax,1
  194.            setc dl
  195.            dec edx
  196.  
  197.            movzx ecx,  byte [ebx]
  198.            mov ecx, [esi+ecx*4]
  199.            and ecx, edx
  200.            and edx, 0xFF000000
  201.            or edx, ecx
  202.            mov [edi], edx
  203.  
  204.            inc ebx
  205.            add edi, 4
  206.            dec [counter]
  207.            jnz @B
  208.  
  209.            add [pAnd], 4
  210.            mov edi,[rBase]
  211.            sub edi,128
  212.            mov [rBase],edi
  213.            sub [height],1
  214.            jnz .l81
  215.            ret
  216. .img_24:
  217.            add eax, [esi]
  218.            mov [pQuad],eax
  219.            add eax, 0xC00
  220.            mov [pAnd],eax
  221.            mov eax,[esi+BI.biWidth]
  222.            mov [width],eax
  223.            mov ebx,[esi+BI.biHeight]
  224.            shr ebx,1
  225.            mov [height],ebx
  226.  
  227.            mov edi, [dst]
  228.            add edi, 32*31*4
  229.            mov [rBase],edi
  230.  
  231.            mov esi,[pAnd]
  232.            mov ebx, [pQuad]
  233. .row_24:
  234.            mov eax, [esi]
  235.            bswap eax
  236.            mov [counter], 32
  237. @@:
  238.            xor edx, edx
  239.            shl eax,1
  240.            setc dl
  241.            dec edx
  242.  
  243.            mov ecx, [ebx]
  244.            and ecx, 0x00FFFFFF
  245.            and ecx, edx
  246.            and edx, 0xFF000000
  247.            or edx, ecx
  248.            mov [edi], edx
  249.            add ebx, 3
  250.            add edi, 4
  251.            dec [counter]
  252.            jnz @B
  253.  
  254.            add esi, 4
  255.            mov edi,[rBase]
  256.            sub edi,128
  257.            mov [rBase],edi
  258.            sub [height],1
  259.            jnz .row_24
  260.            ret
  261. endp
  262.  
  263. align 4
  264. proc alloc_cursor
  265.  
  266.            pushfd
  267.            cli
  268.            mov ebx, [cursor_start]
  269.            mov ecx, [cursor_end]
  270. .l1:
  271.            bsf eax,[ebx];
  272.            jnz .found
  273.            add ebx,4
  274.            cmp ebx, ecx
  275.            jb .l1
  276.            popfd
  277.            xor eax,eax
  278.            ret
  279. .found:
  280.            btr [ebx], eax
  281.            popfd
  282.  
  283.            mov [cursor_start],ebx
  284.            sub ebx, cursor_map
  285.            lea eax,[eax+ebx*8]
  286.            shl eax,3
  287.            lea eax,[cursors+eax+eax*2]
  288.  
  289.            xor ebx, ebx
  290.            mov [eax+CURSOR.magic], 'CURS'
  291.            mov [eax+CURSOR.size],  CURSOR_SIZE
  292.            mov [eax+CURSOR.pid], ebx
  293.            mov [eax+CURSOR.hot_x], ebx
  294.            mov [eax+CURSOR.hot_y], ebx
  295.            ret
  296. endp
  297.  
  298. align 4
  299. proc free_cursor
  300.            pushfd
  301.            cli
  302.            xor edx, edx
  303.            mov ecx, CURSOR_SIZE
  304.            sub eax, cursors
  305.            div ecx
  306.            test edx, edx
  307.            jnz .exit
  308.  
  309.            mov ebx, cursor_map
  310.            bts [ebx], eax
  311.            shr eax, 3
  312.            and eax, not 3
  313.            add eax, ebx
  314.            cmp [cursor_start], eax
  315.            ja @f
  316. .exit:
  317.            popfd
  318.            ret
  319. @@:
  320.            mov [cursor_start], eax
  321.            popfd
  322.            ret
  323. endp
  324.  
  325.  
  326. align 4
  327. proc set_cursor stdcall, hcursor:dword
  328.            mov eax, [hcursor]
  329.            cmp [eax+CURSOR.magic], 'CURS'
  330.            jne .fail
  331.            cmp [eax+CURSOR.size], CURSOR_SIZE
  332.            jne .fail
  333.            mov ebx, [CURRENT_TASK]
  334.            shl ebx, 8
  335.            xchg eax, [ebx+PROC_BASE+APPDATA.cursor]
  336.            ret
  337. .fail:
  338.            mov eax, [def_cursor]
  339.            mov ebx, [CURRENT_TASK]
  340.            shl ebx, 8
  341.            xchg eax, [ebx+PROC_BASE+APPDATA.cursor]
  342.            ret
  343. endp
  344.  
  345. proc vesa_cursor stdcall, hcursor:dword, src:dword, flags:dword
  346.  
  347.            stdcall kernel_alloc, 0x1000
  348.            test eax, eax
  349.            jz .fail
  350.  
  351.            mov edi, [hcursor]
  352.            mov [edi+CURSOR.base], eax
  353.  
  354.            mov esi, [src]
  355.            mov ebx, [flags]
  356.            cmp bx, LOAD_INDIRECT
  357.            je .indirect
  358.  
  359.            movzx ecx, word [esi+10]
  360.            movzx edx, word [esi+12]
  361.            mov [edi+CURSOR.hot_x], ecx
  362.            mov [edi+CURSOR.hot_y], edx
  363.  
  364.            stdcall vesa_init_cursor, eax, esi
  365.            mov eax, [hcursor]
  366. .fail:
  367.            ret
  368. .indirect:
  369.            shr ebx, 16
  370.            movzx ecx, bh
  371.            movzx edx, bl
  372.            mov [eax+CURSOR.hot_x], ecx
  373.            mov [eax+CURSOR.hot_y], edx
  374.  
  375.            xchg edi, eax
  376.            mov ecx, 1024
  377.            cld
  378.            rep movsd
  379.            ret
  380. endp
  381.  
  382. align 4
  383. proc load_cursor stdcall, src:dword, flags:dword
  384.            locals
  385.              handle  dd ?
  386.            endl
  387.  
  388.            xor eax, eax
  389.            mov [handle], eax
  390.            cmp word [flags], LOAD_FROM_FILE
  391.            jne @F
  392.  
  393.            stdcall load_file, [src]
  394.            test eax, eax
  395.            jz .exit
  396.            mov [src], eax
  397. @@:
  398.            call alloc_cursor
  399.            test eax, eax
  400.            jz .fail
  401.  
  402.            mov ebx, [CURRENT_TASK]
  403.            shl ebx, 5
  404.            mov ebx, [0x3000+ebx+4]
  405.            mov [eax+CURSOR.pid], ebx
  406.  
  407.            stdcall [create_cursor], eax, [src], [flags]
  408.            mov [handle], eax
  409. .fail:
  410.            cmp word [flags], LOAD_FROM_FILE
  411.            jne .exit
  412.            stdcall kernel_free, [src]
  413. .exit:
  414.            mov eax, [handle]
  415.            ret
  416. endp
  417.  
  418. align 4
  419. proc delete_cursor stdcall, hcursor:dword
  420.            locals
  421.              hsrv       dd ?
  422.              io_code    dd ?
  423.              input      dd ?
  424.              inp_size   dd ?
  425.              output     dd ?
  426.              out_size   dd ?
  427.            endl
  428.  
  429.            mov esi, [hcursor]
  430.            cmp [esi+CURSOR.magic], 'CURS'
  431.            jne .fail
  432.            cmp [esi+CURSOR.size], CURSOR_SIZE
  433.            jne .fail
  434.  
  435.            mov ebx, [CURRENT_TASK]
  436.            shl ebx, 5
  437.            mov ebx, [0x3000+ebx+4]
  438.            cmp ebx, [esi+CURSOR.pid]
  439.            jne .fail
  440.  
  441.            mov ebx, [CURRENT_TASK]
  442.            shl ebx, 8
  443.            cmp esi, [ebx+PROC_BASE+APPDATA.cursor]
  444.            jne @F
  445.            mov eax, [def_cursor]
  446.            mov [ebx+PROC_BASE+APPDATA.cursor], eax
  447. @@:
  448.            mov eax, [hw_cursor]
  449.            test eax, eax
  450.            jz @F
  451.  
  452.            xor ebx, ebx
  453.            mov ecx, [esi+CURSOR.base]
  454.            mov [hsrv], eax
  455.            mov [io_code], VIDEO_FREE
  456.            mov [input], ecx
  457.            mov [inp_size], 4
  458.            mov [output], ebx
  459.            mov [out_size], ebx
  460.  
  461.            lea eax, [hsrv]
  462.            stdcall srv_handler, eax
  463.            jmp .exit
  464. @@:
  465.            stdcall kernel_free, [esi+CURSOR.base]
  466. .exit:
  467.            mov eax, [hcursor]
  468.            call free_cursor
  469.            ret
  470. .fail:
  471.            ret
  472. endp
  473.  
  474. align 4
  475. proc init_cursors
  476.            cmp [0xfe0c],word 0x13
  477.            jbe .fail
  478.  
  479.            movzx eax, byte [ScreenBPP]
  480.            mov ebx, [SCR_BYTES_PER_LINE]
  481.            cmp eax, 32
  482.            jne @F
  483.            sub ebx, 128
  484.            jmp .init
  485. @@:
  486.            cmp eax, 24
  487.            jne .fail
  488.            sub ebx, 96
  489. .init:
  490.            mov [cur_def_interl], ebx
  491.  
  492.            xor eax, eax
  493.            mov edi, cursors
  494.            mov ecx, CURSOR_SIZE*16
  495.            cld
  496.            rep stosd
  497.  
  498.            not eax
  499.            mov [cursor_map], eax
  500.            mov [cursor_map+4], eax
  501.            mov edx, cursor_map
  502.            mov [cursor_start], edx
  503.            add edx, 8
  504.            mov [cursor_end], edx
  505.  
  506.            stdcall load_driver, drv_hw_mouse
  507.            mov [hw_cursor], eax
  508.            test eax, eax
  509.            jz .sw_mouse
  510.  
  511.            stdcall load_cursor, def_arrow, dword LOAD_FROM_MEM
  512.            mov [def_cursor], eax
  513.            ret
  514. .sw_mouse:
  515.            mov [create_cursor], vesa_cursor
  516.  
  517.            stdcall load_cursor, def_arrow, dword LOAD_FROM_MEM
  518.            mov [def_cursor], eax
  519.  
  520.            mov ecx, [SCR_X_SIZE]
  521.            mov edx, [SCR_Y_SIZE]
  522.            inc ecx
  523.            inc edx
  524.            mov [scr_width], ecx
  525.            mov [scr_height], edx
  526.  
  527.            movzx ebx, byte [ScreenBPP]
  528.            cmp ebx, 32
  529.            jne @F
  530.  
  531.            mov dword [set_hw_cursor], cursor_32
  532.            mov dword [hw_restore], restore_32
  533.            ret
  534. @@:
  535.            mov dword [set_hw_cursor], cursor_24
  536.            mov dword [hw_restore], restore_24
  537.            ret
  538. .fail:
  539.            xor eax, eax
  540.            mov dword [set_hw_cursor], eax
  541.            mov dword [hw_restore], eax
  542.            ret
  543. endp
  544.  
  545. align 4
  546. proc restore_24 stdcall, x:dword, y:dword
  547.            locals
  548.              w  dd ?
  549.            endl
  550.  
  551.            mov edi, [cur_saved_base]
  552.            mov edx, [cur_saved_h]
  553.            mov ebx, [cur_saved_interl]
  554.  
  555.            mov esi, cur_saved_data
  556. @@:
  557.            mov ecx, [cur_saved_w]
  558.            lea ecx, [ecx+ecx*2]
  559.            rep movsb
  560.            add edi, ebx
  561.            dec edx
  562.            jnz @B
  563.            ret
  564. endp
  565.  
  566. align 4
  567. proc restore_32 stdcall, x:dword, y:dword
  568.            locals
  569.              w  dd ?
  570.            endl
  571.  
  572.            mov edi, [cur_saved_base]
  573.            mov edx, [cur_saved_h]
  574.            mov ebx, [cur_saved_interl]
  575.  
  576.            mov esi, cur_saved_data
  577. @@:
  578.            mov ecx, [cur_saved_w]
  579.            rep movsd
  580.            add edi, ebx
  581.            dec edx
  582.            jnz @B
  583.            ret
  584. endp
  585.  
  586. align 4
  587. proc cursor_24 stdcall, hcursor:dword, x:dword, y:dword
  588.            locals
  589.              w      dd ?
  590.              h      dd ?
  591.              st     dd ?
  592.              _dx     dd ?
  593.              _dy     dd ?
  594.            endl
  595.  
  596.            mov esi, [hcursor]
  597.            mov ecx, [x]
  598.            mov eax, [y]
  599.            mov ebx, [BytesPerScanLine]
  600.  
  601.            xor edx, edx
  602.            sub ecx, [esi+CURSOR.hot_x]
  603.            mov [x], ecx
  604.            sets dl
  605.            dec edx
  606.            and ecx, edx       ;clip x to 0<=x
  607.            mov edi, ecx
  608.            sub edi, [x]
  609.            mov [_dx], edi
  610.  
  611.            xor edx, edx
  612.            sub eax, [esi+CURSOR.hot_y]
  613.            mov [y], eax
  614.            sets dl
  615.            dec edx
  616.            and eax, edx       ;clip y to 0<=y
  617.            mov edi, eax
  618.            sub edi, [y]
  619.            mov [_dy], edi
  620.  
  621.            mul ebx
  622.            lea esi, [ecx+ecx*2]
  623.            add esi, [LFBAddress]
  624.            add esi, eax
  625.            mov [cur_saved_base],esi
  626.  
  627.            mov edi, [scr_width]
  628.            mov edx, [scr_height]
  629.            mov eax, 32
  630.  
  631.            sub edi, ecx
  632.            cmp edi, eax
  633.            jng @F
  634.            mov edi, eax
  635. @@:
  636.            sub edi, [_dx]
  637.  
  638.            sub edx, [y]
  639.            cmp edx, eax
  640.            jng @F
  641.            mov edx, eax
  642. @@:
  643.            sub edx, [_dy]
  644.  
  645.            mov [w], edi
  646.            mov [h], edx
  647.            mov [cur_saved_w], edi
  648.            mov [cur_saved_h], edx
  649.  
  650.            sub eax, edi
  651.            shl eax, 2       ;lea eax, [eax+eax*2]
  652.            lea edi, [edi+edi*2]
  653.            sub ebx, edi
  654.            mov [cur_saved_interl], ebx
  655.  
  656.            mov edi, cur_saved_data
  657. @@:
  658.            mov ecx, [w]
  659.            lea ecx, [ecx+ecx*2]
  660.            rep movsb
  661.            add esi, ebx
  662.            dec edx
  663.            jnz @B
  664.  
  665. ;draw cursor
  666.            mov edx, eax
  667.            mov edi, [cur_saved_base]
  668.            mov eax, [_dy]
  669.            shl eax, 5
  670.            add eax, [_dx]
  671.            shl eax, 2
  672.  
  673.            mov esi, [hcursor]
  674.            mov esi, [esi+CURSOR.base]
  675.            add esi, eax
  676. .row:
  677.            mov ecx, [w]
  678. .pix:
  679.            lodsd
  680.            test eax, 0xFF000000
  681.            jz @F
  682.  
  683.            mov word [edi], ax
  684.            shr eax, 16
  685.            mov [edi+2],al
  686. @@:
  687.            add edi, 3
  688.            dec ecx
  689.            jnz .pix
  690.  
  691.            add esi, edx
  692.            add edi, ebx
  693.            dec [h]
  694.            jnz .row
  695.            ret
  696. endp
  697.  
  698. align 4
  699. proc cursor_32 stdcall, hcursor:dword, x:dword, y:dword
  700.            locals
  701.              w      dd ?
  702.              h      dd ?
  703.              st     dd ?
  704.              _dx     dd ?
  705.              _dy     dd ?
  706.            endl
  707.  
  708.            mov esi, [hcursor]
  709.            mov ecx, [x]
  710.            mov eax, [y]
  711.            mov ebx, [BytesPerScanLine]
  712.  
  713.            xor edx, edx
  714.            sub ecx, [esi+CURSOR.hot_x]
  715.            mov [x], ecx
  716.            sets dl
  717.            dec edx
  718.            and ecx, edx       ;clip x to 0<=x
  719.            mov edi, ecx
  720.            sub edi, [x]
  721.            mov [_dx], edi
  722.  
  723.            xor edx, edx
  724.            sub eax, [esi+CURSOR.hot_y]
  725.            mov [y], eax
  726.            sets dl
  727.            dec edx
  728.            and eax, edx       ;clip y to 0<=y
  729.            mov edi, eax
  730.            sub edi, [y]
  731.            mov [_dy], edi
  732.  
  733.            mul ebx
  734.            lea esi, [eax+ecx*4]
  735.            add esi, [LFBAddress]
  736.            mov [cur_saved_base],esi
  737.  
  738.            mov edi, [scr_width]
  739.            mov edx, [scr_height]
  740.            mov eax, 32
  741.  
  742.            sub edi, ecx
  743.            cmp edi, eax
  744.            jng @F
  745.            mov edi, eax
  746. @@:
  747.            sub edi, [_dx]
  748.  
  749.            sub edx, [y]
  750.            cmp edx, eax
  751.            jng @F
  752.            mov edx, eax
  753. @@:
  754.            sub edx, [_dy]
  755.  
  756.            mov [w], edi
  757.            mov [h], edx
  758.            mov [cur_saved_w], edi
  759.            mov [cur_saved_h], edx
  760.  
  761.            sub eax, edi
  762.            shl eax, 2
  763.            shl edi, 2
  764.            sub ebx, edi
  765.            mov [cur_saved_interl], ebx
  766.  
  767.            mov edi, cur_saved_data
  768. @@:
  769.            mov ecx, [w]
  770.            rep movsd
  771.            add esi, ebx
  772.            dec edx
  773.            jnz @B
  774.  
  775. ;draw cursor
  776.            mov edx, eax
  777.            mov edi, [cur_saved_base]
  778.            mov eax, [_dy]
  779.            shl eax, 5
  780.            add eax, [_dx]
  781.            shl eax, 2
  782.  
  783.            mov esi, [hcursor]
  784.            mov esi, [esi+CURSOR.base]
  785.            add esi, eax
  786. .row:
  787.            mov ecx, [w]
  788. .pix:
  789.            lodsd
  790.            test eax, 0xFF000000
  791.            jz @F
  792.            mov [edi], eax
  793. @@:
  794.            add edi, 4
  795.            dec ecx
  796.            jnz .pix
  797.            add esi, edx
  798.            add edi, ebx
  799.            dec [h]
  800.            jnz .row
  801.            ret
  802. endp
  803.  
  804. align 4
  805. def_arrow:
  806.   file 'arrow.cur'
  807.  
  808.