Skip to content

MaximSadovskiy/AssemblyPlusPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assembly++

A powerfull crossplatform(Windows/Linux) assembly macro library, that adds many cool features to assembly:

  • Crossplatform function macro (x64 ABI);
  • "for", "while", "if" support;
  • Local variables;
  • Support for C structs (padding, etc...);
  • Slices;

Simple example

...
%include "include/win32.asm" ; or "include/linux.asm"
...

fn main, 0
    mov rax, 1337
    fnCall printf, testStr, rax
    return(0)
endfn

section .data
STR(testStr, `Hello world! %d\n`) ; also defines variable testStr_size = 15

Or

...
%include "include/win32.asm"
...

fn main, 0
    log `Hello world! %d\n`, 1337
    return(0)
endfn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published