2006-01-03 10:43:31 +01:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;; DEVICE SETUP ;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2015-07-30 18:23:52 +02:00
|
|
|
|
; version: 1.17
|
|
|
|
|
; last update: 30/07/2015
|
|
|
|
|
; changed by: Kiril Lipatov, aka Leency
|
|
|
|
|
; changes: Mouse speed and mouse delay options moved to mouse_cfg
|
|
|
|
|
;---------------------------------------------------------------------
|
2014-04-12 21:42:03 +02:00
|
|
|
|
; version: 1.16
|
|
|
|
|
; last update: 12/04/2014
|
|
|
|
|
; changed by: Yurii Shevtsov, aka gtament
|
|
|
|
|
; changes: Fixed junk draw at the bottom of window
|
|
|
|
|
;---------------------------------------------------------------------
|
2013-02-03 23:01:05 +01:00
|
|
|
|
; version: 1.15
|
2012-04-20 21:29:09 +02:00
|
|
|
|
; last update: 20/04/2012
|
|
|
|
|
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
|
|
|
|
; changes: Add the flag of speaker mute.
|
|
|
|
|
; Correcting setup.dat
|
|
|
|
|
;---------------------------------------------------------------------
|
2013-02-03 23:01:05 +01:00
|
|
|
|
; version: 1.14
|
2012-03-19 22:17:27 +01:00
|
|
|
|
; last update: 20/03/2012
|
|
|
|
|
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
|
|
|
|
; changes: optimisations and code refactoring
|
|
|
|
|
;---------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; Authors: Ville - original version
|
|
|
|
|
; A. Ivushkin - autostart (w launcher)
|
|
|
|
|
; M. Lisovin - added many feauters (apply all, save all, set time...)
|
|
|
|
|
; I. Poddubny - fixed russian keymap
|
2006-08-14 17:24:38 +02:00
|
|
|
|
;14/08/06 Mario79 - added regulation of mouse features
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2013-02-03 23:01:05 +01:00
|
|
|
|
format binary as ""
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
use32
|
|
|
|
|
org 0x0
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
db 'MENUET01' ; 8 byte identifier
|
|
|
|
|
dd 0x01 ; header version
|
|
|
|
|
dd START ; pointer to program start
|
|
|
|
|
dd IM_END ; size of image
|
|
|
|
|
dd I_END ; reguired amount of memory
|
|
|
|
|
dd stack_area ; stack pointer (esp)
|
|
|
|
|
dd boot_param ; boot parameters
|
|
|
|
|
dd 0x0 ; path
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2014-04-12 21:42:03 +02:00
|
|
|
|
include '../../../macros.inc'
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
LLL equ (56+3)
|
|
|
|
|
BBB equ 25
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
apply_all:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
call _pci_acc ;12
|
|
|
|
|
call _syslang ;5
|
|
|
|
|
call _keyboard ;2
|
|
|
|
|
call _speaker_mute
|
|
|
|
|
ret
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
apply_all_and_exit:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 70,read_fileinfo
|
|
|
|
|
call apply_all
|
|
|
|
|
jmp close
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
set_language_and_exit:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 26,2,9
|
|
|
|
|
cmp eax,1
|
|
|
|
|
je russian
|
2011-11-04 01:09:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
xor eax,eax
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
set_lang_now:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov [keyboard],eax
|
|
|
|
|
call _keyboard
|
|
|
|
|
jmp close
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
russian:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov eax,3
|
|
|
|
|
jmp set_lang_now
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
set_syslanguage_and_exit:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 26,5
|
|
|
|
|
cmp eax,6
|
|
|
|
|
jne temp
|
|
|
|
|
xor eax,eax
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
2011-11-04 01:09:31 +01:00
|
|
|
|
temp:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc eax
|
|
|
|
|
mov [syslang],eax
|
|
|
|
|
call _syslang
|
|
|
|
|
jmp close
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
get_setup_values:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 26,2,9
|
|
|
|
|
dec eax
|
|
|
|
|
mov [keyboard],eax
|
|
|
|
|
|
|
|
|
|
mcall 26,5
|
|
|
|
|
mov [syslang],eax
|
2011-11-04 01:09:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 26,11
|
|
|
|
|
mov [lba_read],eax
|
2011-11-04 01:09:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 26,12
|
|
|
|
|
mov [pci_acc],eax
|
2011-11-04 01:09:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 18,8,1
|
|
|
|
|
mov [speaker_mute],eax
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
START:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov eax,boot_param
|
|
|
|
|
cmp [eax],dword 'SLAN'
|
|
|
|
|
je set_syslanguage_and_exit
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [eax],dword 'LANG'
|
|
|
|
|
je set_language_and_exit
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [eax],dword 'BOOT'
|
|
|
|
|
je apply_all_and_exit
|
2011-11-04 01:09:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
call get_setup_values
|
|
|
|
|
call loadtxt
|
|
|
|
|
call draw_infotext
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
red:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
call draw_window
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
still:
|
2012-03-19 16:53:28 +01:00
|
|
|
|
sysevent:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 23,8 ; wait here for event with timeout
|
|
|
|
|
cmp eax,1
|
|
|
|
|
jz red
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,2
|
|
|
|
|
jz key
|
2011-11-04 01:09:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,3
|
|
|
|
|
jz button
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
key:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 2
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
button:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 17
|
|
|
|
|
cmp ah,99
|
|
|
|
|
jne nosaveall
|
|
|
|
|
mcall 70,save_fileinfo
|
|
|
|
|
jmp still
|
|
|
|
|
;--------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
nosaveall:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,100
|
|
|
|
|
jne no_apply_all
|
|
|
|
|
call apply_all
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
no_apply_all:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,1 ; CLOSE APPLICATION
|
|
|
|
|
jne no_close
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
close:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
or eax,-1
|
|
|
|
|
mcall
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_close:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,4 ; SET KEYBOARD
|
|
|
|
|
jnz nokm
|
|
|
|
|
mov eax,[keyboard]
|
|
|
|
|
test eax,eax
|
|
|
|
|
je downuplbl
|
|
|
|
|
dec eax
|
|
|
|
|
jmp nodownup
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
downuplbl:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov eax,7
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nodownup:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov [keyboard],eax
|
|
|
|
|
call draw_infotext
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nokm:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,5
|
|
|
|
|
jnz nokp
|
|
|
|
|
mov eax,[keyboard]
|
|
|
|
|
cmp eax,7
|
|
|
|
|
je updownlbl
|
|
|
|
|
inc eax
|
|
|
|
|
jmp noupdown
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
updownlbl:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
xor eax,eax
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noupdown:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov [keyboard],eax
|
|
|
|
|
call draw_infotext
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nokp:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,92 ; SET LBA READ
|
|
|
|
|
jne no_lba_d
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
slbal:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
btc [lba_read],0
|
|
|
|
|
call draw_infotext
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_lba_d:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,93
|
|
|
|
|
jne no_lba_i
|
|
|
|
|
jmp slbal
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_lba_i:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,91
|
|
|
|
|
jne no_set_lba_read
|
|
|
|
|
call _lba_read
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_set_lba_read:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,102 ; SET PCI ACCESS
|
|
|
|
|
jne no_pci_d
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
pcip:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
btc [pci_acc],0
|
|
|
|
|
call draw_infotext
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_pci_d:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,103
|
|
|
|
|
jne no_pci_i
|
|
|
|
|
jmp pcip
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_pci_i:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,101
|
|
|
|
|
jne no_set_pci_acc
|
|
|
|
|
call _pci_acc
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_set_pci_acc:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,42 ; SET SYSTEM LANGUAGE BASE
|
|
|
|
|
jnz nosysm
|
|
|
|
|
mov eax,[syslang]
|
|
|
|
|
dec eax
|
|
|
|
|
jz still
|
|
|
|
|
mov [syslang],eax
|
|
|
|
|
call draw_infotext
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosysm:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,43
|
|
|
|
|
jnz nosysp
|
|
|
|
|
mov eax,[syslang]
|
|
|
|
|
cmp eax,6
|
|
|
|
|
je nosysp
|
|
|
|
|
inc eax
|
|
|
|
|
mov [syslang],eax
|
|
|
|
|
call draw_infotext
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosysp:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,41
|
|
|
|
|
jnz nosyss
|
|
|
|
|
call _syslang
|
|
|
|
|
call cleantxt
|
|
|
|
|
call loadtxt
|
|
|
|
|
call draw_window
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosyss:
|
|
|
|
|
;--------------------------------------
|
2012-04-20 21:29:09 +02:00
|
|
|
|
speakermute:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,152 ; SET SPEAKER
|
|
|
|
|
jne no_speaker_d
|
2012-04-20 21:29:09 +02:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
speaker_p:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
btc [speaker_mute],0
|
|
|
|
|
call draw_infotext
|
|
|
|
|
jmp still
|
2012-04-20 21:29:09 +02:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_speaker_d:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,153
|
|
|
|
|
jne no_speaker_i
|
|
|
|
|
jmp speaker_p
|
2012-04-20 21:29:09 +02:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
no_speaker_i:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,151
|
|
|
|
|
jne .noapply
|
|
|
|
|
call _speaker_mute
|
|
|
|
|
jmp still
|
2012-04-20 21:29:09 +02:00
|
|
|
|
;--------------------------------------
|
2012-03-19 16:53:28 +01:00
|
|
|
|
.noapply:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp ah,3 ; SET KEYMAP
|
|
|
|
|
jne still
|
|
|
|
|
call _keyboard
|
|
|
|
|
jmp still
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
_keyboard:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],0 ; english
|
|
|
|
|
jnz nosetkeyle
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,en_keymap
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,en_keymap_shift
|
|
|
|
|
|
|
|
|
|
mcall 21,,9,1
|
|
|
|
|
call alt_gen
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosetkeyle:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],1 ; finnish
|
|
|
|
|
jnz nosetkeylfi
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,fi_keymap
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,fi_keymap_shift
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,,9,2
|
|
|
|
|
call alt_gen
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosetkeylfi:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],2 ; german
|
|
|
|
|
jnz nosetkeylge
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,ge_keymap
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,ge_keymap_shift
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,,9,3
|
|
|
|
|
call alt_gen
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosetkeylge:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],3 ; russian
|
|
|
|
|
jnz nosetkeylru
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,ru_keymap
|
|
|
|
|
|
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,ru_keymap_shift
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,,9,4
|
|
|
|
|
call alt_gen
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosetkeylru:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],4 ;french
|
|
|
|
|
jnz nosetkeylfr
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,2,1,fr_keymap
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,fr_keymap_shift
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,fr_keymap_alt_gr
|
|
|
|
|
|
|
|
|
|
mcall 21,,9,5
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosetkeylfr:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],5 ; estonian
|
|
|
|
|
jnz nosetkeylet
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,et_keymap
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,et_keymap_shift
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,,9,6
|
|
|
|
|
call alt_gen
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nosetkeylet:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],6 ;belgian
|
|
|
|
|
jnz nosetkeylit
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,be_keymap
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,be_keymap_shift
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,be_keymap_alt_gr
|
2013-02-03 23:01:05 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,,9,7
|
2013-02-03 23:01:05 +01:00
|
|
|
|
;--------------------------------------
|
2013-06-16 17:31:13 +02:00
|
|
|
|
nosetkeylit:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [keyboard],7 ;italian
|
|
|
|
|
jnz nosetkeylbe
|
|
|
|
|
|
|
|
|
|
mcall 21,2,1,it_keymap
|
|
|
|
|
|
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,it_keymap_shift
|
|
|
|
|
|
|
|
|
|
inc ecx
|
|
|
|
|
mcall 21,,,it_keymap_alt_gr
|
|
|
|
|
|
|
|
|
|
mcall 21,,9,8
|
2013-06-16 17:31:13 +02:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
|
2013-02-03 23:01:05 +01:00
|
|
|
|
nosetkeylbe:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
alt_gen:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,,3,alt_general
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_buttons:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
pusha
|
|
|
|
|
shl ecx,16
|
|
|
|
|
add ecx,12
|
|
|
|
|
mcall 8,<(350-57),(46+BBB)>
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<(350-85),9>
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<(350-73),9>
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
popa
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; ********************************************
|
|
|
|
|
; ******* WINDOW DEFINITIONS AND DRAW *******
|
|
|
|
|
; ********************************************
|
|
|
|
|
draw_window:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
pusha
|
|
|
|
|
mcall 12,1
|
|
|
|
|
|
2015-07-30 18:23:52 +02:00
|
|
|
|
mcall 0,<40,(355+BBB)>,<40,(10*16)>,0xB4111199,0,title ; DRAW WINDOW
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
|
|
|
|
mcall 9,procinfo,-1
|
|
|
|
|
|
|
|
|
|
mov eax,[ebx+70] ;status of window
|
|
|
|
|
test eax,100b
|
|
|
|
|
jne .end
|
|
|
|
|
|
2015-07-30 18:23:52 +02:00
|
|
|
|
mcall 8,<(350-85),100>,<(5+16*6),12>,100,0x005588dd ; APPLY ALL
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
|
|
|
|
add ecx,16*65536 ; SAVE ALL
|
|
|
|
|
dec edx
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
mov esi,0x5580c0
|
|
|
|
|
|
|
|
|
|
mov edx,41
|
|
|
|
|
mov ecx,5+0*8
|
|
|
|
|
call draw_buttons
|
|
|
|
|
|
|
|
|
|
mov edx,3
|
|
|
|
|
mov ecx,5+2*8
|
|
|
|
|
call draw_buttons
|
|
|
|
|
|
|
|
|
|
mov edx,91
|
|
|
|
|
mov ecx,5+4*8
|
|
|
|
|
call draw_buttons
|
|
|
|
|
|
|
|
|
|
mov edx,101
|
|
|
|
|
mov ecx,5+6*8
|
|
|
|
|
call draw_buttons
|
|
|
|
|
|
|
|
|
|
mov edx,151
|
2015-07-30 18:23:52 +02:00
|
|
|
|
mov ecx,5+8*8
|
2014-04-12 21:42:03 +02:00
|
|
|
|
call draw_buttons
|
|
|
|
|
|
|
|
|
|
call draw_infotext
|
2012-03-19 22:17:27 +01:00
|
|
|
|
.end:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 12,2
|
|
|
|
|
popa
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_infotext:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
pusha
|
|
|
|
|
mov eax,[keyboard] ; KEYBOARD
|
|
|
|
|
test eax,eax
|
|
|
|
|
jnz noen
|
|
|
|
|
mov [text00+LLL*1+28],dword 'ENGL'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'ISH '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noen:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,1
|
|
|
|
|
jnz nofi
|
|
|
|
|
mov [text00+LLL*1+28],dword 'FINN'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'ISH '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nofi:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,2
|
|
|
|
|
jnz noge
|
|
|
|
|
mov [text00+LLL*1+28],dword 'GERM'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'AN '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noge:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,3
|
|
|
|
|
jnz nogr
|
|
|
|
|
mov [text00+LLL*1+28],dword 'RUSS'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'IAN '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nogr:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,4
|
|
|
|
|
jnz nofr
|
|
|
|
|
mov [text00+LLL*1+28],dword 'FREN'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'CH '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nofr:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,5
|
|
|
|
|
jnz noet
|
|
|
|
|
mov [text00+LLL*1+28],dword 'EEST'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'I '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noet:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,6
|
|
|
|
|
jnz nobe
|
|
|
|
|
mov [text00+LLL*1+28],dword 'BELG'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'IAN '
|
2013-02-03 23:01:05 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nobe:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,7
|
|
|
|
|
jnz noit
|
|
|
|
|
mov [text00+LLL*1+28],dword 'ITAL'
|
|
|
|
|
mov [text00+LLL*1+32],dword 'IAN'
|
2013-06-16 17:31:13 +02:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noit:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov eax,[syslang] ; SYSTEM LANGUAGE
|
|
|
|
|
dec eax
|
|
|
|
|
test eax,eax
|
|
|
|
|
jnz noen5
|
|
|
|
|
mov [text00+LLL*0+28],dword 'ENGL'
|
|
|
|
|
mov [text00+LLL*0+32],dword 'ISH '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noen5:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,1
|
|
|
|
|
jnz nofi5
|
|
|
|
|
mov [text00+LLL*0+28],dword 'FINN'
|
|
|
|
|
mov [text00+LLL*0+32],dword 'ISH '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nofi5:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,2
|
|
|
|
|
jnz noge5
|
|
|
|
|
mov [text00+LLL*0+28],dword 'GERM'
|
|
|
|
|
mov [text00+LLL*0+32],dword 'AN '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noge5:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,3
|
|
|
|
|
jnz nogr5
|
|
|
|
|
mov [text00+LLL*0+28],dword 'RUSS'
|
|
|
|
|
mov [text00+LLL*0+32],dword 'IAN '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nogr5:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,4
|
|
|
|
|
jne nofr5
|
|
|
|
|
mov [text00+LLL*0+28],dword 'FREN'
|
|
|
|
|
mov [text00+LLL*0+32],dword 'CH '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
nofr5:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp eax,5
|
|
|
|
|
jne noet5
|
|
|
|
|
mov [text00+LLL*0+28],dword 'EEST'
|
|
|
|
|
mov [text00+LLL*0+32],dword 'I '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noet5:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov eax,[lba_read]
|
|
|
|
|
call onoff ; LBA READ
|
|
|
|
|
mov [text00+LLL*2+28],ebx
|
|
|
|
|
|
|
|
|
|
mov eax,[pci_acc]
|
|
|
|
|
call onoff ; PCI ACCESS
|
|
|
|
|
mov [text00+LLL*3+28],ebx
|
|
|
|
|
|
|
|
|
|
mov eax,[speaker_mute]
|
|
|
|
|
call onoff ; SPEAKER
|
2015-07-30 18:23:52 +02:00
|
|
|
|
mov [text00+LLL*4+28],ebx
|
2014-04-12 21:42:03 +02:00
|
|
|
|
|
|
|
|
|
call text_out
|
2015-07-30 18:23:52 +02:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
popa
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2007-01-31 16:36:12 +01:00
|
|
|
|
text_out:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 13,<165,85>,<0,(14*8)>,0x80111199 ;0x80111199-19
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov edx,text00
|
|
|
|
|
mov ebx,3*65536+7
|
|
|
|
|
mov eax,4
|
|
|
|
|
mov ecx,0xffffff
|
|
|
|
|
mov esi,LLL
|
|
|
|
|
mov ebp,text1_strings
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
newline:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall
|
|
|
|
|
add ebx,8+8
|
|
|
|
|
add edx,esi
|
|
|
|
|
dec ebp
|
|
|
|
|
jnz newline
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov ebp,text2_strings
|
|
|
|
|
add ebx,8+8
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
@@:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall
|
|
|
|
|
add ebx,8+8
|
|
|
|
|
add edx,esi
|
|
|
|
|
dec ebp
|
|
|
|
|
jnz @b
|
|
|
|
|
ret
|
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
onoff:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [syslang],4
|
|
|
|
|
jne norus1
|
|
|
|
|
mov ebx,'<27><> '
|
|
|
|
|
cmp eax,1
|
|
|
|
|
je exitsub
|
|
|
|
|
mov ebx,'<27><><EFBFBD> '
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
norus1:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
cmp [syslang],6
|
|
|
|
|
jne noet1
|
|
|
|
|
mov ebx,'SEES'
|
|
|
|
|
cmp eax,1
|
|
|
|
|
je exitsub
|
|
|
|
|
mov ebx,'V<>L.'
|
|
|
|
|
ret
|
2013-09-21 22:26:44 +02:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
noet1:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov ebx,'ON '
|
|
|
|
|
cmp eax,1
|
|
|
|
|
je exitsub
|
|
|
|
|
mov ebx,'OFF '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
exitsub:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
_lba_read:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,11,[lba_read]
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
_pci_acc:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,12,[pci_acc]
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
_syslang:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 21,5,[syslang]
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2012-04-20 21:29:09 +02:00
|
|
|
|
_speaker_mute:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mcall 18,8,1
|
|
|
|
|
cmp [speaker_mute],eax
|
|
|
|
|
je @f
|
|
|
|
|
inc ecx
|
|
|
|
|
mcall 18
|
|
|
|
|
;--------------------------------------
|
2012-04-20 21:29:09 +02:00
|
|
|
|
@@:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
ret
|
2012-04-20 21:29:09 +02:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
loadtxt:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov edi,text00
|
|
|
|
|
mov ecx,LLL*(text1_strings + text2_strings)/4+1
|
|
|
|
|
cmp [syslang],4
|
|
|
|
|
jne loadet
|
2012-03-19 16:53:28 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov esi,textrus
|
|
|
|
|
jmp sload
|
2013-09-21 22:26:44 +02:00
|
|
|
|
loadet:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov edi,text00
|
|
|
|
|
mov ecx,LLL*(text1_strings + text2_strings)/4+1
|
|
|
|
|
cmp [syslang],6
|
|
|
|
|
jne norus
|
|
|
|
|
mov esi,textet
|
|
|
|
|
jmp sload
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
norus:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
mov esi,texteng
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
sload:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
rep movsd
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
cleantxt:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
xor eax,eax
|
|
|
|
|
mov ecx,LLL*(text1_strings + text2_strings)/4
|
|
|
|
|
cld
|
|
|
|
|
mov edi,text00
|
|
|
|
|
rep stosd
|
|
|
|
|
mov [text00+1711],byte 'x'
|
|
|
|
|
ret
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; DATA AREA
|
2014-04-12 21:42:03 +02:00
|
|
|
|
count: db 0x0
|
|
|
|
|
blinkpar: dd 0x0
|
|
|
|
|
time: dw 0x0
|
|
|
|
|
date: dd 0x0
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
textrus:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
db '<27><><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD> : ENGLISH - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27><>᪫<EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : ENGLISH - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> LBA : OFF - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 設<> PCI : OFF - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
db '<27>몫<EFBFBD><EBAAAB><EFBFBD><EFBFBD><EFBFBD> SPEAKER : OFF - + <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>'
|
|
|
|
|
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> '
|
|
|
|
|
db '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD> <20><><EFBFBD> '
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
texteng:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
db 'System language : ENGLISH - + Apply '
|
|
|
|
|
db 'Keyboard layout : ENGLISH - + Apply '
|
|
|
|
|
db 'LBA read enabled : OFF - + Apply '
|
|
|
|
|
db 'PCI access for appl. : OFF - + Apply '
|
|
|
|
|
db 'SPEAKER disabled : OFF - + Apply '
|
2015-07-30 18:23:52 +02:00
|
|
|
|
text1_strings = 5
|
2012-04-20 21:29:09 +02:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
db 'NOTE: Apply all '
|
|
|
|
|
db 'SAVE YOUR SETTINGS BEFORE QUITING KOLIBRI Save all '
|
2013-09-21 22:26:44 +02:00
|
|
|
|
textet:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
db 'S<>steemi keel : ENGLISH - + Kinnita '
|
|
|
|
|
db 'Klaviatuuri paigutus : ENGLISH - + Kinnita '
|
|
|
|
|
db 'LBA lugemine lubatud : V<>L. - + Kinnita '
|
|
|
|
|
db 'PCI juurdep<65><70>s programm. : V<>L. - + Kinnita '
|
|
|
|
|
db 'SPEAKER disabled : V<>L. - + Kinnita '
|
|
|
|
|
db 'M<>RKUS: Kinnita k<>ik'
|
|
|
|
|
db 'SALVESTA SEADED ENNE KOLIBRIST V<>LJUMIST Salvesta k<>ik'
|
|
|
|
|
text2_strings = 2
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2014-04-12 21:42:03 +02:00
|
|
|
|
title db 'System setup',0
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2014-04-12 21:42:03 +02:00
|
|
|
|
hex db '0123456789ABCDEF'
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2011-11-04 01:09:31 +01:00
|
|
|
|
include 'keymaps.inc'
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-08-13 15:02:57 +02:00
|
|
|
|
read_fileinfo:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 28
|
|
|
|
|
dd keyboard
|
|
|
|
|
db 0
|
|
|
|
|
dd file_name
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|
2006-08-13 15:02:57 +02:00
|
|
|
|
save_fileinfo:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
dd 2
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 28
|
|
|
|
|
dd keyboard
|
|
|
|
|
file_name: db '/SYS/SETTINGS/SETUP.DAT',0
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
keyboard dd 0x0
|
|
|
|
|
syslang dd 0x4 ; 4 - rus
|
|
|
|
|
lba_read dd 0x1
|
|
|
|
|
pci_acc dd 0x1
|
|
|
|
|
speaker_mute dd 0 ; 0 - enable, 1 - disable
|
2011-11-27 16:38:24 +01:00
|
|
|
|
;-----------------------------------------------------------------------------
|
2012-03-19 16:53:28 +01:00
|
|
|
|
IM_END:
|
|
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
text00:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
rb LLL*(text1_strings + text2_strings)+4
|
2012-03-19 22:17:27 +01:00
|
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
|
align 4
|
2012-04-20 21:29:09 +02:00
|
|
|
|
boot_param:
|
2012-03-19 22:17:27 +01:00
|
|
|
|
procinfo:
|
2014-04-12 21:42:03 +02:00
|
|
|
|
rb 1024
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
|
align 4
|
2014-04-12 21:42:03 +02:00
|
|
|
|
rb 0x1000
|
2012-03-19 16:53:28 +01:00
|
|
|
|
stack_area:
|
|
|
|
|
;-----------------------------------------------------------------------------
|
2006-01-03 10:43:31 +01:00
|
|
|
|
I_END:
|
2012-03-19 16:53:28 +01:00
|
|
|
|
;-------------------------------------------------------------------------------
|