Created
June 14, 2022 17:38
-
-
Save lolarobins/f0ce70eb098c473094158cf9d40c73a4 to your computer and use it in GitHub Desktop.
Trans flag in ARM64 assembly
This file contains 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 | |
.align 2 | |
_start: | |
mov X16, #4 | |
mov X0, #1 | |
adr X1, str | |
mov X2, len | |
svc 0 | |
; exit | |
mov X16, #1 | |
mov X0, #0 | |
svc 0 | |
str: .ascii "\033[46;1m \n" | |
.ascii "\033[45;1m \n" | |
.ascii "\033[47;1m \n" | |
.ascii "\033[45;1m \n" | |
.ascii "\033[46;1m \n" | |
.ascii "\033[0m" | |
len = . - str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment