Skip to content

idakandrew/LogiStruct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Overview

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.

Version

Latest: 1.0 (Apr 22, 2021)

Installation

Compiled Downloads

Itch.io page: https://aleainfinitus.itch.io/logistruct

Github releases: https://github.com/idakandrew/LogiStruct/releases

Compilation

  1. Download and install Allegro version 5.2.6.0 from https://github.com/liballeg/allegro5/releases.
  2. Ensure that Allegro library files are on your include path.
  3. Clone this repository locally.
  4. Navigate to /data/ & compile the icon using:
windres icon.rc -O coff -o icon.res
  1. 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
  1. 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

TODO

  • All clear ;)

Screenshots

menu

calc

decoder

adder

counter