Commit 6fab875d authored by Martin Pépin's avatar Martin Pépin
Browse files

make run marche

parent 6453e6c5
......@@ -3,7 +3,7 @@ TEST_DIR=_test_build
SRC=$(wildcard cpu/src/*.mj)
CPU=$(BUILD_DIR)/cpu
.PHONY: simulator all minijazz fullclean test clean pre_build pdf
.PHONY: simulator all minijazz fullclean test clean pre_build pdf printer
all: $(CPU).net
......@@ -26,9 +26,12 @@ $(CPU).net: $(SRC) minijazz pre_build
pre_build:
cd cpu && make pre_build
run: simulator $(CPU).net
printer:
ocamlbuild printer.native
run: simulator $(CPU).net printer
@echo "==> Running CPU"
./simulator/simul.native --asm test/asm/clock.s _CPU_build/cpu.net | ocaml printer.ml
./simulator/simul.native --asm test/asm/clock.s _CPU_build/cpu.net | ./printer.native
test: minijazz simulator pre_build
@echo "==> Building asm tests"
......
......@@ -37,7 +37,7 @@ let update_code code new_code =
let get_code input = String.sub input 0 7
let print_date date =
Printf.printf "%d - %d - %d\n" date.(0) date.(1) date.(2)
Format.printf "%d - %d - %d@." date.(0) date.(1) date.(2)
let rec main code date =
let s = ref (get_code (input_line stdin)) in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment