diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2025-06-22 19:23:30 +0100 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2025-06-22 19:23:30 +0100 |
commit | e86ecba94bd7f1c7fa0f8583d84468293ae936a2 (patch) | |
tree | 6ac636391283befc1c641130d95c8ca8ab84c881 /comp/work/58/test.s | |
parent | 10d3793dd58f5c85e9a1be331afc3a08922c0f38 (diff) |
Diffstat (limited to 'comp/work/58/test.s')
-rw-r--r-- | comp/work/58/test.s | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/comp/work/58/test.s b/comp/work/58/test.s new file mode 100644 index 0000000..cbf161f --- /dev/null +++ b/comp/work/58/test.s @@ -0,0 +1,35 @@ +.text +.global _start + +_start: + push %rbp + mov %rsp, %rbp + + mov $100, [rsp - 4] + mov $100, (rsp - 8) + push $name + call InitWindow + + add $16, %rsp + pop %rbp + ret + + mov $0, %r12 +loop: + push %rbp + mov %rsp, %rbp + call WindowShouldClose + pop %rbp + ret + + cmp %r12, %rax + je loop + + push $1 + call exit + +.data +name: +.asciz "testing" + + |