Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. The block is passed to the plugin:
  3. ;---------------------------------------------------------------------
  4. ; not change this section!!!
  5. ; start section
  6. ;---------------------------------------------------------------------
  7. align   4
  8. image_file              dd 0    ;+0
  9. raw_pointer             dd 0    ;+4
  10. return_code             dd 0    ;+8
  11. img_size                dd 0    ;+12
  12. deflate_unpack  dd 0    ;+16
  13. raw_pointer_2   dd 0    ;+20
  14. ;---------------------------------------------------------------------
  15. ; end section
  16. ;---------------------------------------------------------------------
  17.  
  18.  
  19. Calling plugins:
  20.  
  21. ;---------------------------------------------------------------------
  22. convert:
  23.         xor     eax,eax
  24.         cmp     [error_fs],eax
  25.         jnz     .error
  26.         mov     [return_code],eax
  27. ;       mov     eax,image_file
  28.         push    image_file
  29.         call    [plugin]
  30.         cmp     [return_code],dword 0
  31.         je      @f
  32.         cmp     [return_code],dword 2
  33.         je      @f
  34. ;-------------------------------       
  35.         xor     eax,eax
  36.         mov     [return_code],eax
  37. ;       mov     eax,image_file
  38.         push    image_file
  39.         call    [plugin_1]
  40.         cmp     [return_code],dword 0
  41.         je      @f
  42.         cmp     [return_code],dword 2
  43.         je      @f
  44. ;-------------------------------
  45.         xor     eax,eax
  46.         mov     [return_code],eax
  47. ;       mov     eax,image_file
  48.         push    image_file
  49.         call    [plugin_2]
  50.         cmp     [return_code],dword 0
  51.         je      @f
  52.         cmp     [return_code],dword 2
  53.         je      @f
  54. ;-------------------------------
  55.         xor     eax,eax
  56.         mov     [return_code],eax
  57. ;       mov     eax,image_file
  58.         push    image_file
  59.         call    [plugin_3]     
  60. ;-------------------------------
  61. @@:
  62.         mov     ecx,[image_file]
  63.         mcall   68,13
  64.  
  65.         cmp     [return_code],dword 0
  66.         je      .all_ok
  67.         xor     eax,eax
  68. ;-------------------------------