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.  
  23. ;---------------------------------------------------------------------
  24. convert:
  25.     xor  eax,eax
  26.         cmp  [error_fs],eax
  27.         jnz   .error
  28.     mov  [return_code],eax
  29.         mov eax,image_file
  30.     call  [plugin]
  31.     cmp   [return_code],dword 0
  32.     je   @f
  33.     cmp   [return_code],dword 2
  34.     je   @f
  35. ;-------------------------------    
  36.     xor  eax,eax
  37.     mov  [return_code],eax
  38.         mov eax,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.     call  [plugin_2]
  49.     cmp   [return_code],dword 0
  50.     je   @f
  51.     cmp   [return_code],dword 2
  52.     je   @f
  53. ;-------------------------------
  54.     xor  eax,eax
  55.     mov  [return_code],eax
  56.         mov eax,image_file
  57.     call  [plugin_3]
  58. ;-------------------------------
  59. @@:
  60.     mov   ecx,[image_file]
  61.     mcall 68, 13,
  62.  
  63.     cmp   [return_code],dword 0
  64.     je   .all_ok
  65.     xor  eax,eax
  66. ;-------------------------------