about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-22 16:04:17 +0100
committerEmile <hanemile@protonmail.com>2020-02-22 16:04:17 +0100
commit9705b67a12bbfcd0706843a0e24ec8eed19a7a79 (patch)
treeb684486736aff11c7a09135a1635f2f1c4cdc6b5 /src
parentc91e6b133895a40871013574166cf385c3226cc3 (diff)
define a basci config
Diffstat (limited to 'src')
-rw-r--r--src/config.go17
1 files changed, 17 insertions, 0 deletions
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
+}