aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-02-19 12:16:11 +0100
committerFelix Morgner <felix.morgner@gmail.com>2026-02-19 12:16:11 +0100
commite34239cf2bdb6bd810826b82c2a66873bd0881e2 (patch)
treed6acf48046c21d067787d9ee35e0d795e13ca040
parentee0dc7edc8dd35e6e666a65d3a8f185bf08a74a2 (diff)
downloadsnake.s-e34239cf2bdb6bd810826b82c2a66873bd0881e2.tar.xz
snake.s-e34239cf2bdb6bd810826b82c2a66873bd0881e2.zip
fix: order functions arguments correctly
-rw-r--r--src/main.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.S b/src/main.S
index 270aa49..63fa359 100644
--- a/src/main.S
+++ b/src/main.S
@@ -124,8 +124,8 @@
load_local renderer_handle, %rdi
mov %rdi, %r13
mov $0xff, %rsi
- mov %rsi, %rcx
mov %rsi, %rdx
+ mov %rsi, %rcx
mov %rsi, %r8
call SDL_SetRenderDrawColor@PLT
test %rax, %rax
@@ -137,8 +137,8 @@
// use red color
mov %r13, %rdi
mov $0xff, %rsi
- mov $0x00, %rcx
mov $0x00, %rdx
+ mov $0x00, %rcx
mov %rsi, %r8
call SDL_SetRenderDrawColor@PLT