Subversion Repositories Kolibri OS

Rev

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

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;                               ;;
  3. ;;          DEVICE SETUP         ;;
  4. ;;                               ;;
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6.  
  7. ; Authors: Ville       - original version
  8. ;          A. Ivushkin - autostart (w launcher)
  9. ;          M. Lisovin  - added many feauters (apply all, save all, set time...)
  10. ;          I. Poddubny - fixed russian keymap
  11. ;14/08/06  Mario79 - added regulation of mouse features
  12. ;-------------------------------------------------------------------------------
  13.         use32
  14.         org 0x0
  15.  
  16.         db 'MENUET01'   ; 8 byte identifier
  17.         dd 0x01         ; header version
  18.         dd START        ; pointer to program start
  19.         dd IM_END       ; size of image
  20.         dd I_END        ;0x4000 ; reguired amount of memory
  21.         dd stack_area   ; stack pointer (esp)
  22.         dd I_PARAM      ; boot parameters
  23.         dd 0x0          ; path
  24. ;-------------------------------------------------------------------------------
  25. include '..\..\..\macros.inc'
  26. ;-------------------------------------------------------------------------------
  27. LLL equ (56+3)
  28. BBB equ 25
  29. ;-------------------------------------------------------------------------------
  30. apply_all:
  31.         call    _pci_acc    ;12
  32.         call    _syslang    ;5
  33.         call    _keyboard    ;2
  34.         call    _mouse_speed
  35.         call    _mouse_delay
  36.         ret
  37. ;-------------------------------------------------------------------------------
  38. apply_all_and_exit:
  39.         mcall   70,read_fileinfo
  40.         call    apply_all
  41.         jmp     close
  42. ;-------------------------------------------------------------------------------
  43. set_language_and_exit:
  44.         mcall   26,2,9
  45.         cmp     eax,1
  46.         je      russian
  47.  
  48.         xor     eax,eax
  49. ;--------------------------------------
  50. set_lang_now:
  51.         mov     [keyboard],eax
  52.         call    _keyboard
  53.         jmp     close
  54. ;--------------------------------------
  55. russian:
  56.         mov     eax,3
  57.         jmp     set_lang_now
  58. ;-------------------------------------------------------------------------------
  59. set_syslanguage_and_exit:
  60.         mcall   26,5
  61.         cmp     eax,6
  62.         jne     temp
  63.         xor     eax,eax
  64. ;--------------------------------------
  65. temp:
  66.         inc     eax
  67.         mov     [syslang],eax
  68.         call    _syslang
  69.         jmp     close
  70. ;-------------------------------------------------------------------------------
  71. get_setup_values:
  72.         mcall   26,2,9
  73.         dec     eax
  74.         mov     [keyboard],eax
  75.  
  76.         mcall   26,5
  77.         mov     [syslang],eax
  78.  
  79.         mcall   26,11
  80.         mov     [lba_read],eax
  81.  
  82.         mcall   26,12
  83.         mov     [pci_acc],eax
  84.  
  85.         mcall   18,19,0
  86.         mov     [mouse_speed],eax
  87.  
  88.         mcall   18,19,2
  89.         mov     [mouse_delay],eax
  90.         ret
  91. ;-------------------------------------------------------------------------------
  92. START:
  93.         cmp     [I_PARAM],'SLAN'
  94.         je      set_syslanguage_and_exit
  95.  
  96.         cmp     [I_PARAM],'LANG'
  97.         je      set_language_and_exit
  98.  
  99.         cmp     [I_PARAM],'BOOT'
  100.         je      apply_all_and_exit
  101.  
  102.         call    get_setup_values
  103.         call    loadtxt
  104. ;-------------------------------------------------------------------------------
  105. red:
  106.         call    draw_window
  107. ;-------------------------------------------------------------------------------
  108. still:
  109. sysevent:
  110.         mcall   23,8          ; wait here for event with timeout
  111.         cmp     eax,1
  112.         jz      red
  113.  
  114.         cmp     eax,2
  115.         jz      key
  116.  
  117.         cmp     eax,3
  118.         jz      button
  119.  
  120.         jmp     still
  121. ;-------------------------------------------------------------------------------
  122. key:
  123.         mcall   2
  124.         jmp     still
  125. ;-------------------------------------------------------------------------------
  126. button:
  127.         mcall   17
  128.         cmp     ah,99
  129.         jne     nosaveall
  130.         mcall   70,save_fileinfo
  131.         jmp     still
  132. ;--------------------------------------    
  133. nosaveall:
  134.         cmp     ah,100
  135.         jne     no_apply_all
  136.         call    apply_all
  137.         jmp     still
  138. ;--------------------------------------
  139. no_apply_all:
  140.         cmp     ah,1    ; CLOSE APPLICATION
  141.         jne     no_close
  142. ;--------------------------------------
  143. close:
  144.         or      eax,-1
  145.         mcall
  146. ;--------------------------------------
  147. no_close:
  148.         cmp     ah,4    ; SET KEYBOARD
  149.         jnz     nokm
  150.         mov     eax,[keyboard]
  151.         test    eax,eax
  152.         je      downuplbl
  153.         dec     eax
  154.         jmp     nodownup
  155. ;--------------------------------------
  156. downuplbl:
  157.         mov     eax,5
  158. ;--------------------------------------
  159. nodownup:
  160.         mov     [keyboard],eax
  161.         call    draw_infotext
  162. ;--------------------------------------
  163. nokm:
  164.         cmp     ah,5
  165.         jnz     nokp
  166.         mov     eax,[keyboard]
  167.         cmp     eax,5
  168.         je      updownlbl
  169.         inc     eax
  170.         jmp     noupdown
  171. ;--------------------------------------
  172. updownlbl:
  173.         xor     eax,eax
  174. ;--------------------------------------
  175. noupdown:
  176.         mov     [keyboard],eax
  177.         call    draw_infotext
  178. ;--------------------------------------
  179. nokp:
  180.         cmp     ah,92   ; SET LBA READ
  181.         jne     no_lba_d
  182. ;--------------------------------------
  183. slbal:
  184.         btc     [lba_read],0
  185.         call    draw_infotext
  186.         jmp     still
  187. ;--------------------------------------
  188. no_lba_d:
  189.         cmp     ah,93
  190.         jne     no_lba_i
  191.         jmp     slbal
  192. ;--------------------------------------
  193. no_lba_i:
  194.         cmp     ah,91
  195.         jne     no_set_lba_read
  196.         call    _lba_read
  197.         jmp     still
  198. ;--------------------------------------
  199. no_set_lba_read:
  200.         cmp     ah,102  ; SET PCI ACCESS
  201.         jne     no_pci_d
  202. ;--------------------------------------
  203. pcip:
  204.         btc     [pci_acc],0
  205.         call    draw_infotext
  206.         jmp     still
  207. ;--------------------------------------
  208. no_pci_d:
  209.         cmp     ah,103
  210.         jne     no_pci_i
  211.         jmp     pcip
  212. ;--------------------------------------
  213. no_pci_i:
  214.         cmp     ah,101
  215.         jne     no_set_pci_acc
  216.         call    _pci_acc
  217.         jmp     still
  218. ;--------------------------------------
  219. no_set_pci_acc:
  220.         cmp     ah,42   ; SET SYSTEM LANGUAGE BASE
  221.         jnz     nosysm
  222.         mov     eax,[syslang]
  223.         dec     eax
  224.         jz      still
  225.         mov     [syslang],eax
  226.         call    draw_infotext
  227. ;--------------------------------------
  228. nosysm:
  229.         cmp     ah,43
  230.         jnz     nosysp
  231.         mov     eax,[syslang]
  232.         cmp     eax,6
  233.         je      nosysp
  234.         inc     eax
  235.         mov     [syslang],eax
  236.         call    draw_infotext
  237. ;--------------------------------------
  238. nosysp:
  239.         cmp     ah,41
  240.         jnz     nosyss
  241.         call    _syslang
  242.         call    cleantxt
  243.         call    loadtxt
  244.         call    draw_window
  245. ;--------------------------------------
  246. nosyss:
  247.         cmp     ah,132  ; SET MOUSE SPEED
  248.         jnz     .nominus
  249.         mov     eax,[mouse_speed]
  250.         sub     eax,2
  251.         cmp     eax,9
  252.         jb      @f
  253.         mov     eax,8
  254. ;--------------------------------------
  255. @@:
  256.         inc     eax
  257.         mov     [mouse_speed],eax
  258.         call    draw_infotext
  259. ;--------------------------------------
  260. .nominus:
  261.         cmp     ah,133
  262.         jnz     .noplus
  263.         mov     eax,[mouse_speed]
  264.         cmp     eax,9
  265.         jb      @f
  266.         mov     eax,0
  267. ;--------------------------------------
  268. @@:
  269.         inc     eax
  270.         mov     [mouse_speed],eax
  271.         call    draw_infotext
  272. ;--------------------------------------
  273. .noplus:
  274.         cmp     ah,131
  275.         jnz     .noapply
  276.         call    _mouse_speed
  277. ;--------------------------------------    
  278. .noapply:
  279. mousedelay:
  280.         cmp     ah,142        ; SET MOUSE DELAY
  281.         jnz     .nominus
  282.         mov     eax,[mouse_delay]
  283.         sub     eax,2
  284.         cmp     eax,0xfff
  285.         jb      @f
  286.         mov     eax,0xffe
  287. ;--------------------------------------
  288. @@:
  289.         inc     eax
  290.         mov     [mouse_delay],eax
  291.         call    draw_infotext
  292. ;--------------------------------------
  293. .nominus:
  294.         cmp     ah,143
  295.         jnz     .noplus
  296.         mov     eax,[mouse_delay]
  297.         cmp     eax,0xfff
  298.         jb      @f
  299.         mov     eax,0
  300. ;--------------------------------------
  301. @@:
  302.         inc     eax
  303.         mov     [mouse_delay],eax
  304.         call    draw_infotext
  305. ;--------------------------------------
  306. .noplus:
  307.         cmp     ah,141
  308.         jnz     .noapply
  309.         call    _mouse_delay
  310. ;--------------------------------------
  311. .noapply:
  312.         cmp     ah,3          ; SET KEYMAP
  313.         jne     still
  314.         call    _keyboard
  315.         jmp     still
  316. ;-------------------------------------------------------------------------------
  317. _keyboard:
  318.         cmp     [keyboard],0    ; english
  319.         jnz     nosetkeyle
  320.        
  321.         mcall   21,2,1,en_keymap
  322.        
  323.         inc     ecx
  324.         mcall   21,,,en_keymap_shift
  325.  
  326.         mcall   21,,9,1
  327.         call    alt_gen
  328. ;--------------------------------------
  329. nosetkeyle:
  330.         cmp     [keyboard],1    ; finnish
  331.         jnz     nosetkeylfi
  332.  
  333.         mcall   21,2,1,fi_keymap
  334.        
  335.         inc     ecx
  336.         mcall   21,,,fi_keymap_shift
  337.  
  338.         mcall   21,,9,2
  339.         call    alt_gen
  340. ;--------------------------------------
  341. nosetkeylfi:
  342.         cmp  [keyboard],2       ; german
  343.         jnz  nosetkeylge
  344.  
  345.         mcall   21,2,1,ge_keymap
  346.        
  347.         inc     ecx
  348.         mcall   21,,,ge_keymap_shift
  349.  
  350.         mcall   21,,9,3
  351.         call    alt_gen
  352. ;--------------------------------------
  353. nosetkeylge:
  354.         cmp     [keyboard],3    ; russian
  355.         jnz     nosetkeylru
  356.    
  357.         mcall   21,2,1,ru_keymap
  358.        
  359.         inc     ecx
  360.         mcall   21,,,ru_keymap_shift
  361.  
  362.         mcall   21,,9,4
  363.         call    alt_gen
  364. ;--------------------------------------
  365. nosetkeylru:
  366.         cmp     [keyboard],4    ;french
  367.         jnz     nosetkeylfr
  368.  
  369.         mcall   21,2,1,fr_keymap
  370.        
  371.         inc     ecx
  372.         mcall   21,,,fr_keymap_shift
  373.  
  374.         inc  ecx
  375.         mcall   21,,,fr_keymap_alt_gr
  376.  
  377.         mcall   21,,9,5
  378. ;--------------------------------------
  379. nosetkeylfr:
  380.         cmp     [keyboard],5    ; estonian
  381.         jnz     nosetkeylet
  382.  
  383.         mcall   21,2,1,et_keymap
  384.        
  385.         inc     ecx
  386.         mcall   21,,,et_keymap_shift
  387.  
  388.         mcall   21,,9,6
  389.         call    alt_gen
  390. ;--------------------------------------
  391. nosetkeylet:
  392.         ret
  393. ;-------------------------------------------------------------------------------
  394. alt_gen:
  395.         mcall   21,,3,alt_general
  396.         ret
  397. ;-------------------------------------------------------------------------------
  398. draw_buttons:
  399.         pusha
  400.         shl  ecx,16
  401.         add  ecx,12
  402.         mcall   8,<(350-57),(46+BBB)>
  403.  
  404.         inc     edx
  405.         mcall   ,<(350-85),9>
  406.  
  407.         inc     edx
  408.         mcall   ,<(350-73),9>
  409.  
  410.         popa
  411.         ret
  412. ;-------------------------------------------------------------------------------
  413. ; ********************************************
  414. ; ******* WINDOW DEFINITIONS AND DRAW  *******
  415. ; ********************************************
  416. draw_window:
  417.         pusha
  418.         mcall   12,1
  419.  
  420.         xor     eax,eax       ; DRAW WINDOW
  421.         xor     esi,esi
  422.         mcall   ,<40,(355+BBB)>,<40,(12*15)>,0xB4111199,,title
  423.  
  424.         mcall   8,<(350-85),100>,<(5+14*8),12>,100,0x005588dd   ; APPLY ALL
  425.  
  426.         add     ecx,16*65536          ; SAVE ALL
  427.         dec     edx
  428.         mcall
  429.  
  430.         mov     esi,0x5580c0
  431.  
  432.         mov     edx,41
  433.         mov     ecx,5+0*8
  434.         call    draw_buttons
  435.  
  436.         mov     edx,3
  437.         mov     ecx,5+2*8
  438.         call    draw_buttons
  439.  
  440.         mov     edx,91
  441.         mov     ecx,5+4*8
  442.         call    draw_buttons
  443.  
  444.         mov     edx,101
  445.         mov     ecx,5+6*8
  446.         call    draw_buttons
  447.  
  448.         mov     edx,131
  449.         mov     ecx,5+8*8
  450.         call    draw_buttons
  451.  
  452.         mov     edx,141
  453.         mov     ecx,5+10*8
  454.         call    draw_buttons
  455.  
  456.         call    draw_infotext
  457.  
  458.         mcall   12,2
  459.         popa
  460.         ret
  461. ;-------------------------------------------------------------------------------
  462. draw_infotext:
  463.         pusha
  464.         mov     eax,[keyboard]       ; KEYBOARD
  465.         test    eax,eax
  466.         jnz     noen
  467.         mov     [text00+LLL*1+28],dword 'ENGL'
  468.         mov     [text00+LLL*1+32],dword 'ISH '
  469. ;--------------------------------------
  470. noen:
  471.         cmp     eax,1
  472.         jnz     nofi
  473.         mov     [text00+LLL*1+28],dword 'FINN'
  474.         mov     [text00+LLL*1+32],dword 'ISH '
  475. ;--------------------------------------
  476. nofi:
  477.         cmp     eax,2
  478.         jnz     noge
  479.         mov     [text00+LLL*1+28],dword 'GERM'
  480.         mov     [text00+LLL*1+32],dword 'AN  '
  481. ;--------------------------------------
  482. noge:
  483.         cmp     eax,3
  484.         jnz     nogr
  485.         mov     [text00+LLL*1+28],dword 'RUSS'
  486.         mov     [text00+LLL*1+32],dword 'IAN '
  487. ;--------------------------------------
  488. nogr:
  489.         cmp     eax,4
  490.         jnz     nofr
  491.         mov     [text00+LLL*1+28],dword 'FREN'
  492.         mov     [text00+LLL*1+32],dword 'CH  '
  493. ;--------------------------------------
  494. nofr:
  495.         cmp     eax,5
  496.         jnz     noet
  497.         mov     [text00+LLL*1+28],dword 'ESTO'
  498.         mov     [text00+LLL*1+32],dword 'NIAN'
  499. ;--------------------------------------
  500. noet:
  501.         mov     eax,[syslang]             ; SYSTEM LANGUAGE
  502.         dec     eax
  503.         test    eax,eax
  504.         jnz     noen5
  505.         mov     [text00+LLL*0+28],dword 'ENGL'
  506.         mov     [text00+LLL*0+32],dword 'ISH '
  507. ;--------------------------------------
  508. noen5:
  509.         cmp     eax,1
  510.         jnz     nofi5
  511.         mov     [text00+LLL*0+28],dword 'FINN'
  512.         mov     [text00+LLL*0+32],dword 'ISH '
  513. ;--------------------------------------
  514. nofi5:
  515.         cmp     eax,2
  516.         jnz     noge5
  517.         mov     [text00+LLL*0+28],dword 'GERM'
  518.         mov     [text00+LLL*0+32],dword 'AN  '
  519. ;--------------------------------------
  520. noge5:
  521.         cmp     eax,3
  522.         jnz     nogr5
  523.         mov     [text00+LLL*0+28],dword 'RUSS'
  524.         mov     [text00+LLL*0+32],dword 'IAN '
  525. ;--------------------------------------
  526. nogr5:
  527.         cmp     eax,4
  528.         jne     nofr5
  529.         mov     [text00+LLL*0+28],dword 'FREN'
  530.         mov     [text00+LLL*0+32],dword 'CH  '
  531. ;--------------------------------------
  532. nofr5:
  533.         cmp     eax,5
  534.         jne     noet5
  535.         mov     [text00+LLL*0+28],dword 'ESTO'
  536.         mov     [text00+LLL*0+32],dword 'NIAN'
  537. ;--------------------------------------
  538. noet5:
  539.         mov     eax,[lba_read]
  540.         call    onoff                           ; LBA READ
  541.         mov     [text00+LLL*2+28],ebx
  542.  
  543.         mov     eax,[pci_acc]
  544.         call    onoff                           ; PCI ACCESS
  545.         mov     [text00+LLL*3+28],ebx
  546.  
  547.         mov     eax,[mouse_speed]               ; MOUSE SPEED
  548.         add     al,48
  549.         mov     [text00+LLL*4+28],al
  550.  
  551.         mov     eax,[mouse_delay]
  552.         mov     esi,text00+LLL*5+32
  553.         call    hexconvert                      ; MOUSE DELAY
  554.         call    text_out
  555.         popa
  556.         ret
  557. ;-------------------------------------------------------------------------------
  558. text_out:
  559.         mcall   13,<165,85>,<0,(12*8)>,0x80111199       ;0x80111199-19
  560.  
  561.         mov     edx,text00
  562.         mov     ebx,3*65536+7
  563.         mov     eax,4
  564.         mov     ecx,0xffffff
  565.         mov     esi,LLL
  566.         mov     ebp,text1_strings
  567. ;--------------------------------------
  568. newline:
  569.         mcall
  570.         add     ebx,8+8
  571.         add     edx,esi
  572.         dec     ebp
  573.         jnz     newline
  574.  
  575.         mov     ebp,text2_strings
  576.         add     ebx,8+8
  577. ;--------------------------------------
  578. @@:
  579.         mcall
  580.         add     ebx,8+8
  581.         add     edx,esi
  582.         dec     ebp
  583.         jnz     @b
  584.         ret
  585. ;-------------------------------------------------------------------------------
  586. hexconvert:          ;converting dec to hex in ascii
  587.         xor     ebx,ebx
  588.         mov     bl,al
  589.         and     bl,15
  590.         add     ebx,hex
  591.         mov     cl,[ebx]
  592.         mov     [esi],cl
  593.         shr     eax,4
  594.         xor     ebx,ebx
  595.         mov     bl,al
  596.         and     bl,15
  597.         add     ebx,hex
  598.         mov     cl,[ebx]
  599.         dec     esi
  600.         mov     [esi],cl
  601.         shr     eax,4
  602.         xor     ebx,ebx
  603.         mov     bl,al
  604.         and     bl,15
  605.         add     ebx,hex
  606.         mov     cl,[ebx]
  607.         dec     esi
  608.         mov     [esi],cl
  609.         ret
  610. ;-------------------------------------------------------------------------------
  611. onoff:
  612.         cmp     [syslang],4
  613.         jne     norus1
  614.         mov     ebx,'„€  '
  615.         cmp     eax,1
  616.         je      exitsub
  617.         mov     ebx,'…’ '
  618.         ret
  619. ;--------------------------------------
  620. norus1:
  621.         mov     ebx,'ON  '
  622.         cmp     eax,1
  623.         je      exitsub
  624.         mov     ebx,'OFF '
  625. ;--------------------------------------
  626. exitsub:
  627.         ret
  628. ;-------------------------------------------------------------------------------
  629. _lba_read:
  630.         mcall   21,11,[lba_read]
  631.         ret
  632. ;-------------------------------------------------------------------------------
  633. _pci_acc:
  634.         mcall   21,12,[pci_acc]
  635.         ret
  636. ;-------------------------------------------------------------------------------
  637. _syslang:
  638.         mcall   21,5,[syslang]
  639.         ret
  640. ;-------------------------------------------------------------------------------
  641. _mouse_speed:
  642.         mcall   18,19,1,[mouse_speed]
  643.         ret
  644. ;-------------------------------------------------------------------------------
  645. _mouse_delay:
  646.         mcall   18,19,3,[mouse_delay]
  647.         ret
  648. ;-------------------------------------------------------------------------------
  649. loadtxt:
  650.         mov     edi,text00
  651.         mov     ecx,LLL*(text1_strings + text2_strings)/4
  652.         cmp     [syslang],4
  653.         jne     norus
  654.  
  655.         mov     esi,textrus
  656.         jmp     sload
  657. ;--------------------------------------
  658. norus:
  659.         mov     esi,texteng
  660. ;--------------------------------------
  661. sload:
  662.         rep     movsd
  663.         ret
  664. ;-------------------------------------------------------------------------------
  665. cleantxt:
  666.         xor     eax,eax
  667.         mov     ecx,LLL*(text1_strings + text2_strings)/4
  668.         cld
  669.         mov     edi,text00
  670.         rep     stosd
  671.         mov     [text00+1711],byte 'x'
  672.         ret
  673. ;-------------------------------------------------------------------------------
  674. ; DATA AREA
  675. count:          db 0x0
  676. blinkpar:       dd 0x0
  677. time:           dw 0x0
  678. date:           dd 0x0
  679. ;-------------------------------------------------------------------------------
  680. textrus:
  681.         db 'Ÿ§ëª á¨áâ¥¬ë              : ENGLISH         - +   à¨¬¥­¨âì'
  682.         db ' áª« ¤ª  ª« ¢¨ âãàë      : ENGLISH         - +   à¨¬¥­¨âì'
  683.         db '‚ª«îç¨âì LBA              : OFF             - +   à¨¬¥­¨âì'
  684.         db '„®áâ㯠ª 設¥ PCI         : OFF             - +   à¨¬¥­¨âì'
  685.         db '‘ª®à®áâì ªãàá®à  ¬ëè¨     : 1               - +   à¨¬¥­¨âì'
  686.         db '‡ ¤¥à¦ª  ã᪮७¨ï ¬ëè¨   : 0x00a           - +   à¨¬¥­¨âì'
  687.        
  688.         db '‚ˆŒ€ˆ…:                                    à¨¬¥­¨âì ¢á¥ '
  689.         db '… ‡€“„œ’… ‘Ž•€ˆ’œ €‘’Ž‰Šˆ              ‘®åà ­¨âì ¢á¥ '
  690. ;-------------------------------------------------------------------------------
  691. texteng:
  692.         db 'SYSTEM LANGUAGE           : ENGLISH         - +     APPLY  '
  693.         db 'KEYBOARD LAYOUT           : ENGLISH         - +     APPLY  '
  694.         db 'LBA READ ENABLED          : OFF             - +     APPLY  '
  695.         db 'PCI ACCESS FOR APPL.      : OFF             - +     APPLY  '
  696.         db 'Mouse pointer speed       : 1               - +     APPLY  '
  697.         db 'Mouse pointer delay       : 0x00a           - +     APPLY  '
  698. text1_strings = 6
  699.  
  700.         db 'NOTE:                                           APPLY ALL  '
  701.         db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI       SAVE ALL   '
  702. text2_strings = 2
  703. ;-------------------------------------------------------------------------------
  704. title   db 'SETUP',0
  705.  
  706. hex     db '0123456789ABCDEF'
  707. ;-------------------------------------------------------------------------------
  708. include 'keymaps.inc'
  709. ;-------------------------------------------------------------------------------
  710. read_fileinfo:
  711.         dd 0
  712.         dd 0
  713.         dd 0
  714.         dd 48
  715.         dd keyboard
  716.         db 0
  717.         dd file_name
  718. ;-------------------------------------------------------------------------------
  719. save_fileinfo:
  720.         dd 2
  721.         dd 0
  722.         dd 0
  723.         dd 48
  724.         dd keyboard
  725. file_name:      db '/sys/setup.dat',0
  726. ;-------------------------------------------------------------------------------
  727. I_PARAM dd 0
  728. ;-----------------------------------------------------------------------------
  729. ; Note to SVN revision 2299 - some parameters has not used,
  730. ; but keep the order of the parameter has always needed!
  731. keyboard        dd 0x0
  732.                 dd 0    ;midibase  - not use, but retained for backward compat.
  733.                 dd 0    ;cdbase - not use, but retained for backward compat.
  734.                 dd 0    ;sb16 - not use, but retained for backward compat.
  735. syslang         dd 0x1
  736.                 dd 0    ;hdbase - not use, but retained for backward compat.
  737.                 dd 0    ;f32p - not use, but retained for backward compat.
  738.                 dd 0    ;sound_dma - not use, but retained for backward compat.
  739. lba_read        dd 0x1
  740. pci_acc         dd 0x1
  741. mouse_speed     dd 0x3
  742. mouse_delay     dd 0x10
  743. ;-----------------------------------------------------------------------------
  744. IM_END:
  745. ;-----------------------------------------------------------------------------
  746. align 4
  747. text00:
  748.         rb      LLL*(text1_strings + text2_strings)
  749. ;-----------------------------------------------------------------------------
  750. align 4
  751.         rb      0x1000
  752. stack_area:
  753. ;-----------------------------------------------------------------------------
  754. ;table_area:
  755. I_END:
  756. ;-------------------------------------------------------------------------------