Subversion Repositories Kolibri OS

Rev

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

Rev 9486 Rev 9488
Line 75... Line 75...
75
format binary as "mnt"
75
format binary as "mnt"
Line 76... Line 76...
76
 
76
 
77
include 'macros.inc'
77
include 'macros.inc'
Line 78... Line 78...
78
include 'struct.inc'
78
include 'struct.inc'
Line 79... Line 79...
79
 
79
 
80
$Revision: 9486 $
80
$Revision: 9488 $
Line 1361... Line 1361...
1361
        mov     byte [BTN_COUNT], al              ; button buffer
1361
        mov     byte [BTN_COUNT], al              ; button buffer
1362
;        mov   [MOUSE_X],dword 100*65536+100    ; mouse x/y
1362
;        mov   [MOUSE_X],dword 100*65536+100    ; mouse x/y
Line 1363... Line 1363...
1363
 
1363
 
1364
        pop     eax
1364
        pop     eax
-
 
1365
        ret
Line 1365... Line 1366...
1365
        ret
1366
;-----------------------------------------------------------------------------
1366
 
-
 
1367
align 4
-
 
1368
;input  eax=43,bl-byte of output, ecx - number of port
-
 
1369
;sys_outport:
-
 
1370
;
-
 
1371
;        mov     edi, ecx   ; separate flag for read / write
-
 
1372
;        and     ecx, 65535
-
 
1373
;
-
 
1374
;        mov     eax, [RESERVED_PORTS]
-
 
1375
;        test    eax, eax
-
 
1376
;        jnz     .sopl8
-
 
1377
;        inc     eax
-
 
1378
;        mov     [esp+32], eax
-
 
1379
;        ret
-
 
1380
;
-
 
1381
;  .sopl8:
-
 
1382
;        mov     edx, [TASK_BASE]
-
 
1383
;        mov     edx, [edx+0x4]
-
 
1384
;    ;and   ecx,65535
-
 
1385
;    ;cld - set on interrupt 0x40
-
 
1386
;  .sopl1:
-
 
1387
;
-
 
1388
;        mov     esi, eax
-
 
1389
;        shl     esi, 4
-
 
1390
;        add     esi, RESERVED_PORTS
-
 
1391
;        cmp     edx, [esi+0]
-
 
1392
;        jne     .sopl2
-
 
1393
;        cmp     ecx, [esi+4]
-
 
1394
;        jb      .sopl2
-
 
1395
;        cmp     ecx, [esi+8]
-
 
1396
;        jg      .sopl2
-
 
1397
;.sopl3:
-
 
1398
;
-
 
1399
;        test    edi, 0x80000000; read ?
-
 
1400
;        jnz     .sopl4
-
 
1401
;
-
 
1402
;        mov     eax, ebx
-
 
1403
;        mov     dx, cx   ; write
-
 
1404
;        out     dx, al
-
 
1405
;        and     [esp+32], dword 0
-
 
1406
;        ret
-
 
1407
;
-
 
1408
;        .sopl2:
-
 
1409
;
-
 
1410
;        dec     eax
-
 
1411
;        jnz     .sopl1
-
 
1412
;        inc     eax
-
 
1413
;        mov     [esp+32], eax
-
 
1414
;        ret
-
 
1415
;
-
 
1416
;
-
 
1417
;  .sopl4:
-
 
1418
;
-
 
1419
;        mov     dx, cx   ; read
-
 
1420
;        in      al, dx
-
 
1421
;        and     eax, 0xff
-
 
1422
;        and     [esp+32], dword 0
-
 
1423
;        mov     [esp+20], eax
-
 
1424
;        ret
1367
 
1425
 
1368
align 4
1426
display_number:
1369
display_number:
1427
; add check pointers
1370
; add check pointers
1428
        test    bl, bl
1371
        test    bl, bl