Dodal skripto za zagon simulatorja (ne deluje še), ter readme

This commit is contained in:
Timon 2025-12-01 14:04:32 +01:00
parent c92932c0b8
commit e79d4ae214
2 changed files with 26 additions and 0 deletions

10
ass2/README.md Normal file
View file

@ -0,0 +1,10 @@
SIC/XE Emulator
## Build
Za kompilacijo uporabite:
```bash
g++ main.cpp implementations/*.cpp -I headers -o sic
```
Alternativno lahko samo poženete skripto run.sh z ukazom v terminalu: ./run.sh

16
ass2/run.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Build
echo "Compiling..."
g++ main.cpp implementations/*.cpp -I headers -o sic
if [ $? -ne 0 ]; then
echo "Build failed."
exit 1
fi
echo "Build successful."
# Run
echo "Running sic..."
./sic