From 9705b67a12bbfcd0706843a0e24ec8eed19a7a79 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 22 Feb 2020 16:04:17 +0100 Subject: define a basci config --- src/config.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/config.go (limited to 'src') diff --git a/src/config.go b/src/config.go new file mode 100644 index 0000000..15ac082 --- /dev/null +++ b/src/config.go @@ -0,0 +1,17 @@ +package main + +import "flag" + +func parseConfig() Config { + verbose = flag.Bool("v", false, "verbose output") + flag.Parse() + + config := Config{ + Arch: "x86", + Bits: 32, + Memsize: 1024, + MaxProgSize: 64, + } + + return config +} -- cgit 1.4.1