sASM
Simple Assembler
Uses a mnemonic definition file and a text assembler program to create a rom file, which can be loaded into Logisim.
Usage:
-h print this help screen
-m [path to mnemonic definitions]
-i [path to assembler file]
-o [path to output binary file]
-p print out loaded mnemonics
-d enable debug log
Example:
$ ./sasm -m ./test.txt -i ./test.asm -o ./test.rom1
See test.txt for an example mnemonic definition, test.asm for an example program and test.rom1 for the resulting rom file.
Compiling
Linux:
$ git clone https://github.com/univrsal/sasm.git
$ cd sasm
Either configure over cmake:
$ cmake ./
$ make
Or compile directly:
$ gcc -o sasm src/*.c -I ./src -DUNIX=1
$ ./sasm
Windows:
Requires cmake.
- Clone the repository
- Open CMake Gui
- Set "Where is the source code:" to the repository folder
- Set "Where to build the binaries:" to any directory, the same as in 3. is fine
- Click "Configure" and select your version of Visual Studio (x32/x64 is up to you)
- Click "Generate" and then "Open Project"