style: Replace magic nums to less magic nums

This commit is contained in:
Gleb Zaharov 2024-01-20 16:46:49 +03:00
parent 59d825577a
commit 32b44dd339

View File

@ -37,11 +37,11 @@ _define_window:
push edi push edi
push esi push esi
mov eax, SF_CREATE_WINDOW mov eax, SF_CREATE_WINDOW
mov ebx, dword [esp + 0x0c] mov ebx, dword [esp + 4 * 3]
mov ecx, dword [esp + 0x10] mov ecx, dword [esp + 4 * 4]
mov edx, dword [esp + 0x14] mov edx, dword [esp + 4 * 5]
mov esi, dword [esp + 0x18] mov esi, dword [esp + 4 * 6]
mov edi, dword [esp + 0x1c] mov edi, dword [esp + 4 * 7]
int 0x40 int 0x40
pop esi pop esi
pop edi pop edi
@ -50,10 +50,10 @@ _define_window:
_display_message: _display_message:
push esi edi push esi edi
mov eax, SF_DRAW_TEXT mov eax, SF_DRAW_TEXT
mov ebx, dword [esp + 0x0c] mov ebx, dword [esp + 4 * 3]
mov ecx, dword [esp + 0x10] mov ecx, dword [esp + 4 * 4]
mov edx, dword [esp + 0x14] mov edx, dword [esp + 4 * 5]
mov edi, dword [esp + 0x18] mov edi, dword [esp + 4 * 6]
int 0x40 int 0x40
pop edi esi pop edi esi
ret ret