This is a collection of example programs for MemeAssembly, an esoteric x86-Assembly based programming language. Just for fun :)
- alphabet: Prints all characters of the alphabet by incrementing ASCII values
- malloc: Dynamically allocates memory using the
brk
syscall, writes the alphabet to that memory and then outputs the alphabet - to_binary: Prints the binary digits of a number that is set in the code.
- to_octal: Prints the octal digits of a number that is set in the code.
- to_hex: Prints the hex digits of a number that is set in the code.
- reverse_string: Reads a string of text from stdin and outputs it in reverse
To find even more examples, look at those in the official repository.
You can also see these programs running on GitHub Actions.
So, you want to run some of these programs?
First, make sure you have MemeAssembly installed.
Then go into a program directory (e.g. to_binary
) using
cd to_binary
Now you can use make
to build & run the program:
make run
This builds and runs the program.
Feel free to use these examples as you like to implement your own programs. If you have suggestions for improvements etc, please feel free to open an issue or pull request.