Created
November 24, 2020 07:17
-
-
Save codekittie/49df4795d84b24012595e156e2831271 to your computer and use it in GitHub Desktop.
Khety's whacky number pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global _start | |
section .text | |
_start: | |
mov r10, 2 | |
mov r9, 3 | |
mov r8, 3 | |
loop: | |
add r8, r9 | |
add r9, 1 | |
sub r10, 1 | |
cmp r10, 0 | |
jne loop | |
mov rax, 60 | |
mov rdi, r8 | |
syscall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment