Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A silly "programming language" that is completely made on macros of a x86_64 FASM(flat assembler). A Silly macrolang - .smuc

zpnst/macrolang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macrolang

Intro

This code was written solely for fun.

FASM macro

Macros in fasm are a great tool for writing code. To read more about macros and, in general, about the capabilities of flat assembly, follow this link!

csmuc linker

The only thing that the linker does is creating a file in its virtual address space into which it writes the fasm macro definitions first, followed by the silly macrolang program code and compiles it with the fasm command <(0_0)>

"Hello, World!"

Hello, World!

Working with files

This program reads a file with its own code and outputs its contents and the number of lines to the terminal.

Function calls

A simple function calls chain

The rest of the examples are in the smuc directory...

Setting up csmuc

These commands will help you add the executable file of the csmuc 'linker' to the standard linux directory /usr/local/bin so that the command shell can find this name

git clone [email protected]:zpnst/macrolang.git
cd macrolang
sudo chmod +x ./make.sh
sudo ./make.sh

About

A silly "programming language" that is completely made on macros of a x86_64 FASM(flat assembler). A Silly macrolang - .smuc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages