LogiStruct is a performant & scalable digital logic simulator designed around a pixel canvas system. It is written entirely in C, and relies on the Allegro 5 library for graphical and input features. Screenshots below.
Latest: 1.0 (Apr 22, 2021)
Itch.io page: https://aleainfinitus.itch.io/logistruct
Github releases: https://github.com/idakandrew/LogiStruct/releases
- Download and install Allegro version 5.2.6.0 from https://github.com/liballeg/allegro5/releases.
- Ensure that Allegro library files are on your include path.
- Clone this repository locally.
- Navigate to /data/ & compile the icon using:
windres icon.rc -O coff -o icon.res
- Navigate to /src/ & compile via GCC using:
gcc logistruct.c canvas.c canvas.h sim.c sim.h ui.c ui.h utils.c utils.h ../data/icon.res -o ../Logistruct -lallegro -lallegro_font -lallegro_ttf -lallegro_primitives -lallegro_image -mwindows -lm
- If .dlls are missing, copy the following .dlls from your Allegro & MinGW install to the LogiStruct install (optional):
allegro_font-5.2.dll
allegro_image-5.2.dll
allegro_primitives-5.2.dll
allegro_ttf-5.2.dll
allegro-5.2.dll
libgcc_s_seh-1.dll
libstdc++-6.dll
libwinpthread-1.dll
- All clear ;)