Subversion Repositories Kolibri OS

Rev

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

Rev 109 Rev 143
Line 21... Line 21...
21
  dd     0x1000      ; ª®«¨ç¥á⢮ ¯ ¬ïâ¨
21
  dd     0x1000      ; ª®«¨ç¥á⢮ ¯ ¬ïâ¨
22
  dd     0x1000      ;  ¤à¥á ¢¥à設ë áâíª 
22
  dd     0x1000      ;  ¤à¥á ¢¥à設ë áâíª 
23
  dd     0x0         ;  ¤à¥á ¡ãä¥à  ¤«ï ¯ à ¬¥â஢ (­¥ ¨á¯®«ì§ã¥âáï)
23
  dd     0x0         ;  ¤à¥á ¡ãä¥à  ¤«ï ¯ à ¬¥â஢ (­¥ ¨á¯®«ì§ã¥âáï)
24
  dd     0x0         ; § à¥§¥à¢¨à®¢ ­®
24
  dd     0x0         ; § à¥§¥à¢¨à®¢ ­®
Line 25... Line -...
25
 
-
 
26
include 'lang.inc'
25
 
Line 27... Line 26...
27
include 'macros.inc' ; ¬ ªà®áë ®¡«¥£ç îâ ¦¨§­ì  áᥬ¡«¥à騪®¢!
26
include 'MACROS.INC' ; ¬ ªà®áë ®¡«¥£ç îâ ¦¨§­ì  áᥬ¡«¥à騪®¢!
28
 
27
 
29
;---------------------------------------------------------------------
28
;---------------------------------------------------------------------
Line 30... Line 29...
30
;---  €—€‹Ž Žƒ€ŒŒ›  ----------------------------------------------
29
;---  €—€‹Ž Žƒ€ŒŒ›  ----------------------------------------------
31
;---------------------------------------------------------------------
30
;---------------------------------------------------------------------
-
 
31
 
32
 
32
START:
-
 
33
;       mcall 5,10
-
 
34
        mov     ecx, 1
-
 
35
        mov     edx, drvinfo
33
START:
36
        push    @f
Line -... Line 37...
-
 
37
        jmp     call_driver
-
 
38
@@:
-
 
39
;       jmp run_launcher
34
;       mcall 5,10
40
 
-
 
41
        mov     ecx, 2
-
 
42
        push    @f
35
       mcall 21,13,1,drvinfo
43
call_driver:
-
 
44
        mcall 21,13
36
;       jmp run_launcher
45
        ret
37
 
46
@@:
38
       mcall 21,13,2
47
;       cmp eax,-1
39
       cmp eax,-1
48
        inc     eax
40
       je   run_launcher
49
       je   run_launcher
Line 62... Line 71...
62
;       add ebx,eax
71
;       add ebx,eax
63
;       ror edx,16
72
;       ror edx,16
64
;       mov dx,[_m1+ebx]
73
;       mov dx,[_m1+ebx]
65
;       rol edx,16
74
;       rol edx,16
66
        ;mov eax,ecx
75
        ;mov eax,ecx
67
        xor eax,eax
76
        mov     eax, 10
68
        sub ecx,3
-
 
69
        mov dx,cx
-
 
70
        cmp cx,274
-
 
71
        je yes_274
-
 
72
        cmp cx,277
77
        cmp cx,277+3
73
        je yes_277
78
        je  yes_277
-
 
79
        cmp cx,274+3
74
        jmp yes_280
80
        jne yes_280
75
     yes_274:
81
     yes_274:
76
        add al,10
82
        add al,10
77
     yes_277:
83
     yes_277:
78
        add al,10
84
        add al,10
79
     yes_280:
85
     yes_280:
80
        add al,10
-
 
81
        ror edx,16
-
 
82
        mov dx,[_m1+eax]
86
        mov     edx, [_m1+eax-2]
83
        rol edx,16
87
        lea     dx, [ecx-3]
84
;       mov dx,bx
-
 
85
;       shl edx,16
88
        push    run_launcher
86
;       mov  dx,cx
89
        mov     ecx, 3
87
       mcall 21,13,3
-
 
88
;       mcall 5,300
90
        jmp     call_driver
89
run_launcher:
91
run_launcher:
90
       mcall 19,launcher,0
92
       mcall 70,launcher
91
;       mcall 33,text,drvinfo,512,0
-
 
92
       mcall -1
93
       mcall -1
-
 
94
launcher:
93
launcher db  'LAUNCHER   '
95
        dd      7
94
;text      db  'TEXT       '
96
        dd      0
-
 
97
        dd      0
-
 
98
        dd      0
-
 
99
        dd      0
-
 
100
        db      '/RD/1/LAUNCHER'
-
 
101
I_END:                             ; ¬¥âª  ª®­æ  ¯à®£à ¬¬ë
-
 
102
        db      ?       ; system loader will zero all memory after program end
-
 
103
                        ; this byte will be terminating zero for launcher string
95
drvinfo:   ; 512 bytes driver info area
104
drvinfo:   ; 512 bytes driver info area
96
; +0   - Full driver name
105
; +0   - Full driver name
97
; +32  - Driver version
106
; +32  - Driver version
98
; +64  - Word List of support video modes (max 32 positions)
107
; +64  - Word List of support video modes (max 32 positions)
99
; +128 - 5 words list of support vertical rate to each present mode
108
; +128 - 5 words list of support vertical rate to each present mode
Line 102... Line 111...
102
      org $+32
111
      org $+32
103
vidmode:
112
vidmode:
104
      org $+64
113
      org $+64
105
_m1:
114
_m1:
106
      org drvinfo+200h
115
      org drvinfo+200h
107
 
-
 
108
I_END:                             ; ¬¥âª  ª®­æ  ¯à®£à ¬¬ë
-