mirror of
https://github.com/LukasKalbertodt/programmieren-in-rust.git
synced 2026-05-05 06:51:12 +02:00
Add sheet 10
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
magic:
|
||||
push rbp
|
||||
mov rbp, rsp
|
||||
mov rcx, rdi
|
||||
mov esi, 2
|
||||
.LBB0_1:
|
||||
mov al, 1
|
||||
cmp rsi, rcx
|
||||
jae .LBB0_4
|
||||
xor edx, edx
|
||||
mov rax, rcx
|
||||
div rsi
|
||||
inc rsi
|
||||
test rdx, rdx
|
||||
jne .LBB0_1
|
||||
xor eax, eax
|
||||
.LBB0_4:
|
||||
pop rbp
|
||||
ret
|
||||
Reference in New Issue
Block a user