Skip to content

Commit 34ebf36

Browse files
author
roackim
committed
Improved README.md, added makefile target to run GameOfLife.basm
1 parent 518c09b commit 34ebf36

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ It has severals features such as dereferencing registers, using immediate values
3131
Check Doc.md for more details. You can also check the code sample in bin/example, you'll find an implementation
3232
of Conway's Game Of Life as well as other programs.
3333

34-
#Examples :
34+
#Examples:
3535

3636
You can find example programs in the examples folder, these have been hand programmed, but ultimately this assembler should be used as a backend for a compiler.
3737

38+
Game of Life, randomly instanciated:
39+
40+
make gof
41+
3842
![Game of life running on basal VM](preview.gif?raw=true "Basal VM interpreting bin/examples/GameOfLife.basm")
3943

40-
Display the first elements of the Fibonacci sequence (bin/examples/fibonacci.basm) :
44+
Display the first elements of the Fibonacci sequence (bin/examples/fibonacci.basm):
4145

4246
#--------------------
4347
# Fibonacci Sequence

makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ $(BIN_DIR)/$(TARGET_EXEC): $(OBJS)
2525
@echo Build complete.
2626

2727

28-
29-
3028
# c++ source
3129
$(BUILD_DIR)/%.cpp.o: %.cpp
3230
@echo Compiling ...
@@ -51,7 +49,8 @@ analyse: # analyse every source files, with maximum warnings on cppcheck
5149
clean:
5250
@$(RM) -r $(BUILD_DIR)
5351

54-
52+
gof: bin/main
53+
./bin/main examples/GameOfLife.basm
5554

5655

5756
-include $(DEPS)

0 commit comments

Comments
 (0)