Skip to content

Instantly share code, notes, and snippets.

@crazymonkyyy
Created May 1, 2024 22:14
Show Gist options
  • Save crazymonkyyy/066d74f54bc16966f7153392afc78973 to your computer and use it in GitHub Desktop.
Save crazymonkyyy/066d74f54bc16966f7153392afc78973 to your computer and use it in GitHub Desktop.
char[80] buffer="helloworld";
void print(T)(ref T buf){
asm{
mov RAX, 1;
mov RDI, 1;
mov RSI,buf;
mov RDX,9;
syscall;
}}
void main(){
print(buffer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment