Subversion Repositories Kolibri OS

Rev

Rev 928 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. format MS COFF
  3.  
  4. public _i40
  5.  
  6.  
  7. public _create_window
  8. public _show_window
  9. public _get_event
  10. public _def_window_proc
  11.  
  12. public stb_create_window
  13. public stb_show_window
  14. public stb_get_event
  15. public stb_def_window_proc
  16.  
  17. extrn _sys_create_window
  18. extrn _sys_show_window
  19. extrn _sys_get_event
  20. extrn _sys_def_window_proc
  21.  
  22. section '.text' code readable align 16
  23.  
  24. align 16
  25.  
  26. _i40:
  27.         ;   xchg bx, bx
  28.  
  29.            int 0x41
  30.            iretd
  31.  
  32. align 4
  33. stb_create_window:
  34.  
  35.            pushd [ecx+20]
  36.            pushd [ecx+16]
  37.            pushd [ecx+12]
  38.            pushd [ecx+8]
  39.            pushd [ecx+4]
  40.            pushd [ecx]
  41.  
  42.            call _sys_create_window
  43.  
  44.            add esp, 24
  45.            mov [esp + 32], eax
  46.            ret
  47.  
  48. align 4
  49. stb_show_window:
  50.            pushd [ecx]
  51.            call _sys_show_window
  52.            add esp, 4
  53.            mov [esp + 32], eax
  54.            ret
  55.  
  56. align 4
  57. stb_get_event:
  58.            pushd [ecx]
  59.            call _sys_get_event
  60.            add esp, 4
  61.            mov [esp + 32], eax
  62.            ret
  63.  
  64. align 4
  65. stb_def_window_proc:
  66.            pushd [ecx]
  67.            call _sys_def_window_proc
  68.            add esp, 4
  69.            mov [esp + 32], eax
  70.            ret
  71.  
  72. align 4
  73. _create_window:
  74.  
  75.            lea ecx, [esp+4]
  76.            mov eax, 73
  77.            int 0x41
  78.            ret
  79.  
  80. align 4
  81. _show_window:
  82.  
  83.            lea ecx, [esp+4]
  84.            mov eax, 74
  85.            int 0x41
  86.            ret
  87.  
  88. align 4
  89. _get_event:
  90.            lea ecx, [esp+4]
  91.            mov eax, 75
  92.            int 0x41
  93.            ret
  94.  
  95. align 4
  96. _def_window_proc:
  97.  
  98.            lea ecx, [esp+4]
  99.            mov eax, 76
  100.            int 0x41
  101.            ret
  102.  
  103.