Subversion Repositories Kolibri OS

Rev

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

Rev 188 Rev 214
Line 246... Line 246...
246
new_app_base	      equ 0x60400000;   0x01000000
246
new_app_base	      equ 0x60400000;   0x01000000
247
PROC_BASE	      equ OS_BASE+0x0080000
247
PROC_BASE	      equ OS_BASE+0x0080000
248
 
248
 
Line 249... Line 249...
249
public START
249
public START
250
public STOP
-
 
251
public service_proc
250
public service_proc
Line 252... Line 251...
252
 
251
 
253
extrn AttachIntHandler
252
extrn AttachIntHandler
254
extrn SysMsgBoardStr
253
extrn SysMsgBoardStr
Line 264... Line 263...
264
extrn GetCurrentTask
263
extrn GetCurrentTask
265
 
264
 
Line 266... Line 265...
266
section '.flat' code readable align 16
265
section '.flat' code readable align 16
Line -... Line 266...
-
 
266
 
-
 
267
proc START stdcall, state:dword
-
 
268
 
-
 
269
           mov eax, [state]
-
 
270
           cmp eax, 1
-
 
271
           je .entry
267
 
272
           jmp .stop
268
START:
273
.entry:
269
     if DEBUG
274
     if DEBUG
270
	   mov esi, msgInit
275
	   mov esi, msgInit
271
           call SysMsgBoardStr
276
           call SysMsgBoardStr
Line 318... Line 323...
318
           mov esi, msgOk
323
           mov esi, msgOk
319
           call SysMsgBoardStr
324
           call SysMsgBoardStr
Line 320... Line 325...
320
 
325
 
321
	   ret
-
 
322
 
326
	   ret
323
.fail:
327
.fail:
324
   if DEBUG
328
   if DEBUG
325
	   mov esi, msgFail
329
	   mov esi, msgFail
326
           call SysMsgBoardStr
330
           call SysMsgBoardStr
327
   end if
-
 
328
STOP:
331
   end if
329
	   xor eax, eax
332
           xor eax, eax
-
 
333
           ret
-
 
334
.stop:
-
 
335
           call stop
-
 
336
           mov [ctrl.user_callback], 0
-
 
337
           ret
Line 330... Line 338...
330
	   ret
338
endp
331
 
339
 
332
handle     equ  IOCTL.handle
340
handle     equ  IOCTL.handle
333
io_code    equ  IOCTL.io_code
341
io_code    equ  IOCTL.io_code