Subversion Repositories Kolibri OS

Rev

Rev 3614 | Rev 3702 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3614 Rev 3627
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
-
 
74
$Revision: 3627 $
Line 74... Line 75...
74
$Revision: 3614 $
75
 
75
 
76
 
76
 
77
USE_COM_IRQ     equ 1      ; make irq 3 and irq 4 available for PCI devices
77
USE_COM_IRQ     equ 1      ; make irq 3 and irq 4 available for PCI devices
78
VESA_1_2_VIDEO  equ 0      ; enable vesa 1.2 bank switch functions
Line 228... Line 229...
228
        dw     11011111b *256 +10010010b
229
        dw     11011111b *256 +10010010b
229
        db     0x00
230
        db     0x00
Line 230... Line 231...
230
 
231
 
Line -... Line 232...
-
 
232
include "data16.inc"
-
 
233
 
-
 
234
if ~ lang eq sp
-
 
235
diff16 "end of bootcode",0,$+0x10000
231
include "data16.inc"
236
end if
232
 
237
 
Line 233... Line 238...
233
use32
238
use32
234
org $+0x10000
239
org $+0x10000
Line 1239... Line 1244...
1239
        call    wakeup_osloop
1244
        call    wakeup_osloop
Line 1240... Line 1245...
1240
 
1245
 
1241
        xor     eax, eax
1246
        xor     eax, eax
Line 1242... Line -...
1242
        mov     [BTN_ADDR], dword BUTTON_INFO ; address of button list
-
 
1243
 
1247
        mov     [BTN_ADDR], dword BUTTON_INFO ; address of button list
1244
        mov     byte [MOUSE_BUFF_COUNT], al              ; mouse buffer
1248
 
1245
        mov     byte [KEY_COUNT], al              ; keyboard buffer
1249
        mov     byte [KEY_COUNT], al              ; keyboard buffer
Line 1246... Line -...
1246
        mov     byte [BTN_COUNT], al              ; button buffer
-
 
1247
;        mov   [MOUSE_X],dword 100*65536+100    ; mouse x/y
-
 
1248
 
1250
        mov     byte [BTN_COUNT], al              ; button buffer
1249
     ;!! IP 04.02.2005:
1251
;        mov   [MOUSE_X],dword 100*65536+100    ; mouse x/y
Line 1250... Line 1252...
1250
;        mov     byte [DONT_SWITCH], al; change task if possible
1252
 
1251
        pop     eax
1253
        pop     eax
Line 2322... Line 2324...
2322
  full_table:
2324
  full_table:
2323
;     cmp  ecx,2
2325
;     cmp  ecx,2
2324
        dec     ecx
2326
        dec     ecx
2325
        jnz     exit_for_anyone
2327
        jnz     exit_for_anyone
2326
        call    for_all_tables
2328
        call    for_all_tables
2327
        mov     ecx, 16384
2329
        mov     ecx, DRIVE_DATA_SIZE/4
2328
        cld
2330
        cld
2329
        rep movsd
2331
        rep movsd
2330
        ret
2332
        ret
2331
;------------------------------------------------------------------------------
2333
;------------------------------------------------------------------------------
2332
sysfn_lastkey:          ; 18.12 = return 0 (backward compatibility)
2334
sysfn_lastkey:          ; 18.12 = return 0 (backward compatibility)
Line 5804... Line 5806...
5804
        stc
5806
        stc
5805
.ok:
5807
.ok:
5806
        ret
5808
        ret
5807
end if
5809
end if
Line -... Line 5810...
-
 
5810
 
-
 
5811
if ~ lang eq sp
-
 
5812
diff16 "end of .text segment",0,$
-
 
5813
end if
5808
 
5814
 
Line 5809... Line 5815...
5809
include "data32.inc"
5815
include "data32.inc"
Line 5810... Line 5816...
5810
 
5816