Rev 928 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 928 | Rev 2971 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
Line 3... | Line 3... | ||
3 | public _i40 |
3 | public _i40 |
Line -... | Line 4... | ||
- | 4 | ||
- | 5 | ||
- | 6 | public _create_window |
|
- | 7 | public _show_window |
|
- | 8 | public _get_event |
|
- | 9 | public _def_window_proc |
|
- | 10 | ||
- | 11 | public stb_create_window |
|
- | 12 | public stb_show_window |
|
- | 13 | public stb_get_event |
|
- | 14 | public stb_def_window_proc |
|
- | 15 | ||
- | 16 | extrn _sys_create_window |
|
- | 17 | extrn _sys_show_window |
|
- | 18 | extrn _sys_get_event |
|
4 | 19 | extrn _sys_def_window_proc |
|
Line 5... | Line 20... | ||
5 | 20 | ||
Line 6... | Line 21... | ||
6 | section '.text' code readable align 16 |
21 | section '.text' code readable align 16 |
7 | 22 | ||
Line 8... | Line 23... | ||
8 | align 16 |
23 | align 16 |
9 | 24 | ||
Line -... | Line 25... | ||
- | 25 | _i40: |
|
- | 26 | ; xchg bx, bx |
|
- | 27 | ||
- | 28 | int 0x41 |
|
- | 29 | iretd |
|
- | 30 | ||
- | 31 | align 4 |
|
- | 32 | stb_create_window: |
|
- | 33 | ||
- | 34 | pushd [ecx+20] |
|
- | 35 | pushd [ecx+16] |
|
- | 36 | pushd [ecx+12] |
|
- | 37 | pushd [ecx+8] |
|
- | 38 | pushd [ecx+4] |
|
- | 39 | pushd [ecx] |
|
- | 40 | ||
- | 41 | call _sys_create_window |
|
- | 42 | ||
- | 43 | add esp, 24 |
|
- | 44 | mov [esp + 32], eax |
|
- | 45 | ret |
|
- | 46 | ||
- | 47 | align 4 |
|
- | 48 | stb_show_window: |
|
- | 49 | pushd [ecx] |
|
- | 50 | call _sys_show_window |
|
- | 51 | add esp, 4 |
|
- | 52 | mov [esp + 32], eax |
|
- | 53 | ret |
|
- | 54 | ||
- | 55 | align 4 |
|
- | 56 | stb_get_event: |
|
- | 57 | pushd [ecx] |
|
- | 58 | call _sys_get_event |
|
- | 59 | add esp, 4 |
|
- | 60 | mov [esp + 32], eax |
|
- | 61 | ret |
|
- | 62 | ||
- | 63 | align 4 |
|
- | 64 | stb_def_window_proc: |
|
- | 65 | pushd [ecx] |
|
- | 66 | call _sys_def_window_proc |
|
- | 67 | add esp, 4 |
|
- | 68 | mov [esp + 32], eax |
|
- | 69 | ret |
|
- | 70 | ||
- | 71 | align 4 |
|
- | 72 | _create_window: |
|
- | 73 | ||
- | 74 | lea ecx, [esp+4] |
|
- | 75 | mov eax, 73 |
|
- | 76 | int 0x41 |
|
- | 77 | ret |
|
- | 78 | ||
- | 79 | align 4 |
|
- | 80 | _show_window: |
|
- | 81 | ||
- | 82 | lea ecx, [esp+4] |
|
- | 83 | mov eax, 74 |
|
- | 84 | int 0x41 |
|
- | 85 | ret |
|
- | 86 | ||
- | 87 | align 4 |
|
- | 88 | _get_event: |
|
- | 89 | lea ecx, [esp+4] |
|
- | 90 | mov eax, 75 |
|
- | 91 | int 0x41 |
|
- | 92 | ret |
|
- | 93 | ||
- | 94 | align 4 |
|
- | 95 | _def_window_proc: |