Skip to content

Instantly share code, notes, and snippets.

@lolarobins
Created June 14, 2022 17:38
Show Gist options
  • Save lolarobins/f0ce70eb098c473094158cf9d40c73a4 to your computer and use it in GitHub Desktop.
Save lolarobins/f0ce70eb098c473094158cf9d40c73a4 to your computer and use it in GitHub Desktop.
Trans flag in ARM64 assembly
.global _start
.align 2
_start:
; print
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